Sunday, October 14, 2018

How to remove security for PDF text dumping on Linux systems. via /r/pdf


How to remove security for PDF text dumping on Linux systems.

Download xpdf-tools

Follow the CMake instructions (Tells you to make a ./build directory but does not tell you to move CMakeLists.txt. Just run the cmake command in the INSTALL file.)

Open up pdftotext.cc (Or pdf2png or pdf2html, whatever is your pleasure)

Now look for “Copying” in pdftotext.cc, you’ll probably only see it once. (Or whatever other you are using.)

Just delete the entire section of code there. It looks like this;

// check for copy permission if (!doc->okToCopy()) { error(errNotAllowed, -1, “Copying of text from this document is not allowed.”); exitCode = 3; goto err2; }

You have to do this with CentOS 6.8 installed if you want to use this executable on Hostmonster.



Submitted October 13, 2018 at 11:25PM by areyouafraidofthedor
via reddit https://www.reddit.com/r/pdf/comments/9o1953/how_to_remove_security_for_pdf_text_dumping_on/?utm_source=ifttt

from Medical Release Form https://medicalreleaseform.tumblr.com/post/179039523836
via Medical release form
from Tumblr https://jeemiahmelville.tumblr.com/post/179039631297

No comments:

Post a Comment