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:52:41 UTC
[jira] Issue Comment Edited: (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:comment-tabpanel&focusedCommentId=13001984#comment-13001984 ]
C. Bertho edited comment on PDFBOX-968 at 3/3/11 1:51 PM:
----------------------------------------------------------
On this other page, withing the same PDF document, the text has extra spaces between letters.
Why and how to disable this ?
was (Author: cbertho):
On this, withing the same PDF document, the text has extra spaces between letters.
Why and how to disable this ?
> 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, TextStamping_LetterSpacing2.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