[
https://issues.apache.org/jira/browse/PDFBOX-5952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17926705#comment-17926705
]
Tilman Hausherr edited comment on PDFBOX-5952 at 2/13/25 8:15 AM:
------------------------------------------------------------------
{quote}The resource cache is already passed to the colorspace and could be
extended to manage such a cache.{quote}
Wow thanks, I hadn't noticed that... despite that I had committed that one
myself in PDFBOX-4411. Rendering is now done in 10 seconds. It needs a change
in 4 classes (not the ICC class, because it's always the same ICC colorspace
object), I'm going to run some tests first.
was (Author: tilman):
{quote}The resource cache is already passed to the colorspace and could be
extended to manage such a cache.{quote}
Wow thanks, I hadn't noticed that... despite that I had committed that one
myself in PDFBOX-4411. Rendering is now done in 10 seconds. It needs a change
in 4 classes (not the ICC class), I'm going to run some tests first.
> PDFRenderer causes endless loop
> -------------------------------
>
> Key: PDFBOX-5952
> URL: https://issues.apache.org/jira/browse/PDFBOX-5952
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 3.0.4 PDFBox
> Reporter: Andreas Koch
> Priority: Major
> Attachments: ijms-25-00052-v2.pdf_12.pdf,
> image-2025-02-12-10-16-04-596.png
>
>
> {code:java}
> Path path = Paths.get("ijms-25-00052-v2.pdf");
> PDDocument doc = Loader.loadPDF(path.toFile());
> PDFRenderer renderer = new PDFRenderer(doc);
> BufferedImage image = renderer.renderImageWithDPI(0, 72, ImageType.RGB);
> {code}
> When trying to convert the attached pdf page to an image an endless loop
> occures and the following log statements repeats itself.
>
> {color:#ff0000}Feb. 11, 2025 5:42:10 NACHM.
> org.apache.pdfbox.pdmodel.graphics.color.PDICCBased
> ensureDisplayProfile{color}
> {color:#ff0000}WARNUNG: ICC profile is Perceptual, ignoring, treating as
> Display class{color}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]