Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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)

share|improve this question
    
Definitely AppleScript is the way to go here. I don't have Pages so can't tell you how, hence not adding an answer –  Stu Wilson Jan 20 '12 at 16:31

4 Answers 4

up vote 8 down vote accepted

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).
share|improve this answer
    
Thanks, just what I needed. –  zio Jan 20 '12 at 18:12
    
I prefer this method to the procedure I outline unless one already has Pacifist installed in which case my trick let's you skip the trip to Pages and the extra file. –  jaberg Mar 8 '12 at 15:39

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.

share|improve this answer

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.

share|improve this answer
    
Unfortunately, this doesn’t seem to work with the most recent version of the Pages file format. –  Paul D. Waite Mar 8 '12 at 11:21
    
This technique is specifically aimed at the newer pages format which is essentially an archive file format. As of 15 seconds ago this technique worked perfectly with a new document created using Pages '09 version 4.1(923). Can you point me to a newer version of Pages so I can test it? –  jaberg Mar 8 '12 at 15:11
    
Huh, that’s odd — maybe there’s something weird with the file I’ve got. I’ll check with my friend to see what version he’s using, and see if I can get another couple of test files. –  Paul D. Waite Mar 8 '12 at 15:20
    
Happy to test here using non-sensitive files. You can generally ping me from the chat room. –  jaberg Mar 8 '12 at 15:28
    
That’s grand, cheers, I’ll let you know once I’ve checked with my friend. He did send me the file as an e-mail attachment, so maybe it got a bit borked in transit — I don’t have Pages here, so I can’t currently check if Pages opens it. I’ll investigate and follow up. –  Paul D. Waite Mar 8 '12 at 16:31

FYI - If using the newest-as-of-2014 Pages application (citing version 5.5.1 here), you cannot access the package contents via the finder, and you can only export to Pages '09.

However, if you go to File -> Advanced -> Change File Type and select "Package" versus "Single File," you'll be able to open the file's contents in the finder and be good to go. (This saved me being able to do something constructive with my wife's birthday card.)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.