PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
How to make a PdfDocument readonly? https://forum.pdfsharp.net/viewtopic.php?f=2&t=4628 |
Page 1 of 1 |
Author: | matt_pdf [ Mon Jul 22, 2024 9:03 pm ] |
Post subject: | How to make a PdfDocument readonly? |
Hi there, Currently the PDFs that I create are able to be edited which I want to avoid happening. I was wondering if there was a way to make a PDF that is generated by PDFSharp readonly? I can see that there is a "IsReadOnly" property on a PdfDocument but I can't find any property to set it as readonly. Thanks for any help |
Author: | TH-Soft [ Tue Jul 23, 2024 5:35 am ] |
Post subject: | Re: How to make a PdfDocument readonly? |
Hi! Set "EffectiveSecurityHandler.Permissions" of your document. And don't forget to set an Owner password. |
Author: | matt_pdf [ Wed Jul 24, 2024 2:19 am ] |
Post subject: | Re: How to make a PdfDocument readonly? |
Thanks! That worked a treat |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |