You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Manko (JIRA)" <ji...@apache.org> on 2011/09/16 21:30:09 UTC

[jira] [Commented] (PDFBOX-490) Pdf Printing of text from embedded fonts

    [ https://issues.apache.org/jira/browse/PDFBOX-490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13106742#comment-13106742 ] 

John Manko commented on PDFBOX-490:
-----------------------------------

Jens, I applied your changes to the latest pdfbox svn truck (as of today), and I'm still getting a similar problem.  I was wondering if you can advise.  Here is the warning (which results in a printed document where the font type is changed and other odd problems such as spaces modified to contain other characters and bullet numbers changed to strange characters):

Sep 16, 2011 3:07:27 PM org.apache.pdfbox.pdmodel.font.PDSimpleFont drawString
WARNING: Changing font on <T> from <Liberation Serif Bold> to the default font

I'm running Ubuntu 11.04, and the PDF was originally created in OpenOffice.org.

Here are the fonts used by the PDF:

LiberationSerif-Bold
 TrueType
 Embedded subset

LiberationSerif
 TrueType
 Embedded subset

Courier10PitchBT-Bold
 TrueType
 Embedded

Courier10PitchBT-Roman
 TrueType
 Embedded


This is my version of the JVM:

$ java -version
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.2) (6b22-1.10.2-0ubuntu1~11.04.1)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)


I've also testing using Sun HotSpot JVM, but the issue occurs.  Here is that version:

$ /usr/lib/jvm/java-6-sun/bin/java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)



> Pdf Printing of text from embedded fonts
> ----------------------------------------
>
>                 Key: PDFBOX-490
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-490
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 0.8.0-incubator
>         Environment: Windows XP, JRE 1.6
>            Reporter: Steve Poling
>            Assignee: Andreas Lehmkühler
>         Attachments: filled.pdf
>
>
> When printing from utility PrintPdf, text is rendered in the wrong typeface. The correct typeface is embedded within the PDF (Embedded Subset) as a TrueType font with an ANSI encoding. It may be noted that the AcroFields in a Courier typeface render correctly.

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