You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Ryan McKay <ry...@gmail.com> on 2025/01/24 18:35:07 UTC
Bug Report: Stack overflow when merging pdfs with certain characteristics
Hi,
I tried to get an ASF Jira account to report this, but I got rejected, and
it said to email you here instead.
I have reliably encountered a stack overflow error in both 2.x and 3.x
(library and CLI) when attempting to merge pdfs obtained by exporting from
Google docs.
Explicitly
setting PDFmerger.setDocumentMergeMode(PDFMergerUtility.DocumentMergeMode.OPTIMIZE_RESOURCES_MODE)
fixes the problem.
I have some pdfs I can provide that demonstrate the problem.
The sequence of merging also matters. The Google docs pdf needs to be
followed by another Google docs pdf or a pdf containing form elements to
encounter the issue.
Please let me know what are the next steps I should take.
Thank you,
Ryan
Re: Bug Report: Stack overflow when merging pdfs with certain characteristics
Posted by Tilman Hausherr <TH...@t-online.de>.
Hi,
Your JIRA account has been approved. You can post that text there and
also upload files that show the problem. Make sure you're using the
latest PDFBox versions.
Tilman
On 24.01.2025 19:35, Ryan McKay wrote:
> Hi,
> I tried to get an ASF Jira account to report this, but I got rejected, and
> it said to email you here instead.
> I have reliably encountered a stack overflow error in both 2.x and 3.x
> (library and CLI) when attempting to merge pdfs obtained by exporting from
> Google docs.
> Explicitly
> setting PDFmerger.setDocumentMergeMode(PDFMergerUtility.DocumentMergeMode.OPTIMIZE_RESOURCES_MODE)
> fixes the problem.
> I have some pdfs I can provide that demonstrate the problem.
> The sequence of merging also matters. The Google docs pdf needs to be
> followed by another Google docs pdf or a pdf containing form elements to
> encounter the issue.
> Please let me know what are the next steps I should take.
> Thank you,
> Ryan
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org