Re: merging docs with form fields and tags

2015-01-21 Thread John Hewson
You can unsubscribe at http://pdfbox.apache.org/mailinglists.html -- John > On 21 Jan 2015, at 12:15, Ray Morris wrote: > > I really want to be dropped from the pdfbox email list. > > Ray Morris > ray.morris.brisb...@bigpond.com > > > -Origi

Re: Runtime exception in PDFParser.parse()

2015-01-21 Thread John Hewson
You don’t have to do anything to log runtime exceptions in Java, they are passed up the stack until the process terminates and prints a stack trace. Trying to catch runtime exceptions yourself isn’t necessary or advised. Remove your exception handling code and have main() throw IOException. -- J

Re: Not merging all pages

2015-01-21 Thread Marc Davis
Thanks Tilman…awesome! Thanks, Marc > On Jan 21, 2015, at 5:14 PM, Tilman Hausherr wrote: > > Use the nonSeq parser option, then you get 53 :-) > > Tilman > > Am 21.01.2015 um 23:00 schrieb Marc Davis: >> Yet another merging problem. After merging this 53 page PDF file with >> itself u

Re: Not merging all pages

2015-01-21 Thread Tilman Hausherr
Use the nonSeq parser option, then you get 53 :-) Tilman Am 21.01.2015 um 23:00 schrieb Marc Davis: Yet another merging problem. After merging this 53 page PDF file with itself using PDFBox 1.8.8, I only get 16 pages total (8 pages recognized by PDFBox): https://www.dropbox.com/s/s6pybruhrm3

Not merging all pages

2015-01-21 Thread Marc Davis
Yet another merging problem. After merging this 53 page PDF file with itself using PDFBox 1.8.8, I only get 16 pages total (8 pages recognized by PDFBox): https://www.dropbox.com/s/s6pybruhrm3bvki/helen%20shih.pdf?dl=0 Thanks, Marc

Re: Another PDF Merging Error

2015-01-21 Thread Tilman Hausherr
The file is broken... pdf.js doesn't display it at all. The end of the file has this: trailer <> xref 0 0 trailer <64AEDCA53786314891752768DFE1ADC1>]>> star And yes, it has all the problems reported. And PDFBox does merge the files. Tilman Am 21.01.

Another PDF Merging Error

2015-01-21 Thread Marc Davis
Trying to merge this file with itself: https://www.dropbox.com/s/6dd0wk5ri80sn2v/claire%20dempster.pdf?dl=0 I issue this command and receive the error below: ~: java -jar /Users/marlon/Desktop/pdfbox-app-1.8.8.jar PDFMerger

Re: PDFBox-generated PDF/A-1b not validated using PDFBox validation

2015-01-21 Thread Tilman Hausherr
I didn't test the file from your code, only the one from the example, both with preflight and with http://www.pdf-tools.com/pdf/validate-pdfa-online.aspx If you want to be really sure, when you continue with development, check your files with the 2.0 version of the preflight app command line:

Re: PDFBox-generated PDF/A-1b not validated using PDFBox validation

2015-01-21 Thread Tilman Hausherr
Am 21.01.2015 um 12:31 schrieb Julien Béti: serializer.serialize(xmp, baos, false); change "false" to "true", it should work then. Tilman

Re: merging docs with form fields and tags

2015-01-21 Thread Ray Morris
I really want to be dropped from the pdfbox email list. Ray Morris ray.morris.brisb...@bigpond.com -Original Message- From: David Hill Sent: Thursday, January 22, 2015 5:32 AM To: users@pdfbox.apache.org Subject: merging docs with form fields and tags We are trying to merge multiple

merging docs with form fields and tags

2015-01-21 Thread David Hill
We are trying to merge multiple PDFs together and we are having issues with form fields and tags vanishing. Tags and editable form fields will not exist in the output. This seems related to issues 1031 and 930. The problem seems to happen if the first document does not have fields or tags. In

Re: PDFBox-generated PDF/A-1b not validated using PDFBox validation

2015-01-21 Thread Tilman Hausherr
epic fail :-( I've opened https://issues.apache.org/jira/browse/PDFBOX-2621 Tilman Am 21.01.2015 um 12:31 schrieb Julien Béti: Hello, Attached, you'll find a sample java code which creates a PDF/A-1b file using CreatePDFA sample [1], and then immediately tries to validate it using Preflight

Runtime exception in PDFParser.parse()

2015-01-21 Thread Chris Bamford
Hi Recently I started getting runtime exceptions in PDFParser.parse(), but I can't seem to get any information out as to why. The weird thing is that it only happens on Linux - on my laptop it is fine! I have tried to get a stack trace (my code uses log4j), but all I get is: org.slf4j.impl.Lo

pagination

2015-01-21 Thread Hans Scholte
Hi, I'm creating a new PDF based on two separate one's: the first one is a page which I create with xsl-fo, the second of is an existing document. I merge the two into a new document and set metadata found in the original document into the new document. When looking at the result with Acrobat XI t

PDFBox-generated PDF/A-1b not validated using PDFBox validation

2015-01-21 Thread Julien Béti
Hello, Attached, you'll find a sample java code which creates a PDF/A-1b file using CreatePDFA sample [1], and then immediately tries to validate it using Preflight as described in Cookbook [2] The validation fails with the following error: --8< The file/tmp/test.pdf is not

Re: Error on PDDocument.load

2015-01-21 Thread Andreas Lehmkühler
Hi, > Kevin Morin hat am 21. Januar 2015 um 12:14 geschrieben: > > > I thought I was running java 7 but it's java 8... I tried with java 7 > and it works. I do not need it to work with java 8, java 7 is ok for me. It works for me using java 8 on win7 and linux as well. I guess, the issue has t

Re: Error on PDDocument.load

2015-01-21 Thread Kevin Morin
I thought I was running java 7 but it's java 8... I tried with java 7 and it works. I do not need it to work with java 8, java 7 is ok for me. Thanks for your help and for all your work. Kevin On 21/01/2015 11:54, Maruan Sahyoun wrote: Hi Kevin works for me - what's your Java Version? BR Ma

Re: Error on PDDocument.load

2015-01-21 Thread Maruan Sahyoun
Hi Kevin works for me - what's your Java Version? BR Maruan Am 21.01.2015 um 11:24 schrieb Kevin Morin : > Hi, > > it does not work with PDFToImage either, I still get a blank image. Plus, I > did not set the nonSeq option however it seems to be using the non sequential > parser. And I have

Re: Error on PDDocument.load

2015-01-21 Thread Kevin Morin
Hi, it does not work with PDFToImage either, I still get a blank image. Plus, I did not set the nonSeq option however it seems to be using the non sequential parser. And I have the following traces: janv. 21, 2015 11:20:02 AM org.apache.pdfbox.pdfparser.NonSequentialPDFParser ch eckXrefOffset

Re: Error on PDDocument.load

2015-01-21 Thread Maruan Sahyoun
Hi Kevin, you can test with the PDFToImage command [1] available in from the pdfbox-app [2] if the issue happens there. The source for PDFToImage is available in the tools section of the SVN repo or online viewable [3]. BR Maruan [1] https://pdfbox.apache.org/1.8/commandline.html#pdfToImage [2

Re: Error on PDDocument.load

2015-01-21 Thread Kevin Morin
Hi Andreas, I am using the latest snapshot available on the maven repository. And I am running my app on Windows Server 2008 R2 Standard and it does not work (white page). Could send me the code or a jar to test on this server to check if it does not come from my code? BR Kevin On 19/01/20