You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by Andreas Lehmkuehler <an...@lehmi.de> on 2011/12/18 19:22:49 UTC

Re: [pdfbox trunk] TextPosition.getWidthDirAdj/getWidthDirAdj ist 0

Hi,

Am 13.12.2011 17:35, schrieb André Kischkel:
> Hello Andreas,
>
> maybe this is interesting for you. PDF files converted by Oracles Outside In
> PDF-Export (any version) contain wrong TextPosition values. In earlier pdfbox
> versions than current head I could fix the pdfxbox bug with the following code
> snippet:
>
> // Workaround: OutsideIn PDF-Export Bounds Correction
> if (_createdByOutsideIn && tp.getFontSize() == 1) {
>    h = -h/14.066f;
> }
>
> But nowadays, the value for getWidth() is almost any time 0.
Sounds like a problem. I've created issue PDFBOX-1192 on JIRA [1].

> Oracle Outside In is a common file converter toolkit that is capable of
> converting over 400 file formats and it is commonly used by search engine
> manufacturers.
It's always a good idea to embed all used fonts to avoid problems on different 
platforms with different sets of available fonts. There may be a option to 
configure Oracle Outside In to do so.

> Regards,
> André

Please, avoid to contact the devolpers directly, use the mailings lists [2] instead.

BR
Andreas Lehmkühler

[1] https://issues.apache.org/jira/browse/PDFBOX-1192
[2] http://pdfbox.apache.org/mail-lists.html