-
Monica Petersen
- PowerBuilder
- Sunday, 23 March 2025 08:21 PM UTC
Hi All,
I'm using the PDFDocument object to save a client invoice datawindow as a PDF, and then append supporting documentation to that PDF. The supporting documentation is stored in various records in the same database.
It worked in testing, but in production, I'm seeing that some PDFs cause problems. I looked at one client invoice, and the PDFDocument Save function failed with a -49 "The form object has been imported multiple times". The message is misleading, because each PDF is a distinct file that I've read from the database and written to a uniquely named file. I played around with it and found that one specific PDF was causing the problem, and if I skipped it the other 4 files merged successfully.
The PDF files are generated externally and uploaded as is. I'm wondering if I should be pre-processing them in some way before I store them in the database? Maybe I need to convert them to some universally compatible PDF version?
I'm using 2022 R3 Build 3397.
Thanks,
Monica
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.