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

Poppler pdftotext problem #243

Open
bruno299792 opened this issue Aug 29, 2024 · 1 comment
Open

Poppler pdftotext problem #243

bruno299792 opened this issue Aug 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@bruno299792
Copy link

Hi,

need your help

i know rga use poppler's pdftotext to read pdf, but the whole poppler is too large, and rga only use small part of it
is there any possible to install pdftotext only, or can I use xpdfreader's pdftotext binary instead?

@bruno299792 bruno299792 added the bug Something isn't working label Aug 29, 2024
@lafrenierejm
Copy link
Contributor

lafrenierejm commented Sep 19, 2024

is there any possible to install pdftotext only

I haven't personally verified this, but since pdftotext has its own entry in poppler's CMake file I suspect you could build and use just that one utility.

That said, poppler and poppler-utils are often available as two separate packages with pdftotext included in the latter. If that is the case for your OS, you should be able to get away with only installing the -utils package and not the full poppler package.

can I use xpdfreader's pdftotext binary instead?

You should be able to, as long as the CLI of xpdfreader's pdftotext binary is compatible with the one offered by poppler. ripgrep-all just looks for the first entry in your PATH named "poppler"; if xpdfreader's pdftotext is found before poppler's (or if you don't have the binary from poppler on your PATH at all) then rga will use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants