[reportlab-users] Reverse order of pages

Andy Robinson andy at reportlab.com
Wed Jun 28 12:45:10 EDT 2006


> Not really, no.  For the most part, a page boundary doesn't really mean
> very much to Reportlab.  The "bowels of reportlab" essentially work with
> a stream of PostScript instructions.  showPage() flushes pending data
> and adds a few PostScript commands to eject the page.  There is no
> "tree" of data with pages as branches that you can rearrange.

As I thought until 20 minutes ago when I tried it ;-)


Actually, the pdfdoc layer really is a tree which is constructing things 
to be put into the final PDF, and it fairly amenable to hacking if you 
know enough about the PDF format.  I think the specific cases of
(a) reordering and (b) perhaps leaving out some of the pages are
pretty safe.

- Andy


More information about the reportlab-users mailing list