You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Jukka Zitting (JIRA)" <ji...@apache.org> on 2010/12/03 00:16:12 UTC

[jira] Resolved: (PDFBOX-288) PDF to Image: Problem with text

     [ https://issues.apache.org/jira/browse/PDFBOX-288?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting resolved PDFBOX-288.
----------------------------------

    Resolution: Incomplete

Test document not available.

> PDF to Image: Problem with text
> -------------------------------
>
>                 Key: PDFBOX-288
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-288
>             Project: PDFBox
>          Issue Type: Bug
>            Priority: Minor
>
> [imported from SourceForge]
> http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1753348
> Originally submitted by fuji4 on 2007-07-13 03:16.
> I have some problems when converting PDF pages to images:
> The spaces between the letters are not correct!!!
> [attachment on SourceForge]
> http://sourceforge.net/tracker/download.php?group_id=78314&atid=552832&aid=1753348&file_id=236851
> demo.jpg (image/jpeg), 243495 bytes
> Demo Article
> [comment on SourceForge]
> Originally sent by nobody.
> Logged In: NO 
> Using org.pdfbox.pdfviewer.PageDrawer I noticed the same thing.
> I think the spaces are not wrong, but the text is too big. The next piece of text is thereby overlapping the previous text, because the previous text runs to far.
> Looking in the PDFont-classess, I noticed the line:
> g2d.drawString( string, (int)x, (int)y );
> by casting the float-value to int, we loose precission. It makes sence, because not all the text runs too far.
> I suggest to multiply it by 1000 and than scale it back or something, to prevent loss of such precission.
> b.t.w. drawString in PDType3Font is not overriding but overloading, I presume that has not done on purpose either?
> the_tzar@users.sourceforge.net (anonymous: cannot get to my password right now :) )

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.