• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Applescript to burst multi-page PDFs into a series of single pages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Applescript to burst multi-page PDFs into a series of single pages


  • Subject: RE: Applescript to burst multi-page PDFs into a series of single pages
  • From: "Wadson, David" <email@hidden>
  • Date: Fri, 31 Jan 2003 13:12:03 -0500

While you can't extract a page using AppleScript, you can mimick the
capability using the insert pages command. I have a script at
members.shaw.ca/mactech that does such a thing.

Basically, create blank PDF or use an existing PDF file as a "template" for
the individual pages. Open up the "blank" PDF and insert the single page
from the multi-page source PDF. Your "blank" PDF now has two pages in it -
delete the original page and you are left with the one you want. Save that
PDF with the filename you want (i.e. filename_##.pdf). Repeat the process
for every page in your original document.

The script I have will prompt you for the file you want to split, and a
folder to save the files. The raw coding for a blank PDF is included in the
script. It uses Finder read/write routines to create a PDF file to insert
the individual pages into.
> ----------
> From: Simon Topliss
> Sent: Friday, January 31, 2003 11:58 AM
> To: Applescript Mailing List
> Subject: Re: Applescript to burst multi-page PDFs into a series of
> single pages
>
> Hi Steve,
>
> You can split the multi-page PDF into separate EPS files using 'Save As'
> and
> selecting 'Encapsulated PostScript'. Make sure you set the 'Page Range' to
> 'All' in the 'Settings'.
>
> If you create all the EPS files into a folder, it would be fairly simple
> to
> write a script to rename them as you wish (by default they're named
> 'filename_1.eps', etc).
>
> You can use Distiller (or whatever you use) to turn the EPS's to PDF's.
>
> HTH,
>
> Simon
>
> On 30/1/03 10:40 pm, "Steve Hussey" <email@hidden> wrote:
>
> > I'm new to AppleScript, so please be gentle with me ;-)
> >
> > My problem is:
> >
> > I have a number of PDFs which have multiple pages (many thousands). I
> want
> > to be able to write a script that will split each PDF into 1000s of
> > individual PDF files, where each PDF file is one unique page of the
> > original, in the order that they were in the original file.
> >
> > If the original document was named 'FooBar.PDF' each PDF would be named
> > FooBar0001.PDF, FooBar00002.PDF etc.
> >
> > Acrobat has an Extract Page command but this does not appear in its
> > AppleScript Dictionary. Any suggestions? Any canned solutions out there
> > (commercial or shareware)?
> >
> > Regards
> >
> > Steve Hussey
> > Editor & Publisher, Dimensions Journal
> _______________________________________________
> applescript-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/applescript-users
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Applescript to burst multi-page PDFs into a series of single pages
  • Next by Date: Doing a Save as in Quark
  • Previous by thread: RE: Applescript to burst multi-page PDFs into a series of single pages
  • Next by thread: Re: HELP-> desktop area, positioning
  • Index(es):
    • Date
    • Thread