ho-tex / pdfcrop

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

files aren't cropped after upgrade to version 1.40 #5

Open TeXtnik opened 3 years ago

TeXtnik commented 3 years ago

I have used pdfcrop for files generated with the command sequence latex, dvips and ps2pdf with TL20 (last upgrade around September). I had no problem to crop pdfs (see attached escporf_beforeupgrade-crop.pdf). Recently, I updated TL20 (which brings the new latex2e kernel and the pdfcrop 1.40 version). After this upgrade the newly generated pdfs can't be cropped: see example of the generated file escporf_afterupgrade.pdf and the cropped escporf_afterupgrade-crop.pdf.

escporf_beforeupgrade-crop.pdf escporf_afterupgrade-crop.pdf escporf_afterupgrade.pdf

TeXtnik commented 3 years ago

Ghostscript 9.52 (2020-03-19) in Ubuntu 20.10.

u-fischer commented 3 years ago

Can you provide the original latex file used to create the uncropped pdf?

TeXtnik commented 3 years ago

I reinstalled TL20 from dvd and it is working. Here I added the file before croping. escporf_beforeupgrade.pdf

TeXtnik commented 3 years ago

The files used old macros and packages to draw the figure. I am using Minion Math font, so it should be commented to run if the font is not installed.

escporf_.zip

The command to create the file are: latex escporf_standalone.tex ; \ dvips -h tex.pro -h xcolor.pro -h spot_color.pro escporf_standalone.dvi ps2pdf $(PS2PDF_OPT) escporf_standalone.ps ; \ pdfcrop escporf_standalone.pdf escporf_standalone-crop.pdf ; \

u-fischer commented 3 years ago

Sorry but is it now working or not? And if it is not working, could you please provide an example that doesn't require local fonts, local environment variables and local pro files?

TeXtnik commented 3 years ago

It is working with the TL20 from the dvd; without any updates. It is not working with and updated version. I will work to reduce the files. tex.pro and xcolor.pro are from the distribution. spot_color.pro is generated in the .tex file.

TeXtnik commented 3 years ago

I am having a hard time to debug the problem. I copied the files outside the directory I am working on, and I have a different behaviour. It is driving me crazy :-) I will need some time. I can't find meaningful differences in the log files generated by latex. Is there any easy way to have log files from dvips and ps2pdf?

u-fischer commented 3 years ago

Add this at the begin of the tex, this should then give uncompressed pdf. Upload then the working/non-working pdf and I will take a look. Upload also both ps-files.

\RequirePackage{l3pdf}
\ExplSyntaxOn
\pdf_uncompress:
\ExplSyntaxOff