Skip to content

lasernoises/flo-pdf-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flo-pdf-tools

Some command-line tools for working with PDFs. Uses the amazing lopdf crate to parse and rewrite PDFs.

Installation

cargo install --git https://github.com/lasernoises/flo-pdf-tools.git

Commands

textify

Rewrites the PDF to be readable in a text editor while remaining valid and viewable in a PDF viewer.

This is possible because PDF is fundamentally mostly a text-based format. PDFs do however contain streams, which can contain arbitrary data. Luckily these streams can be transformed using filters. Typically this is used for compression, but here we use it to hex encode any streams that aren't already valid UTF-8. Most page content streams are already valid UTF-8, but fonts and images aren't.

splat

"Unpacks" a PDF into a folder, creating separate files for each PDF object.

About

Command-line tools for working with PDF files.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages