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:19:36 UTC
[jira] Created: (PDFBOX-968) Writing text into existing PDF - extra
spaces between characters on some pages of the 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
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
[jira] Updated: (PDFBOX-968) Writing text into existing PDF - extra
spaces between characters on some pages of the PDF
Posted by "C. Bertho (JIRA)" <ji...@apache.org>.
[ 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
[jira] Updated: (PDFBOX-968) Writing text into existing PDF - extra
spaces between characters on some pages of the PDF
Posted by "C. Bertho (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
C. Bertho updated PDFBOX-968:
-----------------------------
Attachment: TextStamping_LetterSpacing2.jpg
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
[jira] Issue Comment Edited: (PDFBOX-968) Writing text into
existing PDF - extra spaces between characters on some pages of the PDF
Posted by "C. Bertho (JIRA)" <ji...@apache.org>.
[ 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:52 PM:
----------------------------------------------------------
On another page (see TextStamping_LetterSpacing2.jpg), withing the same PDF document, the text has extra spaces between letters.
Why and how to disable this ?
was (Author: cbertho):
On this other page, 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
[jira] Issue Comment Edited: (PDFBOX-968) Writing text into
existing PDF - extra spaces between characters on some pages of the PDF
Posted by "C. Bertho (JIRA)" <ji...@apache.org>.
[ 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
[jira] Issue Comment Edited: (PDFBOX-968) Writing text into
existing PDF - extra spaces between characters on some pages of the PDF
Posted by "C. Bertho (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13001983#comment-13001983 ]
C. Bertho edited comment on PDFBOX-968 at 3/3/11 1:52 PM:
----------------------------------------------------------
On this page (see TextStamping_LetterSpacing1.jpg), everything is fine. The text is correctly written to the existing PDF
was (Author: cbertho):
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, 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