|File Search||Catalog||Content Search|
pdfrw tries to be agnostic about the contents of PDF files, and support them as containers, but to do useful work, something a little higher-level is required. It supports the following:
* PDF pages. pdfrw knows enough to find the pages in PDF files you read in, and to write a set of pages back out to a new PDF file. * Form XObjects. pdfrw can take any page or rectangle on a page, and convert it to a Form XObject, suitable for use inside another PDF file * reportlab objects. pdfrw can recursively create a set of reportlab objects from its internal object format. This allows, for example, Form XObjects to be used inside reportlab.
Example programs: subset.py -- This will retrieve a subset of pages from a document. 4up.py -- Prints pages four-up print_two.py -- this is used when printing two cut-down copies on a single sheet of paper (double-sided) Requires uncompressed PDF. booklet.py -- Converts a PDF into a booklet. metadata.py -- Concatenates multiple PDFs, adds metadata. rl1/subset.py -- Same as subset.py, using more»
This directory contains example scripts which read in PDFs and convert pages to PDF Form XObjects using pdfrw, and then write out the PDFs using reportlab. The examples, from easiest to hardest, are: subset.py -- prints a subset of pages 4up.py -- prints pages 4-up booklet.py -- creates a booklet out of the pages
The copy.py demo in this directory parses the graphics stream from the PDF and actually plays it back through reportlab. Doesn't yet handle fonts or unicode very well. For a more practical demo, look at the Form XObjects approach in the examples/rl1 directory.
pdfrw (0+svn136-3) unstable; urgency=low * python-pdfrw should Replaces/Provides/Conflicts pdfrw. more»
Author: Patrick Maupin Download: http://code.google.com/p/pdfrw/ Files: * Copyright: © 2006-2009 P more»