PDFsharp & MigraDoc Foundation http://forum.pdfsharp.de/ |
|
Migradoc security settings http://forum.pdfsharp.de/viewtopic.php?f=2&t=1582 |
Page 1 of 1 |
Author: | Athol [ Tue Mar 15, 2011 1:51 pm ] |
Post subject: | Migradoc security settings |
Is there an easy way to set the security properties of a MigraDoc document. Currently I am creating a pdf by only using the MigraDoc library. How would I change the 'PdfSecuritySettings' (for example, PermitModifyDocument, etc.) of the document? Many thanks |
Author: | Thomas Hoevel [ Wed Mar 16, 2011 8:11 am ] |
Post subject: | Re: Migradoc security settings |
Do it as shown in this PDFsharp sample: http://www.pdfsharp.net/wiki/ProtectDoc ... ample.ashx |
Author: | Athol [ Fri Mar 18, 2011 7:18 pm ] |
Post subject: | Re: Migradoc security settings |
Many thanks for the reply. I had seen that example but I am using MigraDoc and not PDFsharp with a slight twist. The problem is that I'm serving the MigraDoc generated file in a stream to a browser so I need to be able to adjust the document properties in memory without loading it from a file using the PDFsharp library. I hope that explains it well enough. |
Author: | Athol [ Sun Mar 20, 2011 9:43 am ] |
Post subject: | Re: Migradoc security settings |
Solved. I'm now rendering a Migradoc document to a PDFsharp surface (instead of directly to a stream) and then applying security settings, etc. before saving to a stream. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |