Chu Rui
Chu Rui

Reputation: 11

How does python extracts the page with annotations from a PDF?

Have some PDF files containing annotation in random pages.

All I want to do is recognizing the page with annotations and pack those pages in a new PDF file. (What I mean annotation is just some straight or could lines draw by Adobe acrobat pdf reader)

How do I use pypdf to recognize if a page has annotations?

I use Python 2.7 on MAC and have already installed pypdf. Is this even possible with pypdf?

Upvotes: 1

Views: 1900

Answers (1)

tsurantino
tsurantino

Reputation: 1027

Try poppler. Here is an answer where the author parsed annotations from the PDF document using python-poppler: Parse annotations from a pdf

Upvotes: 1

Related Questions