#10 Duplicating pages

closed-fixed
logari81
None
5
2011-12-27
2010-06-04
Anonymous
No

I've got a source document with a single page (magazine style, left and right) and I want to create a document with two pages: left side, and right side of the document.
I duplicate the source page and apply cropping to the destination pages (50% right and 50% left).

It does not work, it will apply 50% cropping right and then 25% (50% of the 50%) left. The two pages in the exported document will look the same.

I've fixed it using the "copy module" of python. To use a "copy" of the source object instead of a "reference".

See my patched pdfshuffler (v0.5)

Discussion

  • Patched PDFshuffler

     
    Attachments
  • alister.hood
    alister.hood
    2010-07-11

    Thanks, works well.

    diff pdfshuffler_patched pdfshuffler
    31d30
    < import copy
    449c448
    < current_page = copy.copy(pdf_input[nfile-1].getPage(npage-1))
    ---
    > current_page = pdf_input[nfile-1].getPage(npage-1)

     
  • logari81
    logari81
    2010-10-07

    • assigned_to: nobody --> logari81
    • status: open --> open-fixed
     
  • logari81
    logari81
    2010-10-07

    The patch has been applied in the svn revision 25. Thanks.

     
  • logari81
    logari81
    2011-12-27

    • status: open-fixed --> closed-fixed