PDFEncryptFlags example for Visual Basic
Dim RasterIO As New LEADRasterIO
RasterIO.PDFUserPassword = "UserPassword"
RasterIO.PDFOwnerPassword = "OwnerPassword"
RasterIO.EnablePDF128bit = True
RasterIO.PDFEncryptFlags = PDF_SECURITY_REV2_PRINTDOCUMENT
RasterIO.Save LEADRasterView1.Raster, "c:\Test.pdf", FILE_RAS_PDF, 24, _
QFACTOR_LEAD_0, SAVE_OVERWRITE