Scripts Index
Python File Management  

Counting pages of PDF documents on Mac O

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 O 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.
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 OS X (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.
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 ...

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 ...
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 ...
iPubsoft PDF Creator for Mac (Popularity: ) : Key Features: 1. Make your own PDF files instantly Create professional and high quality PDF from Text and Image files including JPG, PNG, GIF, TIF, BMP, ICO, PCX, CUR, XBM, XPM, PNM, PICT, ANI, TGA, etc. 2. 100% Preservation After ...
Enolsoft PDF Compressor for Mac (Popularity: ) : Enolsoft PDF Compressor for Mac compresses and reduces PDF file size by optimizing the resolution and compression method of images, removing unused thumbnails and metadata, stripping dead-object and compressing other parts of PDF files. Supports drag-n-drop to batch compress multiple ...
Enolsoft PDF Converter for Mac (Popularity: ) : Enolsoft PDF Converter for Mac is an 8-in-1 PDF converting program, can be also used as PDF to Word Converter, PDF to PowerPoint Converter, PDF to HTML Converter, PDF to EPUB Converter, PDF to Image Converter etc. With Enolsoft PDF ...
Enolsoft PDF Extract Image for Mac (Popularity: ) : Enolsoft PDF Extract Image for Mac is a simple and easy-to-use Mac PDF image extractor, specifically designed for Mac OS user to extract images from Adobe PDF files to JPG, TIFF, PNG, GIF and BMP image file formats on Mac. ...
Enolsoft PDF Creator for Mac (Popularity: ) : Enolsoft PDF Creator for Mac converts more than 10 of document formats into a 100% industry-standard PDF file with only a few clicks. With this Mac PDF Creator, you are able to create PDFs that can be edited and printed, ...
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 ...
Cisdem PDFCompressor for Mac (Popularity: ) : Cisdem PDFCompressor 3 is the smartest PDF compressor to reduce PDF file size on Mac. With the user-friendly interface, it can easily compress the size of single or multiple PDF files and maintain the original PDF format. Besides, four preset ...
Cisdem PDF Converter for Mac (Popularity: ) : Cisdem PDF Converter 5 lets you stop retyping PDF documents with complex layouts and graphics today. It can quickly and accurately convert PDF files into Microsoft Word(.docx), PowerPoint(.pptx), ePub, RTFD, Text, HTML, Keynote, Pages, Images and more! — with the ...
iSuper PDF Converter for Mac (Popularity: ) : iSuper PDF Converter can easily convert PDF to Text, Word, Excel, PowerPoint 2007, EPUB, HTML, TIFF, JPEG, PNG, GIF, BMP, TGA, PPM, and JPEG 2000 on Mac. With advanced OCR technology, PDF Converter for Mac enables you to convert image-based ...
ad


Rate me
supported os
All
stats
downloads 17
version 1.0
size in Kb
popularity   
2603/370724
user rating 5/10
New Scripts
Popular Scripts
Latest Reviews