Code Monkey home page Code Monkey logo

Comments (7)

jashkenas avatar jashkenas commented on June 21, 2024 2

Yep -- try qpdf --decrypt ... or use Preview to open it, and then to Print -> Save as PDF.

If you can't open it in Preview without the password, then it's truly locked down.

from docsplit.

palewire avatar palewire commented on June 21, 2024

Thanks. Would it be possible to bake this into docsplit? I feel more than obliged to contribute at this point.

from docsplit.

jashkenas avatar jashkenas commented on June 21, 2024

Hmm. Perhaps it would. We'd have to be able to detect the password protection ... but maybe a try/catch is good enough for getting that done. It would also be one more dependency, so making it optional would be ideal: if qpdf is installed, enable the feature, otherwise, no worries.

from docsplit.

palewire avatar palewire commented on June 21, 2024

My Ruby fu is weaker than a Drake rhyme, but would that be somewheres around here?

from docsplit.

jashkenas avatar jashkenas commented on June 21, 2024

Yep: https://github.com/documentcloud/docsplit/blob/master/lib/docsplit.rb#L104

But that doesn't tell you why it broke, so we don't just want to catch all exceptions ... only the ones where the PDF has an encryption problem.

from docsplit.

palewire avatar palewire commented on June 21, 2024

Okay. I have to grind some work stuff yet today, but I'll try to get back to this and stop being a total leech.

from docsplit.

palewire avatar palewire commented on June 21, 2024

Closing as stale.

from docsplit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.