Skip to content

Latest commit

 

History

222 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyMuPDF-cmd

PyMuPDF command-line scripts

PyMuPDF must be installed

app.py One File App

4llm.py One File App (4LLM)

insert-image.py Inserts image in a page

start.py Creates an empty pdf document with one or more pages

data.py Gets infos from a pdf file: Metadata, page count, images, tables and links

table.py Extract a table from a page

topdf.py Convert to PDF

translate.py Translate PDF (requires deep_translator)

get-annots.py Extract annotations

Working with pages

delete.py Delete page from pdf file

merge.py Merge two pdf files

move.py Move pages inside pdf document

fcopy.py Duplicate a page

split.py Split a pdf document

add-blank-page.py Insert empty page

trim-page.py Remove Header and Footer

diaportrait.py Landscape to Portrait (2 per page)

Exporting

pixmap.py Saves page as png image

getsvg.py Export page to SVG

html.py Export page to HTML

Text

search.py Find a word in a document

htmlbox.py Insert text (supports HTML syntax)

file-htmlbox.py Insert text from text or HTML file (supports HTML syntax, uses page.rect)

file-htmlbox.py Insert text from text or HTML file (supports HTML syntax, uses page.rect)

file-css-htmlbox.py Insert text from file (supports external CSS2 stylesheet)

deltext.py Remove text

Images

getimages.py & getimages-all.py Extract images to files

xref-images.py Generates an HTML file containing the extracted images (from xref table)

replace-image.py Replaces an image in a document (requires xref)

remove-image.py Removes an image in a document (requires xref)

img-dir-pdf.py Make PDF file with all images in a directory

delimages.py Delete all images in a document

textvsimg.py Text vs OCR Needed Checker

Links

get-links.py Extract links from a document

text-link.py Turn text into link in a document

insert-link.py Inserts a link in a document (requires a Rect object)

indexlinks.py Inserts an Internal Link on a text index in a document

Alter

bgcolor.py & bgcolor-all.py Edit background color

scrub.py Remove potentially sensitive data from the PDF.

encrypt.py Encrypt and set password for a PDF.

RAG-LLM

llama.py Requires llama-index module

Embed and Attach

embed.py Embedding one file

embed-multi.py Embedding multiple files

embed-walk.py Embed files in a directory one by one

OCG (Optional Content Group)

add_ocg.py Add OCG

get_ocg.py Get OCG data

ocg-content.py Add OCG content

Forms (Widgets)

form-data.py Get Form Data

fill-form.py Fill a Form

build-form.py Build a Form

About

PyMuPDF command-line apps

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages