[
https://issues.apache.org/jira/browse/PDFBOX-5590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andreas Lehmkühler closed PDFBOX-5590.
--------------------------------------
Assignee: Andreas Lehmkühler
Resolution: Won't Fix
The attached pdf is similar to the one from PDFBOX-5622. It consists of pages
using a huge content stream.
You should switch to 3.0.0 to handle such pdfs. It uses less memory and doesn't
have any issues rendering the pdf in question.
> Java heap space
> ---------------
>
> Key: PDFBOX-5590
> URL: https://issues.apache.org/jira/browse/PDFBOX-5590
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.28
> Reporter: liu
> Assignee: Andreas Lehmkühler
> Priority: Major
> Attachments: 1-1.jpg, 1.jpg, 2.jpg, MyPDInlineImage.java,
> PdfboxBeginInlineImage.java, PdfboxPDInlineImage.java, PdfboxPageDrawer.java,
> screenshot-1.png, screenshot-2.png, screenshot-3.png, screenshot-4.png,
> screenshot-5.png, screenshot-6.png, screenshot-7.png, test.pdf
>
>
> jvm:
> -Xmx1000M
> -Xms1000M
> -XX:-PrintGCDetails
> -XX:+HeapDumpOnOutOfMemoryError
> -XX:HeapDumpPath=C:\Users\LYCIT\Desktop
> demo:
> public static void main(String[] args) throws IOException {
> File file = new File("C:\\Users\\LYCIT\\Desktop\\test.pdf");
> final PDDocument load = PDDocument.load(file,
> MemoryUsageSetting.setupTempFileOnly(-1)
> .setTempDir(new File("D:\\fcs\\test")));
> PDFRenderer renderer = new PDFRenderer(load);
> renderer.setSubsamplingAllowed(true);
> float scale = 1.2f;
> try {
> BufferedImage bufferedImage = renderer.renderImage(0,
> scale, ImageType.RGB);
> } catch (Exception e) {
> System.out.println(e);
> }
> }
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]