pdf-annotations-converter

Crates.iopdf-annotations-converter
lib.rspdf-annotations-converter
version0.2.0
sourcesrc
created_at2020-09-10 04:58:19.762948
updated_at2020-09-11 05:17:19.671089
descriptionConverts annotations found in PDF files to different formats.
homepage
repositoryhttps://github.com/thlorenz/pdf-annotations-converter
max_upload_size
id286917
size30,023
Thorsten Lorenz (thlorenz)

documentation

README

pdf-annotations-converter

Converts annotations found in PDF files to different formats.

USAGE:
    cat annotations.txt | pdf-annotations-converter [OPTIONS] > notes.md

FLAGS:
    -h, --help       Prints help information
    -n, --numbers    Flag specifying if page numbers should be included
    -V, --version    Prints version information

OPTIONS:
    -a, --add-offset <add offset>    Added to annotated page numbers to obtain physical page
    -s, --sub-offset <sub offset>    Subtracted from annotated physical page to obtain page number


Physical pages don't usually match page numbers. Therefore you can optionally provide an offset to
derive one from the other.

First determine the page offset which is the physical page on which page number `1` appears.

Then provide this offset via `--add-offset` if the annotations include the actual page number or via
`--sub-offset` if the annotations include the physical page.

Installation

cargo install pdf-annotations-converter

Supported Annotations

At this point annotations generated with GoodReader are supported. These annotations are obtained by using the export via email feature.

No email account needs to be connected to do this as you can just pretend to send them via email and copy them to the clipboard to them transfer them via a different mechanism, i.e. via Notes.

Supported Renderers

At this point rendering to markdown is supported.

Documentation

License

MIT

Commit count: 23

cargo fmt