[
https://issues.apache.org/jira/browse/PDFBOX-3294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vijay updated PDFBOX-3294:
--------------------------
Attachment: VFEpRJNMpdC1SCElMVN_ew__93_1_93_0.pdf
the file, which we are trying to load and taking first page to convert as image.
> After loading pdf through PDFRenderer(pdf), We are trying to take the first
> page and convert that into preview image, but it is sometimes gets out of
> memory.
> -------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: PDFBOX-3294
> URL: https://issues.apache.org/jira/browse/PDFBOX-3294
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.0
> Environment: Windows 8.1 OS, 8 GB ram, I5 processor
> Reporter: Vijay
> Priority: Blocker
> Attachments: VFEpRJNMpdC1SCElMVN_ew__93_1_93_0.pdf, sample code.png
>
>
> Senario 1.
> After loading pdf through PDFRenderer(pdf), We are trying to take the first
> page and convert that into preview image, but it is sometimes gets out of
> memory by calling "pdfRenderer.renderImageWithDPI(0, 300, ImageType.RGB)",
> Senario 2.
> After loading pdf through PDFRenderer(pdf), We are trying to take the first
> page and convert that into preview image, so we are calling
> "pdfRenderer.renderImageWithDPI(0, 300, ImageType.RGB)", it takes more time
> to return the bufferimage.
> after we called ImageIOUtil.writeImage(bufferedImage, fileName, 175) tooks
> more time to save it to local and the size of the image is very huge.
> for example.
> total size of the pdf - 2.7 mb
> first page image size - 14 MB.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]