My experience is pdfcrop old.pdf new.pdf
should write an automatically cropped version of old.pdf into new.pdf. JDO On Apr 12, 2024 at 9:28 PM -0700, list_email--- via Skim-app-users <[email protected]>, wrote: > Thanks, JDO. I had looked at pdfcrop earlier so I gave it another look now. I > can’t find an option that automatically removes white space margins. I can > give _negative margins_ to get the job done but I have to find these by > manual iteration for each image. Workable but a nuisance. > > Jerry > > > On Mar 18, 2024, at 6:45 AM, John Owens <[email protected]> wrote: > > > > 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
_______________________________________________ Skim-app-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/skim-app-users
