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:18:11 UTC

[jira] Resolved: (PDFBOX-266) TextPosition overlaps (PDFStreamEngine)

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

Jukka Zitting resolved PDFBOX-266.
----------------------------------

    Resolution: Duplicate

Works fine in 1.3.1

> TextPosition overlaps (PDFStreamEngine)
> ---------------------------------------
>
>                 Key: PDFBOX-266
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-266
>             Project: PDFBox
>          Issue Type: Bug
>            Priority: Minor
>
> [imported from SourceForge]
> http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1700854
> Originally submitted by weihang on 2007-04-14 19:45.
> Characters in words are rendered too close together. In fact some of them actually overlap. The same PDF document opened in Preview/Acrobat Reader doesn't have the issue.
> PDFOperator{BT} []
> PDFOperator{Tf} [COSName{F4}, COSInt{1}]
> PDFOperator{Tm} [COSInt{8}, COSInt{0}, COSInt{0}, COSInt{8}, COSFloat{588.8953}, COSFloat{22.3465}]
> PDFOperator{Tr} [COSInt{0}]
> PDFOperator{Tc} [COSInt{0}]
> PDFOperator{TJ} [COSArray{[COSString{2?}, COSInt{1}]}]
> >>> Current Test Position: (588.8953, 771.3545)
> >>> 2 (ShowString)
> >>> Current Text Position: (593.3433, 771.3545)
> >>> Current Text Position: (593.3353, 771.3545)
> PDFOperator{TJ} [COSArray{[COSString{?}, COSInt{556}]}]
> >>> Current Text Position: (593.3353, 771.3545)
> >>> 9 (ShowString)
> >>> Current Text Position (597.7833, 771.3545)
> ...
> ...
> ...
> PDFToImage output: http://img267.imageshack.us/my.php?image=arank29pm1.jpg
> Source PDF: http://announcements.bursamalaysia.com/edms/subweb.nsf/7f04516f8098680348256c6f0017a6bf/f16f22a43d8a4aca4825727600101223/$FILE/ARANK-AnnualReport2006%20(661KB).pdf
> [comment on SourceForge]
> Originally sent by weihang.
> Logged In: YES 
> user_id=307423
> Originator: YES
> I re-implemented the ShowString method in PDFStreamEngine using the algorithm described in PDF 1.6 Reference. I believe the algorithm is the same as in current ShowString implementaion. My method returns the same results whereby some TextPositions overlap. Does anyone know why this is so?

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