[Python] How to extract text and text coordinates from a PDF file?

Discussão em 'Python' iniciado por Stack, Maio 28, 2025.

  1. Stack

    Stack Membro Participativo

    I want to extract all the text boxes and text box coordinates from a PDF file with PDFMiner.

    Many other Stack Overflow posts address how to extract all text in an ordered fashion, but how can I do the intermediate step of getting the text and text locations?

    Given a PDF file, output should look something like:

    489, 41, "Signature"
    500, 52, "b"
    630, 202, "a_g_i_r"

    Continue reading...

Compartilhe esta Página