Skip to content

SunnyQjm/pdf_annotation_fix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF Annotation Fixer

macOS Preview sometimes 'forgets' about annotations that were added to a PDF file. This can be particularly frustrating after providing feedback on a draft for many hours, just to loose the precious annotations when closing and re-opening the file.

This tool attempts to fix the annotations based on a technique described by 'thorimur'.

How to use

You can either use the command line app or try the web app hosted on GitHub Pages.

Web App

Thanks to WebAssembly, you can also use this tool from the browser here.

The web app runs entirely in the browser and the PDF is never sent anywhere.

The source code can be found under web-app directory of this repository.

Command Line

You need to have a working rust toolchain installed.

Then just run the program using cargo:

~ cargo run -- my_messed_up.pdf fixed.pdf
# ...
recovered 188 annotations

About

Fixes macOS Preview garbled annotations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 96.7%
  • HTML 3.3%