Programmatically change pdf properties


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.


if you are using the PDFCreator COM interface, here is a list of all available 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


Thank you for your help Robin!

Hi Robin,

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

Thank you.


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,


1 Like