Philip Herlihy
2024-08-04 22:00:24 UTC
I'm looking for a utility to select the smaller of two versions of a PDF
document.
I'm helping a friend compress PDFs of music scores to load onto a tablet to
play from. We've found that Corel's PDF Fusion can batch process compression,
usually taking about 40% off the file size. But some files come out bigger,
occasionally much bigger! We'd like to use the original if it's smaller than
the processed version.
I'd thought Robocopy could likely to this - but it can't. (It will set a min
or max file size to be copied/moved/merged. I've looked at Xcopy, and I can't
think of a command-line (or other) utility that will do this. CoPilot will
write you a PowerShell script to do it, but not (still) having learned
PowerShell I'd be wary of trusting a generated script.
Can anyone think of a utility that will do this? I'd get PDF Fusion to dump
processed files in a separate folder, then we'd want to compare sizes with the
folder with the originals - unless there's a better way?
document.
I'm helping a friend compress PDFs of music scores to load onto a tablet to
play from. We've found that Corel's PDF Fusion can batch process compression,
usually taking about 40% off the file size. But some files come out bigger,
occasionally much bigger! We'd like to use the original if it's smaller than
the processed version.
I'd thought Robocopy could likely to this - but it can't. (It will set a min
or max file size to be copied/moved/merged. I've looked at Xcopy, and I can't
think of a command-line (or other) utility that will do this. CoPilot will
write you a PowerShell script to do it, but not (still) having learned
PowerShell I'd be wary of trusting a generated script.
Can anyone think of a utility that will do this? I'd get PDF Fusion to dump
processed files in a separate folder, then we'd want to compare sizes with the
folder with the originals - unless there's a better way?
--
Phil, London
Phil, London