PDFTextStripper : can't change the default TextPositionComparator

2011-11-08 Thread Sébastien Dailly
Hello, I'm trying to use the PDFTextStripper class, but the sortByPosition does not seems to act correctly when the chararacters on the same line are not exactly on the same y position. There is no way to replace the TextPositionComparator used in the class by my own, even by subclassing the

Re: PDFTextStripper : can't change the default TextPositionComparator

2011-11-08 Thread Sébastien Dailly
Le 08/11/2011 16:53, Raimi Rufai a écrit : With Generics, things might look like this instead perhaps ... private Comparator textPositionComparator= new TextPositionComparator(); public Comparator getTextPositionComparator() { return textPositionComparator; } publi

Re: How to identify if the font is Bold and size from a TextPosition?

2012-01-08 Thread Sébastien Dailly
Le 06/01/2012 14:27, Edson Alves Pereira a écrit : Hello folks, does anyone known where can i identify if a TextPosition contain a bold character? Take a look in the Font Descriptor Flag (see 9.8.2 in PDF Reference Book) : there is a « ForceBold » flag, maybe your font has the flag setted. h

Strange stacktrace

2012-10-09 Thread Sébastien Dailly
Hello, We are encountering some errors with pdfbox on a AIX platform. We don't know how to reproduce the problem, neither how to explain it… The stacktrace here : java.io.IOException: No such file or directory at org.apache.pdfbox.io.RandomAccessFile.length(RandomAccessFile.java:83) at org.

Re: Strange stacktrace

2012-10-10 Thread Sébastien Dailly
Le 10/10/2012 10:52, Jens Kapitza a écrit : Am 10.10.2012 08:14, schrieb Sébastien Dailly: Hello, Hello, thank you for your answer We are encountering some errors with pdfbox on a AIX platform. We don't know how to reproduce the problem, neither how to explain it… The stacktrace

Re: Strange stacktrace

2012-10-10 Thread Sébastien Dailly
Le 10/10/2012 11:53, Jens Kapitza a écrit : Am 10.10.2012 11:35, schrieb Sébastien Dailly: I could'nt reproduced the problem : if the file does not exists, we have another exception, and do not go throught the pdfbox parsing system… It is as if Pdfbox can open the file and make its own

Re: Strange stacktrace

2012-10-11 Thread Sébastien Dailly
but me has encountered this problem before ? Thanks ! -- Sébastien Dailly

Re: Strange stacktrace

2012-10-11 Thread Sébastien Dailly
d environnement; the File.createTempFile seems thread safe, but I do not trust the Weblogic jvm… The problem is : how to check if : * the file is deleted by the java process * the file is deleted by the environemnt (cron job, another application) * the file has never existed T

Re: Strange stacktrace

2012-10-11 Thread Sébastien Dailly
help, i'll keep you informed ! -- Sébastien Dailly

Re: What's wrong with this font ?

2013-03-20 Thread Sébastien Dailly
dfbox version. I'll upgrade and run some tests with the new library. -- Sébastien Dailly +33 1 56 29 78 67 ELETTERMAIL

PDColorSpace should be a dictionnary ?

2013-05-14 Thread Sébastien Dailly
Is there a way to process for convert into a dictionnary ? (I'm waiting for the right to diffuse the pdf document) Thanks, -- Sébastien Dailly

Re: PDColorSpace should be a dictionnary ?

2013-05-15 Thread Sébastien Dailly
Hello Maruan, Thanks for your answer and the way to cast to cast the object as a dictionnary. -- Sébastien Dailly

Re: PDColorSpace should be a dictionnary ?

2013-05-16 Thread Sébastien Dailly
Le 2013-05-15 15:29, Andreas Lehmkuehler a écrit : Hello, Pdfbox 1.7 convert it as PDDeviceN classes, and does not allow me to walk inside the referenced object. Is there a way to process for convert into a dictionnary ? What exactly are you looking for which can't be accessed using the cur

Re: PDColorSpace should be a dictionnary ?

2013-05-16 Thread Sébastien Dailly
this is a choice to do, I think there is no good answer, just a choice to assume… -- Sébastien Dailly