DicePDF

v0.1.0
io.github.ishan-maheshwari/dicepdf Checked 2 days ago Published 6 months ago

Local-first PDF tools for AI agents: merge, split, extract, render, compress.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

pdf_extract_text Extract text from a PDF (local, private)

Extract text from a local PDF as plain text, Markdown, or JSON. The file is read from disk and never uploaded.

ParameterTypeDescription
input *stringPath to the input PDF
formatstringOutput format (default: text)
outputstringOptional path to write the extracted text to

pdf_merge Merge PDFs (local, private)

Merge multiple local PDFs into one, in the given order. Files stay on disk.

ParameterTypeDescription
inputs *arrayInput PDF paths, in order
output *stringPath to write the merged PDF

pdf_split Split a PDF (local, private)

Split a local PDF by page ranges, specific pages, or into every page. Outputs are written to a directory.

ParameterTypeDescription
input *stringPath to the input PDF
mode *string
outputDir *stringDirectory to write the parts into
pagesarray1-based page numbers for mode "pages"
rangesarrayInclusive 1-based ranges for mode "ranges"

pdf_rotate Rotate PDF pages (local, private)

Rotate all (or selected) pages of a local PDF by 90/180/270°.

ParameterTypeDescription
angle *numberRotation in degrees
input *string
output *string
pagesarray1-based page numbers; omit to rotate all

pdf_delete_pages Delete PDF pages (local, private)

Remove the given 1-based pages from a local PDF.

ParameterTypeDescription
input *string
output *string
pages *array1-based pages to remove

pdf_compress Compress a PDF (local, private)

Compress a local PDF. Default mode is structural (lossless, keeps text); set aggressive to rasterize pages for much smaller scan-heavy files.

ParameterTypeDescription
input *string
output *string
aggressivebooleanRasterize pages to shrink image-heavy PDFs (drops selectable text)

pdf_to_image Render PDF pages to images (local, private)

Rasterize a local PDF to PNG or JPEG images, one file per page, written to a directory.

ParameterTypeDescription
input *string
outputDir *stringDirectory to write the images into
dpinumberDots per inch (default 150)
formatstring
pagesarray1-based page numbers; omit to render all

pdf_strip_metadata Strip PDF metadata (local, private)

Remove Title/Author/Producer/XMP and the document ID from a local PDF.

ParameterTypeDescription
input *string
output *string
keepIdbooleanKeep the trailer /ID instead of clearing it

pdf_watermark Watermark a PDF (local, private)

Stamp a text watermark across every page of a local PDF.

ParameterTypeDescription
input *string
output *string
text *string
fontSizenumber
opacitynumber
positionstring

pdf_add_page_numbers Add page numbers (local, private)

Stamp page numbers onto every page of a local PDF.

ParameterTypeDescription
input *string
output *string
formatstring
positionstring

pdf_metadata Inspect a PDF (local, private)

Report page count, AcroForm presence, and signature flag for a local PDF.

ParameterTypeDescription
input *string