pdf

Using Javascript to perform a process and send updates/callbacks to a webserver.

I am working on a process to allow people to upload PDF files and manage the document (page order) via a web based interface. The pages of the PDF file need to be cropped to a particular size for printing and currently we run them through a Photoshop action that takes care of this. What I want to do is upload the PDF files to a dedicat...

How do I turn off ABCpdf's paragraph indenting during a chain?

The project I'm working on uses a 3rd party component called ABCpdf to generate PDF documents. It has this feature where you can "chain" text from one content area to the next, which we're using to flow text across columns. You can also define an indent size to be used at the start of "paragraphs." This is all great, except now I've j...

How do I get character offset information from a pdf document?

I'm trying to implement search result highlighting for pdfs in a web app. I have the original pdfs, and small png versions that are used in search results. Essentially I'm looking for an api like: pdf_document.find_offsets('somestring') # => { top: 501, left: 100, bottom: 520, right: 150 }, { ... another box ... }, ... I know it's pos...

Watin and PDF's

Can anyone provide and example of downloading a PDF file using Watin? I tried the SaveAsDialogHandler but I couldn't figure it out. Perhaps a MemoryStream could be used? Thanks, --jb ...

Generating dynamic thumbnail of a PDF for ASP.NET

I've used a tool from Aspose (Aspose.PDF.kit) to generate a JPG thumbnail on the fly of a PDF for a .NET application. This works great, but what kind of other alternatives are there? Codeproject.com has this tutorial, but it requires you to have the full version of Acrobat. Is there an open source alternative that's geared for ASP....

Absolute Positioning using XSL to be transformed and rendered to PDF

How does one accomplish absolute positioning using XSL? I am working on a XSL transformation to FO to PDF for mailing letters and am trying to figure out how to absolutely position the fo:blocks containing the Return Address and Recipient Address so that they are displayed in the windows on the envelope. Anyone have suggestions on th...

Best Server-side .NET PDF editing library

What's the best .NET PDF editing library available, and why? It needs to be used on an IIS web-server. Specifically, I need to edit a PDF which was generated by reporting services. Factors I'm interested in: Speed Memory Consumption Price Quality of documentation Library stability Size of library Whatever else you think is important ...

How to print a PDF from the browser

In a Web application, is it possible to force a PDF file to be printed on the client? If the browser is configured to open the PDF inside the window, I guess that calling window.print() will work, but some browsers (like mine) are configured to open the PDF externally. ...

Show a PDF document in a browser without the menu bar

I have a touch screen kiosk that displays a webpage and a pdf document. Can I remove the menu bar? Users must not have "save", "print" and other such features. Update random screenshot on flickr - I am refering to the print, back/forward, zoom bar that controls the PDF -- not the browser menu. Sorry for not beeing specific. ...

How to interact with embedded PDF documents in iframes through JavaScript?

How to interact with embedded PDF documents in iframes through JavaScript? Is it possible? Is it possible in every main browsers? if "yes", how can I... ...know that the document finished loading? ...trigger the print dialog? ...configure the zooming? ...configure the toolbars? ...

How to Programmatically Inject JavaScript in PDF files?

How to Programmatically Inject JavaScript in PDF files? Can it be done without Adobe Professional? My goal is: I want to show up the print dialog immediately when I open the PDF. I know that this can be done with JavaScript code embedded in the document. ...

PDF Libraries

Can you guys list available PDF libraries to manipulate PDF files? Is it freeware or open-source? What language(s) it is available for? What is it good for? ...

How do you create a PDF from XML in Java?

At the moment, I'm creating an XML file in Java and displaying it in a JSP page by transforming it with XSL/XSLT. Now I need to take that XML file and display the same information in a PDF. Is there a way I can do this by using some kind of XSL file? I've seen the iText Java-PDF library, but I can't find any way to use it with XML and a...

Returning a PDF file from a Java Bean to a JSP

EDIT: See my working code in the answers below. In brief: I have a JSP file which calls a method in a Java Bean. This method creates a PDF file and in theory, returns it to the JSP so that the user can download it. However, upon loading the PDF, Adobe Reader gives the error: File does not begin with '%PDF-'. In detail: So far, the JS...

How to program a text search and replace in PDF files

How would I be able to programmatically search and replace some text in a large number of PDF files? I would like to remove a URL that has been added to a set of files. I have been able to remove the link using javascript under Batch Processing in Adobe Pro, but the link text remains. I have seen recommendations to use text touchup, w...

Ghostscript PDF -> TIFF conversion is awful for me, people rave about it, I alone look sullen.

My stomach churns when I see this kind of output. and this was my command as suggested by http://stackoverflow.com/questions/75500/best-way-to-convert-pdf-files-to-tiff-files#221341 gswin32c.exe -q -dNOPAUSE -sDEVICE=tiffg4 -sOutputFile=a.tif a.pdf -c quit What am I doing wrong? (commercial products will not be considered) ...

Exporting an MS Excel 2003 workbook to PDF via VBA

I have an Excel 2003 workbook that contains a macro to copy certain of its sheets across to a new workbook, then save and close the new workbook. It does this several dozen times, with slightly different sheet selections each time. I would like to add an extra step to the macro to export the secondary workbooks' spreadsheets to PDF. T...

How can I generate a report file (ODF, PDF) from a django view

I would like to generate a report file from a view&template in django. Preferred file formats would be OpenOffice/ODF or PDF. What is the best way to do this? I do want to reuse the page layout defined in the template, possibly by redefining some blocks in a derived template. Ideally, the report should be inserted into an existing tem...

How do you add a page break in a PDF with XSL-FO?

How do you add a page break into a document with XSL-FO? I'm using Apache FOP to create PDFs, if that makes a difference. ...

Multipart text field in pdf form, using OpenOffice Writer

So, this might be a crazy idea, so bear with me. [warning: hackish] Using OpenOffice.org Writer, one can easily make simple pdf forms (since Writer does XForms, and can export to PDF, and embed the form using FDF). I'd like to make a text entry field with this property: if the field overflows, put the overflow on an additional pa...