Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: pdf_deflate() #127

Open
turpinandrew opened this issue Aug 9, 2023 · 0 comments
Open

feature request: pdf_deflate() #127

turpinandrew opened this issue Aug 9, 2023 · 0 comments

Comments

@turpinandrew
Copy link

turpinandrew commented Aug 9, 2023

Would it be easy to expose the poppler::deflate(...) functionality (I am assuming it has to exist in there somewhere) inside this pdftools package?

  eg pdftools::pdf_deflate(pdf, outfilename)

While pdf_data() and pdf_text() have been very useful for 50% of the pdf data extraction work I am doing, some of the work requires processing the raw pdf itself (hunting for images, etc). Currently I am using

 system(sprintf("qpdf --qdf --replace-input --object-streams=disable %s", pdf))  # macos 

If I could avoid a 'system' call that relies on an OS specific tool, that would be fantastic and more portable than my current solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant