-
David Lopez Sanchez
- PowerBuilder
- Friday, 12 December 2025 11:02 AM UTC
Hi,
When merging multiple PDFs using PDFDocument.ImportPDF(), some source PDFs do not expose form field groups in the target PDFDocument. Consequently, GetFormFieldGroupCount() returns 0 , and RemoveAllFormFieldGroup() has no effect.
If we import two PDFs that both contain forms, the final Save() fails with -49 (“The form object has been imported multiple times”). This seems aligned with documentation that warns about merging multiple PDFs with form objects, but we’d like to confirm whether a native flatten capability to convert forms to static content before/while merging.
When we attempt to save the combined PDF directly to a Blob, the function returns NULL instead of a numeric error code. We want to confirm if this is expected for our builds or a bug.
Is there a native form flattening feature available (or planned) to convert interactive form fields into static page content so merges can succeed without -49 while preserving the visuals?
Import/merge docs indicate limitations but no flatten API is documented
Environment
PowerBuilder: 2025 Build 3726 / 3711
OS: Windows 11 x64.
Runtime architecture: 32-bit or 64-bit
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.