Skip to content

ellamind/Printable-PDF-Annotations

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PPA

A simple script written in fitz that adds highlight annotations to page margins.

How does it work?

Assume we have a PDF file with some highlighted text and annotations:

Run:

make_printable(Path("example.pdf"))
Input Output

Customize font size and color at line 38:

annot_ = page.add_freetext_annot(
    rect=note_area_rect,
    text=annot.info["content"],
    fontsize=12,
    fontname="helv",
    border_color=None,
    text_color=getColor("black"),
    fill_color=None,
    rotate=0,
    align=fitz.TEXT_ALIGN_LEFT,
)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%