Programmatically change pdf properties


#1

Hi,

I am trying to programmatically assign the security settings on newly generated PDF document.
So far I have managed to work with the following properties:

  1. PDFUseSecurity
  2. PDFLowEncryption
  3. PDFOwnerPass
  4. PDFOwnerPasswordString
  5. PDFUserPass
  6. PDFUserPasswordString
  7. PDFDisallowCopy

But still struggling to find a property to disable the modification of the document, something that would resemble PDFDisallowModifyDocument and/or PDFDisallowComments.

Any idea?

Thank you so much in advance for your help.


#2

Hi,

if you are using the PDFCreator COM interface, here is a list of all available settings: http://docs.pdfforge.org/pdfcreator/3.0/en/pdfcreator/com-interface/reference/settings/
There is no setting to disable modification all together, I guess you will need to set
PdfSettings.Security.AllowToxxx to false for all required restrictions.

Best regards

Robin


#3

Thank you for your help Robin!


#4

Hi Robin,

Do you know if COM interface is supported in the 0.9.8 version of PDFCreator?

Thank you.


#5

Hi,

I am not sure but if it is, it is completely different from what there is now, since the entire application+ COM interface where re-written after PDFCreator 1.7.3.

Best regards,

Robin