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
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