bai yuan created PDFBOX-4678:
--------------------------------

             Summary: Use PDFontFactory. CreateDefaultFont font to render text, 
the exported PDF document has a mistake
                 Key: PDFBOX-4678
                 URL: https://issues.apache.org/jira/browse/PDFBOX-4678
             Project: PDFBox
          Issue Type: Bug
            Reporter: bai yuan
         Attachments: AdobeError.png, GoogleChrome.png, Test.zip

Using PDFontFactory. CreateDefaultFont font to render a text and save this 
document.
{code:java}
float fontSize = 11;
PDFont font = PDFontFactory.createDefaultFont(); 
contentStream.beginText();  
contentStream.newLineAtOffset(100, 100); 
contentStream.setFont(font, fontSize);
contentStream.showText("¥456,123"); 
contentStream.endText();
contentStream.close();

doc.save("sample.pdf");{code}
Open the PDF document with Abode and throw the following error message when 
editing the document.

!AdobeError.png!

And i opened this pdf document using the Google browser as shown below:

!GoogleChrome.png!

[^Test.zip]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to