Scripts Index
Related Topics
Popular Trends
Trending Topics
Python File Management  

Counting pages of PDF documents on Mac OS X

download download home home   report broken
important script information
company name:
code.activestate.com
license: Free
minimum requirements: Python
functional limitations:
Counting pages of PDF documents on Mac OS X description


Given that PDF is a "native" data format on Mac OS X, it is very easy to get access to some properties of such documents. One is the number of pages. Using Python the necessary code to do this is only about four lines, plus some import and command-line plumbing, etc.This is proand-line shortest possible code for programmatically counting pages of PDF files on the Mac OS X platform. Apart from that, this is also a nice demo for using PyObjC which gives you the power of reusing all of the Foundation and AppKit classes from Python.



Relates:
Tool - Pages - Pdf - Pdf Pages - Pages Counter - Pdf Tool
Similar scripts
Convert PDF to TIFF (Popularity: ) : This script is a very short code snippet illustrating how to convert individual pages of PDF documents to TIFF files, one TIFF file per page. It works only on Mac OS X with PyObjC installed.As a recipe the code is ...
Count PDF pages (Popularity: ) : Count PDF pages script is a simple way to count the pages of a PDF the pure Python way.
Iterate over .MP4 atoms (Popularity: ) : This script yields the atoms contained in an MP4 file. Mostly is used for extracting the tags contained in it (artist, title etc) using a convenience class (M4ATags). This script could be implemented as an generator.
Counting pages of PDF documents on Mac O (Popularity: ) : Given that PDF is a "native" data format on Mac OS X, it is very easy to get access to some properties of such documents. One is the number of pages. Using Python the necessary code to do this is ...
Disk (Popularity: ) : This script provides a simple simulation of secondary memory and is primarily designed to provide a driver interface to a virtual hard drive. The interface is simple and allows the simulation of IO errors. Also provided are methods that allow ...
Cross Platform Excel Parsing With Xlrd (Popularity: ) : This script easily extract data from microsoft excel files using this wrapper class for xlrd. The class allows you to create a generator which returns excel data one row at a time as either a list or dictionary. This script ...
A Singleton log file creator (Popularity: ) : This class is a basic Singleton log file creator. It allows separate classes/modules to log their activities to the same file (even the same line if they want to).This is a quite basic log file creator, intended to assist in ...
Backup your files (Popularity: ) : Backup your files script makes backup versions for your files.It can be used for non-python source code also.
Handling of command line arguments (Popularity: ) : This script handles arguments for small scripts that need to: - read some command line options - read some command line positional arguments - iterate over all lines of some files given on the command line, or stdin if none ...
A Python script to test download mirrors (Popularity: ) : The concept of the script is straightforward: read the mirrors page from RedHat's web site, make a list of all the mirrors, test how long it takes to download from each, and present a sorted list of the results.

The first ...

User reviews

Write a review:
1 2 3 4 5 6 7 8 9 10
1=poor 10=excellent
Write review*
Your name*
Email*
  (Comments are moderated, and will not appear on this site until the editor has approved them)
 
Similar Software
Enolsoft PDF Magic for Mac (Popularity: ) : Integrates the function of PDF Splitter and PDF Merger, Enolsoft PDF Magic for Mac provides an all-in-one solution for all the Mac users to merge several PDF files into one PDF, split multi-page PDF document into smaller PDF folders, reorder ...
Clipboard Printer for Mac OS X (Popularity: ) : Clipboard Printer is an expansion of the UNIX GUI utility called 'xclipboard' that allows users an quick and easy way of printing, managing, and saving to disk, multiple clipboards.

Often times when harvesting data on the web from various resources, most ...

DC40 - DVD ImageBrowser 5.7.2 Updater for Mac OS X (10.2) (Popularity: ) : ImageBrowser 5.7.2 Updater for Mac OS X (10.2)

Last Updated : 04-Dec-2007
Issue Number : 0900676001

OS

* Mac OS X

Detail

Outline of the software
ImageBrowser 5.7.2 Updater for Mac OS X is software that will install ImageBrowser 5.7.2 on your computer or update a ...

DC10 - DVD ImageBrowser 5.7.2 Updater for Mac OS X (10.2) (Popularity: ) : ImageBrowser 5.7.2 Updater for Mac OS X (10.2)

Last Updated : 04-Dec-2007
Issue Number : 0900676001

OS

* Mac OS X

Detail

Outline of the software
ImageBrowser 5.7.2 Updater for Mac OS X is software that will install ImageBrowser 5.7.2 on your computer or update a ...

Thunderbird to Mac OS X (Popularity: ) : Reason can be many behind Thunderbird to Mac OS X migration. Changing of organization, up gradation of technology is the common reason. To transfer Thunderbird files and folders to Mac OS X try PCVARE's Thunderbird to Mac OS X software. ...
Vista Mail to Mac OS X Mail (Popularity: ) : Do you want to view or access your mails of Windows Mail into Mac OS X Mail format? If yes then simply make use of Vista Mail to Mac OS X Mail Converter tool, as this program easily allows you ...
Windows Mail to Mac OS X Mail (Popularity: ) : Windows Mail to Mac OS X Mail converter - a smart yet hot-selling utility that supports to converting mail from Windows Mail to Mac OS X email format with no loss. Our Windows Mail to Mac Mail OS X Mail ...
Simpo PDF to PowerPoint for Mac (Popularity: ) : If you want to convert PDF to PowerPoint on Mac OS X, you can count on Simpo PDF to PowerPoint Converter for Mac. It is the best PDF to PowerPoint converter for all Mac users: 1. Convert a batch of ...
iMacsoft PDF to Text Converter for Mac (Popularity: ) : iMacsoft PDF to Text Converter for Mac enables users to extract plain Text from PDF documents on Mac OS X without assistant of Adobe Acrobat or other plugins, so that it is possible for you to reuse or edit the ...
Flip PDF for Mac OS X (Popularity: ) : Convert Your Catalogs, Brochures, Annual Reports and Other Documents Into a Flash Page Flip Within Minutes on Mac OS X Flip PDF for Mac is a Mac application that helps you convert any PDF document to a page flip book ...
ad


Rate me
supported os
Windows, Mac OS
stats
downloads 18
version 1.0
size in Kb
popularity   
2476/367301
user rating 5/10
New Scripts
Popular Scripts
Latest Reviews