Re: Rotating a PDF page using PDFBox

2010-08-26 Thread Joe Hansen
lPages() and iterate > over them). > It is PDPage.setRotation(int). (I remember to have read that it accepted > multiples of 90 but no negative values). > You may decide to rotate or not with the media box coordinates > (PDPage.getMediaBox()). > > Julien PLÉE > > Le 26 août 10

Rotating a PDF page using PDFBox

2010-08-26 Thread Joe Hansen
Hey all, Faxes sent to our company are received by our fax machine, which then converts the received fax into a PDF file. Sometimes a few pages in the fax are up-side down. We need a way to rotate such page(s). Is there a way to accomplish this using the PDFBox? Your help is greatly appreciated!

Re: NullPointerException while splitting a PDF document. Please advise.

2010-08-26 Thread Joe Hansen
you extended the > Splitter class?  Let us know if you're still having issues. > > > Thanks, > Adam > > > > > > From: > Joe Hansen > To: > users@pdfbox.apache.org > Date: > 07/30/2010 09:28 > Subject: > Re: NullPointerException while sp

Re: NullPointerException while splitting a PDF document. Please advise.

2010-07-30 Thread Joe Hansen
I used both the Splitter and PDFMergerUtility classes to split a document into two parts (given a page number to split at). Here's the code for anyone who is interested. However, I am surprised that my earlier attempt (extending the Splitter approach) failied. Thanks, Joe Splitter

NullPointerException while splitting a PDF document. Please advise.

2010-07-29 Thread Joe Hansen
Hey all, We are using PDFBox 1.1.0. I am trying to use the org.apache.pdfbox.util.Splitter class to split a document into two documents, given a page# to split at. So I extended the Splitter class and overriden the createNewDocumentIfNecessary as follows. However, when I call the split method, the

How to modify a document Field before the document is indexed?

2010-07-19 Thread Joe Hansen
Hey All, I am using Apache Lucene (2.9.1) with PDFBox 0.8.0. The combination works really great for our website. I use the following command to create Lucent Document from a PDF file: Document document = org.apache.pdfbox.searchengine.lucene.LucenePDFDocument.getDocument(docFile); Now, document,