Sat Oct 22 07:47:27 2016 dosio [...] land.it - Correspondence added
Subject: Re: [rt.cpan.org #114976] Huge memory consumption in page splitting
Date: Sat, 22 Oct 2016 13:46:25 +0200
To: bug-PDF-API2 [...] rt.cpan.org
From: Claudio Dosio <dosio [...] land.it>
Hello,
attached is one of the PDFs that create the problem. I cannot send the other ones as they contain customer private data. The problem mainly occurs when at least one of the images in the PDF comes from a scanner or MFC device. Probably the PDFs in that case have something weird in their structure but they can be opened without problems with Acrobat Reader or similar tools, which makes it hard to explain to somebody that their PDF has problems.
One of the workarounds I found is to convert the incoming PDF via pdfopt, pdftk or ghostscript but that takes time and does not always guarantee the result.
What I would need if the bug cannot be easily fixed is to have some error from the PDF::API2 library that I can use to return an error
condition upstream, while now what seems to happen is that the perl continues to run even if the page has not been fully split but any exec/system command that tries to run an external command returns a out of memory condition from the external command itself.
Please let me know if I can be of any help for you to solve the problem.
Best regards
Claudio
--
Claudio Dosio
Responsabile R&S Software
<< file too large to attach. it is available at
https://rt.cpan.org/Public/Ticket/Attachment/1678038/900541/prova20150224.pdf >>
<formatting cleanup - Mod.>