Skip to content

About

This program allows you to extract annotations from PDF files and save them in a structured format. It features a user-friendly graphical interface and supports various annotation types.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF Annotation Extractor

A tool for extracting and processing PDF annotations.

License: GPL v3 Python Version Platform

Description

This program allows you to extract annotations from PDF files and save them in a structured format. It features a user-friendly graphical interface and supports various annotation types.

Features

  • Extract PDF annotations
  • User-friendly graphical interface
  • Progress tracking
  • Automatic page numbering detection
  • Batch processing support
  • Export to markdown text format

Installation

From Source

Clone the repository

git clone https://github.com/EnginKarahan/pdf-annotation-extractor.git

Change into the directory

cd pdf-annotation-extractor

Install dependencies

pip install -r requirements.txt

Using pip

pip install pdf-annotation-extractor

Usage

Graphical Interface

python main.py

Or use the pre-compiled executable from the releases section.

Command Line Interface

python pdf_utils.py input.pdf

Dependencies

  • Python 3.x
  • PyMuPDF
  • tkinter (included in most Python distributions)

Building

To create a standalone executable:

python -m PyInstaller --onefile --windowed main.py

Documentation

Basic Usage

This tool allows you to extract annotations from PDF files and export them to a markdown file. The program processes different types of annotations including highlights, underlines, and comments.

Main Features

  • Extract annotations from PDF files
  • Process different annotation types (highlights, comments, underlines)
  • Detect and use internal page numbers of the PDF
  • Export annotations to markdown format
  • Simple graphical user interface

How to Use

  1. Start the application
  2. Click "Select PDF" to choose your PDF file
  3. Click "Extract" to process the annotations (The markdown file will be saved in the same directory as the source PDF)

Export Format

The exported markdown file contains:

  • Document title
  • Page numbers (as they appear in the PDF)
  • Annotation text and comments
  • Export date and time

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Author

Engin Karahan - [email protected]

Acknowledgments

  • PyMuPDF developers for their excellent PDF processing library
  • All contributors and users of this project

Support

If you encounter any problems or have suggestions, please open an issue.

About

This program allows you to extract annotations from PDF files and save them in a structured format. It features a user-friendly graphical interface and supports various annotation types.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages