You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2013/08/09 19:54:50 UTC
[jira] [Resolved] (PDFBOX-723) Our test hangs with custom pdf file
on operation PDPage.convertToImage()
[ https://issues.apache.org/jira/browse/PDFBOX-723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler resolved PDFBOX-723.
---------------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
Assignee: Andreas Lehmkühler
I can't reproduce the issue, but I guess it is related to the font rendering with different JDK version.
It looks quite perfect after solving PDFBOX-490 and I assume that convertToImage no longer hangs when processing the attached pdf.
> Our test hangs with custom pdf file on operation PDPage.convertToImage()
> ------------------------------------------------------------------------
>
> Key: PDFBOX-723
> URL: https://issues.apache.org/jira/browse/PDFBOX-723
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 0.7.3, 1.1.0, 1.2.0
> Environment: Linux, JDK 1.5 Update 22 (32 and 64), JDK 1.5 Update 16
> (works with Linux, JDK 1.6 perfect,
> works with MacOS JDK 1.5 update 13)
> Reporter: Alexey Zavizionov
> Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
> Attachments: 081111.pdf
>
>
> Our code is:
> {code}
> String pdfname = "081111.pdf";
> InputStream pdf = Thread.currentThread().getContextClassLoader().getResourceAsStream(pdfname);
> ContentStream stream = new BaseContentStream(pdf, pdfname, new MimeType("application", "pdf"));
> PDDocument pdf = PDDocument.load(stream.getStream());
> PDPage page = (PDPage)pdf.getDocumentCatalog().getAllPages().get(0);
> BufferedImage image = page.convertToImage();
> ...
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira