Security PB9 is ok but PB8 do not work

If you are a Power Builder developer and have any questions about using our products from Power Builder here is the place to post them.
Post Reply
Fernando Lusardo
Posts: 5
Joined: Tue Jan 20 2009

Security PB9 is ok but PB8 do not work

Post by Fernando Lusardo » Thu Jan 29 2009

Please, I want to thanks by the help you gave me about using security methods!

Now I have one more stone to jump;

I use the method on the fly in PB9 like that:

i_ole_pdf.FileNameOptions = 1 + 2 + 256
i_ole_pdf.OwnerPassword = '12345'
i_ole_pdf.UserPassword = ''
i_ole_pdf.Permissions = -64 + 4

i_ole_pdf.SetDefaultConfig()

and this do the job!!

When I try to put the same code in PB8 do not work like PowerBuilder9, it create a document totally protected but without password, when you remove security from the document, do not ask any pass and do the job!!

Can you help me one more tyme?? thnks
:roll:

Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Re: Security PB9 is ok but PB8 do not work

Post by Joan » Thu Jan 29 2009

If you specify only an owner password without a user password it is normal for the pdf file to open without asking for a password but the file would be encrypted.

This should be the same whether you are generating the PDF file from PB9 or PB8. I don't see what the version of PB will affect the generated pdf file.
Custom Brand the Amyuni PDF Printer Driver http://www.amyuni.com/en/developer/branding/index.html

Amyuni PDF Converter tested for true PDF performance. View results - http://www.amyuni.com/benchmark

Post Reply