Qpdf.Exe for Compactpdf

qpdf.exe for compactPDF?

I would try

Sys.which(Sys.getenv("R_QPDF", "qpdf"))
Sys.getenv("PATH")

to establish that R is really not finding the qpdf executable, and see where it is looking. You probably shouldn't need to rebuild everything, just figure out why R is not finding the qpdf executable ... does running qpdf from a terminal window work ... ? How are you starting R, and did it have a chance to get the new PATH definition (i.e. do you need to open a new terminal window, or ?? reboot ??)

The incantation above was extracted from tools::compactPDF, from the default value of the qpdf argument, on a Linux machine. You should check for yourself, in case (e.g.) the Windows version is looking for qpdf.exe rather than qpdf ...

How to build qpdf on Windows?

You basically do not need to build the file on windows. Please follow three steps below:

  1. Download qpdf for windows from https://sourceforge.net/projects/qpdf/?source=typ_redirect
  2. Extract files in a temp folder
  3. Copy the contents of the bin folder to %SystemRoot%\System32

job done!

Sys.which(Sys.getenv("R_QPDF", "qpdf"))
qpdf
"C:\\WINDOWS\\SYSTEM32\\qpdf.exe"


Related Topics



Leave a reply



Submit