• 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
Modify python script, or best way to extract PDF pages?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Modify python script, or best way to extract PDF pages?


  • Subject: Modify python script, or best way to extract PDF pages?
  • From: Richard Rönnbäck <email@hidden>
  • Date: Fri, 20 Jan 2006 08:54:52 +0100
  • Thread-topic: Modify python script, or best way to extract PDF pages?

Title: Modify python script, or best way to extract PDF pages?
I need a way to extract all pages so separate files from multi page-PDF files.

While I could script Acrobat to do it, I rather have a faceless process, as it is meant to run on a server with hot folders. Nor have I been able to use Automator and it's module for extracting pages, as it produces really whacky file names and I need full control over the output file names.

I do however notice that Automator uses a python script to do it's job, so I guess it would be possible to modify it. The script is located in "Macintosh HD:System:Library:Automator:Extract Odd & Even Pages.action:Contents:Resources:extract.py"

ideally I would want something that I can call from the shell with parameters such as input file and output folder. File names should be "original file name_page number.pdf " The problem is that I know nothing about python and while it seems to be a very interesting language the task of modifying it is way more than I can manage.

Can someone with python knowledge help me?

Or, if someone has an alternative to the above approach?



rgds
 
Richard Rönnbäck
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Modify python script, or best way to extract PDF pages?
      • From: Emmanuel <email@hidden>
References: 
 >Re: Counting Messages in "Inbox" (From: Jim Mitchell <email@hidden>)

  • Prev by Date: Re: Counting Messages in "Inbox"
  • Next by Date: Re: Modify python script, or best way to extract PDF pages?
  • Previous by thread: Re: Counting Messages in "Inbox"
  • Next by thread: Re: Modify python script, or best way to extract PDF pages?
  • Index(es):
    • Date
    • Thread