Hi there,
i was experimenting with the PDF creation abilities of TextDynamic. Quite impressing...
But i stumbled across something i have have no explanation for.
The following VFP9 SP2 code sets some security settings for the export including password for the Owner. The exported PDF is perfectly OK and shows all signs of a "secured" PDF. Unfortunately getting access to the PDF.settings part with Adobe Acrobat 9 fails with "wrong password". Even when i hardcode the password (like in this test) Acrobat does not accept the password. Very weird.
Code
WITH thisform.TextDynamicObject as WPTDYNINT.WPDLLInt
.PDFCreator.Compression = lnCompress
.PDFCreator.PDFAMode = IIF(thisform.PDF_PdfA_kompatibel,1,0)
.PDFCreator.Security = lnSecurity
.PDFCreator.Protection = lnProtection
.PDFCreator.OwnerPW="test"
.PDFCreator.PDFFile = ALLTRIM(thisform.SaveTo_Fullpath)
.PDFCreator.BeginDoc
.PDFCreator.Print
.PDFCreator.EndDoc
ENDWITH
Alles anzeigen
VFP uses regular ANSI as Charset. Is it possible that OwnerPW is expected to be something different?
Any ideas anyone?
Thanks and best regards
Michael