pdf

Generating PDFs in Rails

I need to produce somewhat complicated PDFs from a Rails app - tables with column spans, styling, nested tables etc I've looked at Prawn and I'm not sure it provides enough flexibility and HTMLDOC seems to be severely lacking in CSS support, are there any other options out there? thanks, john. ...

Keep table in one pice MigraDoc / PDFsharp

Hello! I am using PDFsharp / MigraDoc's to write tables and chart's to PDF files. This worked great so far, however MigraDoc's will always split my tables (vertically) when it should move the whole table to the next page in the document. How do I make sure the table will stay in one piece? Table class of MigraDoc.DocumentObjectModel.Ta...

optical character recognition of PDFs of parliamentary debates

Hi, For a contract work, I need to digitalize a lot of old, scanned-graphic-only plenary debate protocol PDFs from the Federal Parliament of Germany. The problem is that most of these files have a two-column format: I would love to read your answer to my following questions: How I can split the two columns before feeding them into...

Convert arbitrary document to PDF using command line

I'm looking for a simple (free) way to convert an arbitrary document to a PDF from within a program. There are any number of free PDF printers, but I need to be able to call the conversion within a program without human intervention. The program is being developed in Java, but will run exclusively in a Windows environment so calling an ...

python - parse annotations from a pdf

I want a python function that takes a pdf and returns a list of the text of the note annotations in the document. I have looked at python-poppler (https://code.launchpad.net/~poppler-python/poppler-python/trunk) but I can not figure out how to get it to give me anything useful. I found the get_annot_mapping method and modified the demo ...

Show pdf in Flex air

Hello I find the document that describe the working with pdf: http://livedocs.adobe.com/flex/3/html/help.html?content=PDF_1.html But I'm stuck with it and can't make working version. Can anyone help me? thanks Vladimir ...

Ghostscript: Converting PDFs to images with auto-color/b&w detection?

I'm using GhostScript to convert PDF files into images for printing. Right now my method is to convert the PDF file to tiffg4 at 600dpi and then send those to the printer. I need to find a way to detect if the PDF has color pages or not and convert those color pages to something like PNG16m while the B&W pages get converted to tiffg4. ...

Generating PDF files from .NET by using standard .NET GDI printing classes

I'm looking for a way to generate PDF files using the standard PrintDocument and Graphics (GDI) classes in .NET. As far as I know, the only way to do that is by printing to a PDF printer. The problem is that a PDF printer driver always asks for a filename, but I need to control the filename from my code. Using a PDF library like PDFShar...

Stream PDF to new browser instance or tab?

Hi All, I want to Stream a PDF to a new browser instance. I currently have this Response.ContentType = "application/pdf" Response.AddHeader("Content-Disposition", "inline; filename=""" & Path.GetFileName(pdfFile) & """") Response.AddHeader("Content-Length", stream.Length) Response.BinaryWrite(stream.ToArray()) Response.Flush() But thi...

How to trigger windows Print dialog from server side (asp.net) ?

I want to generate a PDF file on server side, and then in response want to send that file (buffer,fileName- whatever may work) and show a print dialog to ask user to print the generated PDF file. I tried something like below. But it does not trigger window.print() dialog. public static void ForcedPrint(HttpResponse response, byte[] ...

What is the easiest way to programmatically combine multiple PDF documents into one PDF document?

What is the easiest and quickest way to combine multiple pdf docs into a single pdf document, programmatically in C#? I am not looking for a random list of .net PDF libraries (there are loads on SO already), rather a specific library (and function) which will do what I need quickly and easily... Thanks! ...

How can I convert HTML to PDF using Perl?

I need to convert some HTML reports into PDF using Perl. What are the best CPAN modules for the job? ...

Porting pat2Pdf to C# - Tiff Library? PDF Conversion?

I'm looking to port Oren Tirosh and Thomas Boege's excellent patent2pdf script (http://www.tothink.com/pat2pdf/pat2pdf) into a few languages, the first one being C#, so that it can more easily utilize it in my school research and so I can use it if I build other applications. The script requires an http fetcher and some libraries to man...

Included LaTeX figures do not show in dvi but do in pdf.

I am trying to get LaTeX to include figures, but the eps files will not show up in the DVI. I tried various packages to no avail. The figures will show up fine if I compile to PDF, but not in the DVI file... I am using MikTex and LEd under Windows. ...

Ajaxian HTML to PDF print control

Is there an AJAX control for converting HTML pages into PDF? I'd like to add a "printer-friendly" link which creates a PDF file of the current page. ...

ItextSharp and PDftable

I have situation and I seek solution for that. I have an application (.net) that generates PDF file in that pdf file we have some pages as portrait and some are landscape. I rotate the pages to fit the requirement. We are having issue when printing this document, problem is that the header of landscape page is printing on the right han...

Generate dynamic PDF from ASP content

I'm trying to dynamically create a PDF from a background image and some text from a database. When a user visits our site, they can click on a button to print a voucher that can be redeemed in store. The voucher consists of a background image and some text printed over the top of it; Name, Voucher Code (generated from a hash algorithm) ...

PDF to byte array and vice versa

Hi, I need to convert pdf to byte array and vice versa. Can any one help me? This is how I am converting to byte array public static byte[] convertDocToByteArray(String sourcePath) { byte[] byteArray=null; try { InputStream inputStream = new FileInputStream(sourcePath); String i...

Open source component to develop multi-page PDFs from HTML

Does anyone know of an open source solution for generating multi-page PDFs from HTML server-side? iTextSharp etc. are all about composing page-by-page. Please don't suggest a PDF Printer. I know of store-bought solutions that achieve this very well, but there has got to be a free component. Regards. ...

Using ps2pdf on EPS files with PNG used for bitmaps?

We're currently using ps2pdf to convert EPS files to PDF. These EPS files contain both vector information (lines and text) and bitmap data. However, by default ps2pdf converts the bitmap components of these images to JPG as they're embedded within the PDF, whereas for the type of graphics we have (data visualisation) it would be much mo...