ho-tex / pdfcrop

pdfcrop perl utility
LaTeX Project Public License v1.3c
25 stars 6 forks source link

run pdfcrop.exe in TexnicCenter via write18 (also auto-pst-pdf) #13

Open juk80 opened 2 years ago

juk80 commented 2 years ago

Hi everybody, I have been encountering issues with auto-pst-pdf and noticed that pdfcrop fails. I posted a minimal example with pdfcrop.exe in TexnicCenter via write18 here: https://latex.org/forum/viewtopic.php?f=31&t=34946 My workaround was to call pdfcrop.exe using "start pdfcrop ..." within write18. The issue seems to be that pdfcrop needs the console output from gs and without "start" a console is missing. Maybe this can be dealt with within the pdfcrop.pl script - and hopefully auto-pst-pdf will also work again. Kind regards, Jens

u-fischer commented 2 years ago

No problem here on a current miktex:

runsystem(pdfcrop.exe --verbose "fig_appMinkowskiBasis3d")...executed.

pdfTeX warning: pdflatex.exe (file ./fig_appMinkowskiBasis3d.pdf): PDF inclusio
n: found PDF version <1.7>, but at most version <1.5> allowed
<fig_appMinkowskiBasis3d.pdf, id=1, page=1, 233.87375pt x 121.45375pt>
File: fig_appMinkowskiBasis3d.pdf Graphic file (type pdf)
<use fig_appMinkowskiBasis3d.pdf, page 1>
Package pdftex.def Info: fig_appMinkowskiBasis3d.pdf , page1 used on input line
 106.
(pdftex.def)             Requested size: 155.24895pt x 80.62671pt.

pdfTeX warning: pdflatex.exe (file ./fig_appMinkowskiBasis3d-crop.pdf): PDF inc
lusion: found PDF version <1.7>, but at most version <1.5> allowed
<fig_appMinkowskiBasis3d-crop.pdf, id=2, page=1, 184.69pt x 121.45375pt>
File: fig_appMinkowskiBasis3d-crop.pdf Graphic file (type pdf)
<use fig_appMinkowskiBasis3d-crop.pdf, page 1>

Perhaps some security setting in your windows stops the execution of the script.