[Python] Shrink and merge PDFs in Python

Discussão em 'Python' iniciado por Stack, Junho 4, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to shrink and merge two A4 PDF pages into one A4 page so that if I had;

    _____ _____
    | | | |
    | p1 | | p2 |
    | | | |
    |_____| |_____|



    I would get;

    _____
    | p1 |
    |.....|
    | p2 |
    |_____|


    As a new PDF, with two A5 sized pages on that one page. Similar to how you might print two pages per page on paper.

    I've looked into pypdf and ReportLab but I can't seem to find how to shrink and merge like this.

    Any hints?

    Thanks!

    Continue reading...

Compartilhe esta Página