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