You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ccouturi (JIRA)" <ji...@apache.org> on 2016/12/09 15:58:58 UTC

[jira] [Updated] (PDFBOX-3623) PDFRenderer: java.lang.UnsupportedOperationException: OTF fonts do not have a glyf table

     [ https://issues.apache.org/jira/browse/PDFBOX-3623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ccouturi updated PDFBOX-3623:
-----------------------------
    Attachment: glyf_table.pdf

> PDFRenderer: java.lang.UnsupportedOperationException: OTF fonts do not have a glyf table
> ----------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-3623
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3623
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>            Reporter: ccouturi
>         Attachments: glyf_table.pdf
>
>
> When I render the attached pdf, a UnsupportedOperationException is thrown: OTF fonts do not have a glyf table.
> Code to reproduce :
> public static void main(String args[]) throws IOException {
>         PDDocument doc = null;
>         String path = "glyf_table.pdf";
>         int pageIndex = 2;
>         File file = new File(path);
>         try (InputStream stream = new FileInputStream(file)) {
>             doc = PDDocument.load(stream, PDF_LOADING_MEMORY_SETTING);
>             PDFRenderer renderer = new PDFRenderer(doc);
>             renderer.renderImageWithDPI(pageIndex - 1, 150, ImageType.RGB);
>         } finally {
>             if (doc != null) {
>                 doc.close();
>             }
>         }
>     }
> Thank you



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

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