Export to GitHub

sumatrapdf - issue #2003

printing fails (denied) due to PDF "Denied Permissions"


Posted on Aug 3, 2012 by Happy Elephant

SumatraPDF is honoring document permissions.

SumatraPDF should NOT honor document permissions!

The document persmissions on a particular file I have (when I click on File -> Properties) say "Denied Permissions: printing document, copying text".

IN COMPARISON: The Evince PDF reader for Windows, does not honor document permissions, and allows me to COPY text and to PRINT this document!!

SumatraPDF should allow me to do the same things that Evince allows me to do!

Honouring RESTRICTIVE permissions is insulting to the user!

If you really want this feature (of insulting the user), then either provide a preference/settings options to enable/disable this "feature" or alternatively provide TWO different versions of the software to download (so, for example, companies that want restrictive software, can install only the restrictive software).

Until this mis-feature is fixed, SumatraPDF is removed off my list of software, and I have gone back to Evince PDF reader.

SumatraPDF was good, because it was so fast. But I cannot accept the limitations nor being treated like an idiot!

Comment #1

Posted on Aug 3, 2012 by Massive Lion

Not honoring permissions is insulting to the author, so we won't do it.

Comment #2

Posted on Sep 10, 2012 by Massive Horse

Please include an option to disable this. Read if you don't understand why this is necessary: http://www.defectivebydesign.org/what_is_drm https://en.wikipedia.org/wiki/Digital_rights_management#Opposition_to_DRM

Comment #3

Posted on Sep 10, 2012 by Massive Lion

I don't like DRM any more than you do so I'm in no need to "understand" anything. At the same time I decide what Sumatra does and I decided that it will honor PDF creator's wishes. That's something you need to understand.

Comment #4

Posted on Sep 13, 2012 by Massive Horse

Comment deleted

Comment #5

Posted on Nov 2, 2012 by Massive Horse

It's pretty bizarre to claim "I don't like DRM" while writing DRM into one's software.

For others affected by this anti-feature, it's relatively easy to disable: Just search the source code for IsCopyingTextAllowed() and IsPrintingAllowed() and replace them with "true" in a few places. (I found 6 that needed disabling, and a few others that didn't because they're just used for displaying the file's properties.)

I've got a non-DRM version now and I can copy and paste measurements from mistakenly-protected datasheets, while still taking advantage of SumatraPDF's other great features. :) It may be possible for this fix to be included in one of the 64-bit forks in the future, too.

Comment #6

Posted on Nov 6, 2012 by Happy Elephant

How does one view the source code for a pdf? I tried opening the file in word and the text editor, in neither did I find "IsCopyingTextAllowed()"

Thanks.

Comment #7

Posted on Nov 6, 2012 by Massive Horse

I mean the source code for the software, sorry. https://code.google.com/p/sumatrapdf/source/search?q=IsCopyingTextAllowed&origq=IsCopyingTextAllowed&btnG=Search+Trunk

Comment #8

Posted on Jan 28, 2014 by Happy Elephant

Thank you omegat for the pointers to IsCopyingTextAllowed() and IsPrintingAllowed().

I suggest, to whoever might like to maintain the patch to make these changes, to change the body of those two methods only, to each return true, if that is part of the source code - if those two methods are part of a library, then only that library needs the patch.

This way, instead of editing potentially many sites in the source code, you edit (patch) only the two method bodies - single site in the code. Much easier to maintain long term, obviously.

Comment #9

Posted on Jan 28, 2014 by Massive Horse

Those functions are used in other places, too, though, so no, that's a bad idea. You want to correctly report whether they are protected or not in the information dialog, for instance.

Thankfully, there's actually now a compile-time flag that can disable the protection (https://github.com/kjk/sumatrapdf/commit/b7ec85165f4783d613a8c517c566062af67d8d38), but unthankfully, the developers refuse to enable it for the public.

So the developers also find the copy and print protection annoying, and they'll disable it for their own convenience, but refuse to acknowledge that users suffer from the same annoyance and have the same right to ignore the DRM flags.

Comment #10

Posted on May 9, 2014 by Swift Lion

Comment deleted

Comment #11

Posted on May 9, 2014 by Swift Lion

Comment deleted

Comment #12

Posted on May 9, 2014 by Massive Horse

Comment deleted

Status: WontFix

Labels:
Type-Defect Priority-Medium