You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "C. Bertho (JIRA)" <ji...@apache.org> on 2011/03/03 14:25:36 UTC

[jira] Updated: (PDFBOX-968) Writing text into existing PDF - extra spaces between characters on some pages of the PDF

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

C. Bertho updated PDFBOX-968:
-----------------------------

    Attachment: TextStamping_LetterSpacing1.jpg

On this page, everything is fine. The text is correctly written to the existing PDF

> Writing text into existing PDF - extra spaces between characters on some pages of the PDF
> -----------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-968
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-968
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Writing
>    Affects Versions: 1.3.1
>         Environment: Windows and Solaris environment
>            Reporter: C. Bertho
>         Attachments: TextStamping_LetterSpacing1.jpg
>
>
> I used PDFBox to add text into existing PDF documents (kind of text stamping).
> For some pages of PDF, the space/gap between letters/characters of the text is much wider !
> I cannot explain how/why it happens ?!
> Sample of my code:
> contentStream.beginText();
> contentStream.setNonStrokingColor(colorText);
> contentStream.setFont(pdfFont, fontSize);
> contentStream.moveTextPositionByAmount(xText, yText);
> contentStream.drawString(messageStamp);
> contentStream.endText();

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira