I've always used the command-line "pdfcrop" tool for this task (it's in TeXLive 
and MiKTeX).

"PDFCROP takes a PDF file as input, calculates the BoundingBox for each page by 
the help of ghostscript and generates a output PDF file with removed margins."

JDO
On Mar 17, 2024 at 11:21 PM -0700, list_email--- via Skim-app-users 
<[email protected]>, wrote:
> I am making PDF plots using Plotly which sometimes leaves more white space at 
> the margins than seems necessary, especially when considering cramming them 
> into a column in a paper. Skim does a nice job of cropping, but I’m wondering 
> if there is a way to do this programmatically, e.g,. from Python, Julia, or 
> Ada. I know that Skim is scriptable but I can’t find anything in Skim’s 
> Applescript dictionary about cropping.
>
> I know that if there is an Applescript for doing this on a specified file or 
> all the PDFs in a folder that I can issue the command from any of the other 
> mentioned languages. I would gladly consider a non-Skim way also but I need a 
> method that detects the white-space margins rather than having me manually 
> determine the coordinates of a crop box since they will be different for 
> different images.
>
> Jerry
>
>
>
> _______________________________________________
> Skim-app-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/skim-app-users
_______________________________________________
Skim-app-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-users

Reply via email to