Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias Assign TupleStore NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign NameStore BinOpAdd Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore AttributeLoad Call NameLoad NameLoad keyword NameLoad attr Assign NameStore Call NameLoad NameLoad keyword Num For NameStore NameLoad body Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr Assert CompareEqEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Num Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Expr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr
N/A N/A 
usage:   copy.py my.pdf

Creates copy.my.pdf

Uses somewhat-functional parser.  For better results
for most things, see the Form XObject-based method.

 N/A sys N/A os reportlab.pdfgen.canvas Canvas decodegraphics parsepage pdfrw PdfReader PdfWriter PdfArray N/A N/A inpfn N/A N/A sys argv N/A 1 N/A outfn N/A copy. N/A N/A N/A os path basename inpfn N/A pages N/A N/A PdfReader inpfn decompress True pages N/A canvas N/A Canvas outfn pageCompression 0 N/A page pages N/A N/A box N/A N/A float x N/A x N/A page MediaBox N/A N/A N/A box N/A 0 N/A box N/A 1 0 demo won't work on this PDF N/A N/A N/A canvas setPageSize N/A box N/A 2 N/A N/A parsepage page canvas N/A N/A N/A canvas showPage N/A N/A N/A canvas save