Comment 11 for bug 1853155

Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1853155

Well if all you want to do is shift the contents of even and odd pages,
this should be perfectly possible with calibre. calibre includes the PDF
library PoDoFo, using that one can simply adjust the cropbox of
the pages. Look in the PoDoFo directory in the calibre source code for
examples of doing various PDF manipulation. The PDF output plugin uses
it for headers/footers, links, font deduplication, etc.

You can see an example of doing this here:
https://stackoverflow.com/questions/7973823/how-do-you-shift-all-pages-of-a-pdf-document-right-by-one-inch

albeit using the command line tools not the library directly.