Hi,
do you know whether Oracle has an issue for that and/or whether they plan to
fix it? The same problem happens with the last java 1.6 update as well
(1.6_u43). Or at least I assume that this issue is about the problem caused
by java.awt.Font not being able to read Type1 fonts embedded in PDF any
more, right? I have tried to issue a bug report at oracle some weeks ago,
but only got the standard "we will check it" answer from their robot. The
PDFBox 2.0 solution is currently not of much help for my purposes. We
generate PCL and AFP by having a special implementation of Graphics2D and
need, if possible, to get Graphics2D.drawGlyphVector or Graphcs2D.drawString
to be called for texts in the input PDF. If this is the case, we are able to
create real PCL or AFP fonts and print text as text. PDFBox 2.0 renders the
texts as vector graphics, so that we get a huge vector graphics output
instead.
Best regards,
Petr Slaby.
-----Původní zpráva-----
From: Tilman Hausherr (JIRA)
Sent: Thursday, March 20, 2014 7:18 PM
To: [email protected]
Subject: [jira] [Commented] (PDFBOX-1992) text in pdf with convertToImage
not rendered
[
https://issues.apache.org/jira/browse/PDFBOX-1992?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13942080#comment-13942080
]
Tilman Hausherr commented on PDFBOX-1992:
-----------------------------------------
Yes :-(
If you can, please download the 2.0 version through svn which does not have
that problem. Although it is in development, it is pretty good :-)
text in pdf with convertToImage not rendered
--------------------------------------------
Key: PDFBOX-1992
URL: https://issues.apache.org/jira/browse/PDFBOX-1992
Project: PDFBox
Issue Type: Bug
Components: Rendering
Affects Versions: 1.6.0, 1.8.4
Environment: Java Runtime 7 Update 51
Reporter: Zuzzlwuzzl
I'm converting a pdf into an image. Since I have updated the Java Runtime
Environment from JRE 7 Update 17 to JRE 7 Update 51 text will not be
rendered.
PDDocument doc = PDDocument.load(is);
PDPage page = (PDPage) (pages.get(0));
BufferedImage image = page.convertToImage(BufferedImage.TYPE_INT_RGB,
100);
Example PDF:
http://www.swm.de/dms/swm/dokumente/m-wasser/gesunde-ernaehrung.pdf
Example Output:
https://db.tt/1pogAuU8
--
This message was sent by Atlassian JIRA
(v6.2#6252)