How to build qpdf on Windows?

后端 未结 3 1833
一向
一向 2021-02-04 08:49

When running the checks for my R-package (via devtools::check()) I face the warning \'\'qpdf\' is needed for checks on size reduction of PDFs. I found

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-04 09:29

    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" 
    

提交回复
热议问题