[
https://issues.apache.org/jira/browse/PDFBOX-1296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14681868#comment-14681868
]
Frolov Vladimir commented on PDFBOX-1296:
-----------------------------------------
Hello Tilman Hausherr!
I have the same bug when I`m trying convert pdf file to a set of png`s. I see
in the top of this issue that this bug was solved in version 2.0.0, but I can`t
download version 2.0.0-SNAPSHOT.
This is piece of my log file:
[PDSimpleFont.drawString: 135] - Changing font on <u> from <Arial> to the
default font
[PDSimpleFont.drawString: 135] - Changing font on <g> from <Arial> to the
default font
[PDSimpleFont.drawString: 135] - Changing font on <h> from <Arial> to the
default font
Tilman Hausherr, can you give me advice how I can solve my problem? Could I
contact with you to discuss that problem?
> Warnung: Changing font on < > from <AMAKEA+TimesNewRoman> to the default font
> -----------------------------------------------------------------------------
>
> Key: PDFBOX-1296
> URL: https://issues.apache.org/jira/browse/PDFBOX-1296
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 1.6.0, 1.8.2, 2.0.0
> Environment: XP, JDK 1.7
> Reporter: Tilman Hausherr
> Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
> Attachments: outside-in-01.png, outside-in.pdf, shortcuts-01.png,
> shortcuts.pdf
>
>
> Pdfbox does not produce the correct fonts in the PNG file created with the
> following code and I get a lot of warnings:
> PDDocument document = null;
> try
> {
> document = PDDocument.load(pdfFile);
> List pages = document.getDocumentCatalog().getAllPages();
> int p = 0;
> for (Object pobj : pages)
> {
> PDPage page = (PDPage) pobj;
> ++p;
> BufferedImage bim = page.convertToImage();
> // Test with output in memory, to see the size
> ByteArrayOutputStream memout = new
> ByteArrayOutputStream();
> boolean memoutok = ImageIO.write(bim, "png", memout);
> if (!memoutok)
> System.err.println ("mem write failed for " + p);
> memout.reset();
> memout.close();
> // Test with output to png file
> String fname = String.format("%s-%02d.png", prefix, p);
> boolean foutok = ImageIO.write(bim, "png", new
> File(fname));
> if (!foutok)
> System.err.println ("file write failed for " + p);
> ....
> Apr 26, 2012 2:41:11 PM org.apache.pdfbox.util.PDFStreamEngine processOperator
> Information: unsupported/disabled operation: i
> Apr 26, 2012 2:41:12 PM org.apache.pdfbox.util.PDFStreamEngine processOperator
> Information: unsupported/disabled operation: ri
> Apr 26, 2012 2:41:12 PM org.apache.pdfbox.pdmodel.font.PDSimpleFont drawString
> Warnung: Changing font on < > from <AMAKEA+TimesNewRoman> to the default font
> Apr 26, 2012 2:41:13 PM org.apache.pdfbox.pdmodel.font.PDSimpleFont drawString
> Warnung: Changing font on < > from <AMAKEA+TimesNewRoman> to the default font
> Apr 26, 2012 2:41:13 PM org.apache.pdfbox.pdmodel.font.PDSimpleFont drawString
> Warnung: Changing font on <O> from <AMAKME+Arial,Bold> to the default font
> Apr 26, 2012 2:41:13 PM org.apache.pdfbox.pdmodel.font.PDSimpleFont drawString
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]