PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Jul 05, 2024 7:44 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sun Jan 23, 2011 2:57 pm 
Offline

Joined: Sun Jan 23, 2011 2:49 pm
Posts: 2
Hi there.

I've been trying to take existing PDF files and set the permissions on them to disallow printing, copying etc.
The only way i've been able to get the library to save those permissions to the PDF is if i set the OwnerPassword and Encryption parameters of SecuritySettings.

Is there a way to save those permissions without a password? The protected documents are public and are going to be wide spread across users, So i wouldn't want some arbitrary password embedded in the file, if possible.

Perhaps this is even a PDF specification requirement im not aware of, but it would be nice to understand this issue.

Thanks.


Top
 Profile  
Reply with quote  
PostPosted: Mon Jan 24, 2011 9:24 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
ransagy wrote:
So i wouldn't want some arbitrary password embedded in the file, if possible.

AFAIK you can't do it without password.

Create a new GUID as a password, save the file, forget the password - that's all.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Mon Jan 24, 2011 3:44 pm 
Offline

Joined: Sun Jan 23, 2011 2:49 pm
Posts: 2
Thought so. Thanks for the help, Thomas.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 55 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group