Welcome Guest Search | Active Topics | Sign In | Register

EO.PDF Allow High Resolution Options
Paul F
Posted: Wednesday, September 3, 2014 3:50:36 PM
Rank: Newbie
Groups: Member

Joined: 10/6/2012
Posts: 1
When I set document security with EO.PDF to disallow modifying contents eg:
doc.Security.Disallow(PdfDocumentPermissions.ModifyingContents);

the resulting PDF is also set to only allow Low Resolution printing.

Is there a way to set permissions to not allow content modification but to also allow High Resolution printing using EO.PDF? BTW, there is an issue with current versions of Google Chrome that prevent it from printing any PDFs that do not allow High Resolution printing. For an example see https://code.google.com/p/chromium/issues/detail?id=410440

Thank you.
eo_support
Posted: Wednesday, September 3, 2014 5:44:57 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

This is a bug on our end and is unrelated to the Chrome bug. The root of the problem is the default permission set didn't include high quality printing. You can use the following code to work around the bug:

Code: C#
//Set the permission to include high quality printing
doc.Security.Permissions = PdfDocumentPermissions.All | PdfDocumentPermissions.HighQualityPrinting;

//Then disallow modifying content
doc.Security.Disallow(PdfDocumentPermissions.ModifyingContents);


We will change our code so that the first line will no longer be necessary in our next build.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.