Extract images from a pages document
I want to extract all of the images out of a large pages document. I found an article about it from 2006 ( see http://hints.macworld.com/article.php?story=20060324033125571 ) which states you can open the pages file as a package and extract the images. Right clicking shows no 'open package' item and using pkgutil --expand mydoc.pages .
errors with "Could not open package for expansion"
I'm guessing the pages file format is now somewhat different.
So how can I extract all of the images from my pages document in one go? (there are around 100 pictures, so too many to do by hand unless I absolutely have to)
Solution 1:
In later iWork edition Apple made changes to the formats so this is the cause that you can not follow the procedure described in the article that you are referring.
The best way to go around this annoyance would be:
- Open the pages document with your current pages (I assume is the latest Pages),
- Save us some other name but before you do it extend the save us menu using the up/down arrow where you are presented with more choices,
- Select the radio button "Save copy as:" and choose iWork'08 and then save it.
- Go find your new saved document and you are now presented with the "Show package content" additional menu item (on your right click).
- Extract the images (copy them somewhere else).
Solution 2:
The Fastest way to to do this is to change the file extension from name.pages to name.zip (actually manually click on the file name and change the extension to .zip)
Now just unzip your document and you will get a folder with all the images in it. Same works for ePubs.
Solution 3:
Open the Pages document using Pacifist. (Other archive utilities might work also, but Pacifist worked for me.)
I did this by right (CTL)-clicking on the Pages document icon, then choosing Open with… Pacifist from the contextual menu.
This will produce a window listing the contents of the Pages "package" file. Select the graphics files you need, and "Extract To…" a convenient location
I haven't explored it, but there might be a way to automate this procedure using AppleScript and/or Automator if its something you do often.