1. Steen Jakobsen
  2. PowerBuilder
  3. Wednesday, 5 October 2022 05:34 AM UTC

Hi,

 

Anyone tried this new PB2022 PDF feature : New PDF Builder (beta feature) - - What's New (appeon.com)

 

Thanks Steen

Accepted Answer
Andreas Mykonios Accepted Answer Pending Moderation
  1. Wednesday, 5 October 2022 07:04 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi.

Yes, I did.

It seems to be straight forward.

Follows a simple example that merges files.

Let say that I have 20 pdf in c:\tests. Their names: 101.pdf - 120.pdf.

The following procedure will merge them in c:\tests\Merged.pdf.

integer li_i, li_err
PDFDocument lnv_pdf

lnv_pdf = create PDFDocument

// li_err should be checked to see if importpdf succeeded.
li_err = lnv_pdf.importpdf("C:\Tests\101.pdf", 'alfg$&37oxem')

lnv_pdf.properties.application = "Sample PDF Merge"
lnv_pdf.properties.author = "A.M."

for li_i = 102 to 120
	li_err = lnv_pdf.importpdf("C:\Tests\" + string(li_i) + ".pdf", 'alfg$&37oxem')
next

lnv_pdf.security.allowannotations = false
lnv_pdf.security.allowassemble = false
lnv_pdf.security.allowcopy = false
lnv_pdf.security.allowforms = false
lnv_pdf.security.allowhighresolutionprint = false
lnv_pdf.security.allowmodify = false
lnv_pdf.security.allowprint = false
lnv_pdf.security.masterpassword = 'Some Password'

if fileexists("C:\Tests\Merged.pdf") then filedelete("C:\Tests\Merged.pdf")
// li_err should be checked to see if save succeeded.
li_err = lnv_pdf.Save("C:\Tests\Merged.pdf")

if isvalid(lnv_pdf) then destroy lnv_pdf

Andreas.

Comment
  1. Steen Jakobsen
  2. Wednesday, 5 October 2022 10:13 AM UTC
Very very nice.



Do you know if one cane make a TableOfContents with links to pages ?
  1. Helpful
  1. Andreas Mykonios
  2. Wednesday, 5 October 2022 12:07 PM UTC
Currently no.

You can get an answer by reading the following question and the answer provided by Julie Jiang https://community.appeon.com/index.php/qna/q-a/pb2022-wau-take-a-look-at-this-new-pdfbuilder-objects-beta-feature.

Andreas.
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Wednesday, 26 October 2022 12:19 PM UTC
Hi Steen, Please send suggestions how you would like this feature enhanced to product@appeon.com. Thanks!
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 26 October 2022 11:41 AM UTC
  2. PowerBuilder
  3. # 1

Hi Steen;

   Yes, it's still a beta release in 2022 GA. I'm just looking at some R2 preview PDF stuff & it's already much more advanced. So I think that you'll see quite an improvement in R2.  ;-)

Regards ... Chris 

Comment
  1. Steen Jakobsen
  2. Wednesday, 26 October 2022 13:51 PM UTC
Thanks Chriss :-)

Do you know if the different PDF properties can be extracted and if there will be a TOC (table of contents) feature ?
  1. Helpful
There are no comments made yet.
Steen Jakobsen Accepted Answer Pending Moderation
  1. Wednesday, 26 October 2022 04:47 AM UTC
  2. PowerBuilder
  3. # 2

Hi again,

 

It seems that the new (beta) pdf stuff is very limited and does not really work for my purpose.

I'm trying to read the properties of a pdf file and i cannot make that work.

After using importpdf()  none of the properties are populated. Also most of the pdf file properties are not even accessible at all.

modified,created,pdfversion,company .......  in other words many or I would say most of them.

I think this is premature and needs a lot of love before it is useful.

 

But I think it is promising that it is even there and that Appeon is working on it :-)  .. GREAT work Appeon.

 

//Steen

 

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.