ho-tex / pdfcrop

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

Prevent url's from being stripped #1

Open cjroebuck opened 4 years ago

cjroebuck commented 4 years ago

Hi and thanks for an amazing script. I cropped a few pdf's with this but all url's from the document are being stripped out. Is there a way to prevent this from happening?

Thanks

u-fischer commented 4 years ago

pdfcrop does basically something like \includegraphics[trim = ...., clip]{file}.
This removes annotations. Theoretically it is possible to first extract the annotations and then to reinsert them (see e.g. the pax package). Theoretically it should be also possible to change only the mediabox of the source pdf, but one would need an suitable tool for it. Both options would need a more or less substantial rewriting of the script.

davidcarlisle commented 1 year ago

@u-fischer close this as not planned for this tool?