Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Splitting not really covered by any hint.' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Splitting not really covered by any hint.
Authored by: ppp on Sep 08, '03 12:01:43PM

I hate to object, but I'm still looking for an automated way to split PDF files. None of the hints mentioned seem to address this. The CombinePDFs program allows you to save individual pages, but only after manually selecting them. I can do this with Acrobat as well. If anyone knows of an automated way to make this happen, I'd love to hear about it.

The specific situation is that I am regulary printing 40+ pages from Filemaker that need to each be a separate page. Currently I use a utility in Virtual PC that can split them. This takes a long time, but not as long as printing 40 times, or manually saving separate pages from Acrobat.



[ Reply to This | # ]
Splitting not really covered by any hint.
Authored by: bfr00 on Sep 09, '03 01:39:29AM

If you're using FileMaker, you don't have to do any splitting. You can script the whole process of printing a single page and giving it a name based on a field value. This has been available with 10.2.6 and is covered at Apple's applescript web site.



[ Reply to This | # ]
Splitting not really covered by any hint.
Authored by: ppp on Sep 09, '03 02:29:33PM

Thanks for the URL referenced above. (sent off this forum http://www.apple.com/applescript/print/)

Unfortunately, the print dialog is not scriptable. You can process the output of the print dialog using an AppleScript, as described in the URL you sent. There is not currently control over the dialog itself.

This capability is slated for Panther (10.3), but currently there isn't any way to do this. In my situation, there are also FileMaker issues that prevent me from printing individual records, as some total fields do not calculate properly. I still need a solution that will split PDFs.



[ Reply to This | # ]
Splitting not really covered by any hint.
Authored by: cck on Sep 09, '03 03:30:18AM

You can split PDFs in Acrobat with a batch sequence. I found this javascript code in the javascript documentation for Acrobat 5. As you can see this one saves the pages on my desktop. Piece of cake! ;-)

/* Extract Pages to Folder */
// regular expression acquire the base name of file
var re = /.*\/|\.pdf$/ig;
// filename is the base name of the file Acrobat is working on
var filename = this.path.replace(re,"");
try {
for (var i = 0; i < this.numPages; i++)
this.extractPages(
{
nStart: i,
cPath: "/Users/ole/Desktop/"+filename+"_" + i +".pdf"
});
} catch (e) {
console.println("Aborted: "+e)
}



[ Reply to This | # ]