pdf - Java Print encoding with Sun PDFRenderer -
i'm beginner in java programming , here @ stackoverflow. i'm trying print pdf-files com.sun.pdfview library. works often, documents following error:
java.lang.illegalargumentexception: unknown encoding: symbolsetencoding @ com.sun.pdfview.font.pdffontencoding.getbaseencoding(pdffontencoding.java:199) @ com.sun.pdfview.font.pdffontencoding.<init>(pdffontencoding.java:78) @ com.sun.pdfview.font.pdffont.getfont(pdffont.java:133) @ com.sun.pdfview.pdfparser.getfontfrom(pdfparser.java:1166) @ com.sun.pdfview.pdfparser.iterate(pdfparser.java:719) @ com.sun.pdfview.basewatchable.run(basewatchable.java:101) @ java.lang.thread.run(thread.java:722)
i should inform you, these documents written in caucasian language (georgian) , typical font sylfaen.
the error occurs in following code:
pdfrenderer pgs = new pdfrenderer(page, g2, imgbounds, null,null); try { page.waitforfinish(); pgs.run();
i believe these documents need use different encoding or need specify font, unfortunately couldn't find ankle can take or change setting.
thank you
martin
pdfrenderer supports limited subset of pdf spec.
Comments
Post a Comment