phiresky / ripgrep-all

rga: ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz, etc.
Other
7.98k stars 172 forks source link

Can't find `rga-preproc` under GitBash (Windows) #147

Closed kpym closed 8 months ago

kpym commented 1 year ago

rga works ok under PowerShell and WSL (Ubuntu under Windows), but when I run rga from GiBash it fails by saying preprocessor command failed: '"C:\\MyPrograms\\bin\\rga-preproc" "file.pdf" followed by

adapter: poppler
pdftotext version 4.00
Copyright 1996-2017 Glyph & Cog, LLC
Usage: pdftotext [options] <PDF-file> [<text-file>]
  -f <int>             : first page to convert
  -l <int>             : last page to convert
  -layout              : maintain original physical layout
  -simple              : simple one-column page layout
  -table               : similar to -layout, but optimized for tables
  -lineprinter         : use strict fixed-pitch/height layout
  -raw                 : keep strings in content stream order
  -fixed <number>      : assume fixed-pitch (or tabular) text
  -linespacing <number>: fixed line spacing for LinePrinter mode
  -clip                : separate clipped text
  -nodiag              : discard diagonal text
  -enc <string>        : output text encoding name
  -eol <string>        : output end-of-line convention (unix, dos, or mac)
  -nopgbrk             : don't insert page breaks between pages
  -bom                 : insert a Unicode BOM at the start of the text file
  -opw <string>        : owner password (for encrypted files)
  -upw <string>        : user password (for encrypted files)
  -q                   : don't print any messages or errors
  -cfg <string>        : configuration file to use in place of .xpdfrc
  -v                   : print copyright and version info
  -h                   : print usage information
  -help                : print usage information
  --help               : print usage information
  -?                   : print usage information
Error: The pipe has been ended. (os error 109)
phiresky commented 8 months ago

Your pdftotext version is extremely old

kpym commented 8 months ago

Your pdftotext version is extremely old

If the reason is the version of pdftotext, why does it work with PowerShell and wsl? This should be independent of the shell if that is the real reason.