Re: Industry Colleague is Looking for a Script
Re: Industry Colleague is Looking for a Script
- Subject: Re: Industry Colleague is Looking for a Script
- From: William Adams <email@hidden>
- Date: Wed, 16 Nov 2016 09:42:09 -0500
Pretty simple to do using Applescript and pdftk. There's been some discussion of it here in the past.
You'd want to incrementally split the file though, rather than do it by adding single pages due to PDF file structures (see the answer at
http://stackoverflow.com/questions/40598770/pdftk-output-same-size-as-input-regardless-of-catd-page-count/40610606 ) --- my suggestion would be to use something like a search/sort algorithm (break file into two halves, check size of first half, if too large, break first half into halves (quarters of the original file) and recheck first part --- once below size incrementally add half that number of pages from the remaining portion until size met, repeat until each section is built from the remaining pages
William
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden