1. Raja RAMASAMY
  2. PowerBuilder
  3. Friday, 26 July 2024 11:43 AM UTC

Hi

 

We have a set of PDF files that need to be combined based on certain rules. Following is a sample code.

PDFdocument lpdf_doc
lpdf_doc = create PDFdocument

//Import the PDF content
lpdf_doc.importpdf("D:\import\masterdocument.pdf")
lpdf_doc.importpdf("D:\import\testdocument.pdf")
lpdf_doc.save( "D:\save\importcomplete.pdf")

 

Normally it works well.

However we also have PDF documents with fillable fields (PDF templates). Say if the masterdocument.pdf contains this fillable form, the masterdocument becomes empty. It also make the (final save) entire document empty.

I am using PowerBuilder 2022 Build 1892.

Any work arounds?

Your help is much appreciated.

 

Andreas Mykonios Accepted Answer Pending Moderation
  1. Friday, 26 July 2024 12:18 PM UTC
  2. PowerBuilder
  3. # 1

Hi.

You mention that you are using PB 2022 Build 1892. In this version PDF Builder is a Beta feature. You shouldn't use it for production! Please try to use PB 2022 R2 or even better R3. R2 is the first version to support PDFModel and R3 contains some improvements.

If you are having the same issue using R2 or R3, post your findings here.

By the way, with R2 I'm able to "merge" two pdfs (one of them containing fillable radio buttons).

Andreas.

Comment
There are no comments made yet.
Raja RAMASAMY Accepted Answer Pending Moderation
  1. Monday, 5 August 2024 16:13 PM UTC
  2. PowerBuilder
  3. # 2

Hi Andreas

Thanks for the suggestion. I have upgraded it to R3. It is now working.

However I hit the following error when I tried to append two documents and SAVE. The PDFDocument.Save throws the below error.

 
The form object has been imported multiple times.
 
ll_return = lpdf_master.save( ls_newfile)

if ll_return <> SUCCESS then
	lb = false
	goto _exit
end if
Comment
There are no comments made yet.
Peter Pang @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 6 August 2024 03:07 AM UTC
  2. PowerBuilder
  3. # 3

Hi Raja,

 

Thanks for reporting this problem!

PB2022 R3 PDFBuilder doesn’t support the form feature yet. We plan to support it. Thank you for your attention.

 

 

Best Regards,

Peter

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.