Skip to content

pdfluent/examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDFluent Examples

CI

Working code examples for the PDFluent SDK, a pure-Rust PDF SDK with XFA, PDF/A, digital signatures, and redaction, with bindings for Rust, Python, Node.js, WASM, .NET, and Java.

This repository currently has Rust examples and a browser/WASM demo. For the other languages, see the install snippets and docs linked below.

Quick start

git clone https://github.com/pdfluent/examples
cd examples
cargo run --example text_extraction -- /path/to/your.pdf

Examples

Example What it demonstrates
text_extraction Open a PDF, extract all text, iterate page by page
form_fill Fill AcroForm text fields and checkboxes, then flatten to static PDF
merge_pdfs Merge multiple PDFs into one with a shared bookmark structure
pdfa_validate Validate PDF/A-1b/2b/3b compliance, list violations
redact_text Search-based redaction: find patterns and permanently remove them
wasm/index.html Open a PDF and extract its text entirely in the browser via @pdfluent/sdk-wasm — no server, no upload

All examples run against sample.pdf, a small public test document bundled in this repo.

Installation

Add to your Cargo.toml:

[dependencies]
pdfluent = "1.0.0-beta.17"

Or with specific features:

[dependencies]
pdfluent = { version = "1.0.0-beta.17", features = ["signing", "pdfa", "redaction"] }

Other languages

The same engine is available outside Rust:

Language Package Docs
Python pdfluent on PyPI pdfluent.com/docs/python
Node.js @pdfluent/node on npm pdfluent.com/docs
Browser / WASM @pdfluent/sdk-wasm on npm pdfluent.com/docs/wasm
.NET pdfluent on NuGet pdfluent.com/docs/dotnet
Java com.pdfluent:pdfluent on Maven Central pdfluent.com/docs/java

Licensing

PDFluent is free for evaluation. A valid license is required for production use.

Output from unlicensed builds carries an "unlicensed evaluation" marker in the PDF metadata.

More resources

About

PDFluent SDK examples — text extraction, form fill, PDF/A validation, merge, redaction

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors