Hi,
I'm currently evaluating RTF2PDF to see if it fits my company needs.
I seem to be having a bit of a problem encrypting a pdf. Here's the code:
Code
wPDF.RTF2PDF rtf2pdf = new wPDF.RTF2PDF();rtf2pdf.LoadRTF(filepath + ".rtf");rtf2pdf.FileName = filepath + ".pdf";rtf2pdf.PDFSecurity = wPDF.ePDFSecurity.High128bit;rtf2pdf.PDFEncryption = wPDF.ePDFEncryption.EcryptionEnabled & wPDF.ePDFEncryption.EnablePrinting;rtf2pdf.OwnerPassword = "123456789";rtf2pdf.Export();
This produces an unencrypted "allow all actions" pdf.
I can generate an encrypted pdf (but unprintable) if i use:
And finally, I get an unprotected document if I use:
How should I go about producing an encrypted "only allow printing" pdf?
Thanks
Frederico