Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad Call NameLoad NameLoad attr Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore NameLoad If BinOpBitAnd Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign NameStore ListLoad While CompareGt Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr AugAssignAdd NameStore ListComp TupleLoad NameLoad comprehension NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body Assign NameStore NameStore Num For NameStore NameLoad body AugAssignAdd NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad If BoolOpAnd CompareGt Call NameLoad NameLoad Num CompareEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Index Num orelse Assign NameStore Num Assign NameStore Num For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AugAssignAdd NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list Assign TupleStore NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign NameStore BinOpAdd Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad NameLoad Call NameLoad NameLoad
N/A N/A 
usage:   booklet.py my.pdf


Uses Form XObjects and reportlab to create booklet.my.pdf.

Demonstrates use of pdfrw with reportlab.

 N/A sys N/A os reportlab.pdfgen.canvas Canvas pdfrw PdfReader pdfrw.buildxobj pagexobj pdfrw.toreportlab makerl read_and_double N/A N/A inpfn N/A N/A N/A pages N/A N/A PdfReader inpfn pages N/A pages N/A N/A pagexobj x N/A x pages N/A N/A N/A len pages 1 N/A N/A N/A N/A pages append N/A pages N/A 0 N/A xobjs N/A N/A N/A N/A len pages 2 N/A N/A N/A N/A xobjs append N/A N/A N/A pages pop N/A N/A pages pop 0 N/A N/A N/A xobjs append N/A N/A N/A pages pop 0 N/A N/A pages pop N/A xobjs N/A N/A x N/A x pages N/A xobjs N/A make_pdf N/A N/A outfn xobjpairs N/A N/A N/A canvas N/A Canvas outfn N/A xobjlist xobjpairs N/A N/A x y 0 N/A xobj xobjlist N/A N/A x N/A N/A xobj BBox N/A 2 N/A y N/A max y N/A N/A xobj BBox N/A 3 N/A N/A N/A canvas setPageSize N/A x y N/A N/A N/A N/A len xobjlist 1 N/A N/A xobjlist N/A 0 N/A xobjlist N/A -1 N/A N/A xobjlist N/A xobjlist N/A 1 N/A x N/A N/A N/A xobjlist N/A 0 BBox N/A 2 N/A N/A x 0 N/A y 0 N/A xobj xobjlist N/A N/A N/A N/A canvas saveState N/A N/A N/A canvas translate x y N/A N/A N/A canvas doForm N/A makerl canvas xobj N/A N/A N/A canvas restoreState N/A x N/A N/A xobj BBox N/A 2 N/A N/A N/A canvas showPage N/A N/A N/A canvas save N/A N/A N/A inpfn N/A N/A sys argv N/A 1 N/A outfn N/A booklet. N/A N/A N/A os path basename inpfn N/A N/A make_pdf outfn N/A read_and_double inpfn