ccouturi created PDFBOX-3623:
--------------------------------

             Summary: 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


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to