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

Jason Mackin commented on PDFBOX-3014:
--------------------------------------

I wrote a stand alone java app and it fails every time.  Here is the code:

{code}
    public static void main(String[] args) throws IOException {
        PDDocument document = PDDocument.load(new 
File("PATH_TO_FILE\\az101-1.15.0.pdf"));
        document.getDocumentCatalog().getAcroForm().flatten();
        PDFRenderer rend = new PDFRenderer(document);
        BufferedImage img = rend.renderImageWithDPI(0, 175);
    }
{code}

When I debug the FontMapperImpl class in the getFont method, the line:
{code}
 FontInfo info = fontInfoByName(postScriptName);
{code}
always sets info equal to null when postScriptName is "MS-Gothic" for the same 
reasons as in my previous post.
I will attach the pdf I used to run this code.

> ZapfDingbats not finding a substitute in Windows 8.1 Pro
> --------------------------------------------------------
>
>                 Key: PDFBOX-3014
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3014
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.0
>         Environment: Windows 8.1 Pro
>            Reporter: Jason Mackin
>              Labels: easyfix
>
> When running PDFBox on Windows 8.1 Pro, it can't find a proper substitute for 
> ZapfDingbats.
> This email chain from the mailing list talks about this problem but the fix 
> doesn't work for me:
> http://mail-archives.apache.org/mod_mbox/pdfbox-users/201504.mbox/%[email protected]%3E
> I was able to fix this problem by adding "MS-PGothic" to the substitutes 
> Array for ZapfDingbats (FontMapperImpl.java).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to