Re: PDF extraction timeout

2015-03-04 Thread Tilman Hausherr
Am 04.03.2015 um 23:55 schrieb Shyam Odedra: Hi, I am having an issue where my application must wait X amount of time before giving up on the PDF Extraction. The problem is that when I timeout on the thread doing the PDF Extaction, PDFBox is still working and has a handle on the output file.

Re: PDFBox 2.0.0 and UTF8 chars

2015-03-04 Thread Tilman Hausherr
What I just did is this: I used the CreatePDFA.java example, and here it is: http://www.filedropper.com/pdfa Tilman Am 04.03.2015 um 23:54 schrieb Ivan Klaric: On Wed, Mar 4, 2015 at 8:53 PM Eric Douglas wrote: I'm not sure what you're doing on the TTFParser error from the snapshot, but on c

PDF extraction timeout

2015-03-04 Thread Shyam Odedra
Hi, I am having an issue where my application must wait X amount of time before giving up on the PDF Extraction. The problem is that when I timeout on the thread doing the PDF Extaction, PDFBox is still working and has a handle on the output file. I need a way to timeout the extraction process

Re: PDFBox 2.0.0 and UTF8 chars

2015-03-04 Thread Ivan Klaric
On Wed, Mar 4, 2015 at 8:53 PM Eric Douglas wrote: > I'm not sure what you're doing on the TTFParser error from the snapshot, > but on copying the jars out of the lib folder make sure you get all > dependencies. > cmap stream Identity-H is referring to pcfi-2010.08.09.jar > Unfortunately, adding

Re: PDFBox 2.0.0 and UTF8 chars

2015-03-04 Thread Eric Douglas
I'm not sure what you're doing on the TTFParser error from the snapshot, but on copying the jars out of the lib folder make sure you get all dependencies. cmap stream Identity-H is referring to pcfi-2010.08.09.jar On Wed, Mar 4, 2015 at 2:23 PM, Ivan Klaric wrote: > OK, I'll focus on the PDType0

Re: PDFBox 2.0.0 and UTF8 chars

2015-03-04 Thread Ivan Klaric
OK, I'll focus on the PDType0Font.load version then. I build my pdfbox like this: svn update && ant clean && ant build and then copy fontbox-2.0.0.jar & pdfbox-2.0.0.jar from the target folder to my projects lib folder. This stack trace: java.io.IOException: Error: Could not find referenced cmap

Re: PDFBox 2.0.0 and UTF8 chars

2015-03-04 Thread John Hewson
Hi, > On 28 Feb 2015, at 02:52, Ivan Klaric wrote: > > Hello good PDFBox people, > > I am working on a pet project with PDFBox and I encountered what seems to > be an issue with UTF8 chars. If you take the following standard example: > >public static void main(String[] args) { >try

Re: PDFRenderer

2015-03-04 Thread Tilman Hausherr
Am 04.03.2015 um 16:35 schrieb Eric Douglas: How much overhead is in this method? It uses a lot of memory, but the time used is very small compared to render a page. Tilman - To unsubscribe, e-mail: users-unsubscr...@pdfbox

Re: PDFRenderer

2015-03-04 Thread John Hewson
> On 4 Mar 2015, at 07:35, Eric Douglas wrote: > > I'm using org.apache.pdfbox.rendering.PDFRenderer renderPageToGraphics > method in a GUI component. > This PDFRenderer requires a document in the constructor. This render > method requires the document to be open. PDDocument.load creates and o

Re: Question about PDDocument.setVersion

2015-03-04 Thread Andrea Vacondio
Hi, yes true, but still there's a dead "if" in the method so it's likely not behaving as it was intended to. On Wed, Mar 4, 2015 at 4:36 PM, Maruan Sahyoun wrote: > Hi, > > from PDF 1.4 on the Version entry in the document catalog may override the > version specified in the header. As a result t

Re: Question about PDDocument.setVersion

2015-03-04 Thread Maruan Sahyoun
Hi, from PDF 1.4 on the Version entry in the document catalog may override the version specified in the header. As a result they could have different versions and don't need to be in sync. That's especially useful when doing an incremental update as the header can not change as part of that but

PDFRenderer

2015-03-04 Thread Eric Douglas
I'm using org.apache.pdfbox.rendering.PDFRenderer renderPageToGraphics method in a GUI component. This PDFRenderer requires a document in the constructor. This render method requires the document to be open. PDDocument.load creates and opens the document object. How much overhead is in this meth

Re: Pdfbox trunk error

2015-03-04 Thread Maruan Sahyoun
Hi Eric, I have PDFBox in Eclipse up and running - so I might be able to help you getting that too. BR Maruan Am 04.03.2015 um 16:06 schrieb Eric Douglas : > I would prefer to import the project to Eclipse so I can have it > automatically get updates and build the latest jar, but as I can't ge

Re: Pdfbox trunk error

2015-03-04 Thread Eric Douglas
I would prefer to import the project to Eclipse so I can have it automatically get updates and build the latest jar, but as I can't get that to work we can try the snapshot for now. The snapshot jar is confusing, as it appears it merges in some requirements but not all. It appears it has the class

Re: Question about PDDocument.setVersion

2015-03-04 Thread Andreas Lehmkühler
Hi Andrea, > Andrea Vacondio hat am 4. März 2015 um 14:15 > geschrieben: > > > Hi, about 2.0.0-SNAPSHOT I was setting version on an existing document and > I noticed the version was set on the Catalog but not in the header so I > took a look at the code and I think there's something odd there (

Question about PDDocument.setVersion

2015-03-04 Thread Andrea Vacondio
Hi, about 2.0.0-SNAPSHOT I was setting version on an existing document and I noticed the version was set on the Catalog but not in the header so I took a look at the code and I think there's something odd there (or I'm missing something). It first makes sure we are not downgrading the version and t