Bruce,
I define a local variable lcl:password (string(100)). Enter !lcl:password on the Report to PDF extension template. And then assign lcl:password = 'blabla123' on embed point as follow:
lcl:password = 'blabla123' !assign password here for testing the embed point
SELF.SetFileName(loc:PDFName)
SELF.SetDocumentInfo('CW Report','PDFCPCS','Rpt_DailySummary','Rpt_DailySummary','','')
SELF.SetPagesAsParentBookmark(False)
SELF.CompressText = True
SELF.CompressImages = True
SELF.SetEncryption(lcl:password,PDFAccess:Print+PDFAccess:Copy+PDFAccess:ModifyContent+PDFAccess:ModifyAnnotations)
However, this works.
SELF.SetEncryption('blabla123',PDFAccess:Print+PDFAccess:Copy+PDFAccess:ModifyContent+PDFAccess:ModifyAnnotations)
I'm using c8.9304 NTalk 6.40
Thanks - Sukhendu