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

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


  • Subject: Re: Modify python script, or best way to extract PDF pages?
  • From: John Cochrane <email@hidden>
  • Date: Fri, 20 Jan 2006 22:47:47 +1100


On 20/01/2006, at 10:15 PM, has wrote:

You can invoke that script from the shell if you prefer. e.g.:

python extract.py --input='/Users/foo/TEST.pdf' --output='/Users/foo/TEST 1.pdf' --slice='[0]'

will output the first page of the pdf to file 'TEST 1.pdf'. It wouldn't be much effort to hack up a version that outputs the whole lot in a single operation if you needed it; let me know.

That's fantastic.
I have installed and used pdftk for splitting pdf files into individual pages but would prefer to have a native way of doing it.
I'd be interested in knowing the python command for splitting a pdf document into its individual pages.
Is there any python way for joining pages and discovering the number of pages as well?


John Cochrane

_______________________________________________
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


References: 
 >Re: Modify python script, or best way to extract PDF pages? (From: has <email@hidden>)

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