An open API service indexing awesome lists of open source software.

https://github.com/ralpha/pdf_structure_viewer

Inspect how the PDF's structure looks.
https://github.com/ralpha/pdf_structure_viewer

pdf rust viewer

Last synced: 9 months ago
JSON representation

Inspect how the PDF's structure looks.

Awesome Lists containing this project

README

          

# PDF Structure Viewer
[![Crates.io](https://img.shields.io/crates/v/pdf_structure_viewer)](https://crates.io/crates/pdf_structure_viewer/)
[![API Docs](https://img.shields.io/badge/docs.rs-pdf_structure_viewer-blue)](https://docs.rs/pdf_structure_viewer/latest/)

Inspect how the PDF's structure looks.
This tool is useful for when working with PDFs and/or [`lopdf`][lopdf].

This application is used [`lopdf`][lopdf] internally to decode the structure of the pdf.

The output of this application is for human viewers only.
Do **NOT** use the output of this application as input for other applications.

This project was inspired by: https://pdfux.com/inspect-pdf/

This tool was developed with support from [MyEmma.nl](https://www.myemma.nl/).

![Tree view of a small file](images/tree_view_small_pdf.png)

## Extra info

Most people using this tool will most likely want to know more about the structure of PDFs.
Here are some links that will help with that.

PDF 1.7 or ISO 32000-1 (2008) Spec:
- [Download from adobe.com](https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/PDF32000_2008.pdf)
- [Download from archive.org](https://web.archive.org/web/20210128014024/https://www.adobe.com/content/dam/acom/en/devnet/pdf/PDF32000_2008.pdf)

## Install

### Through Cargo

Install from https://crates.io:
```
cargo install pdf_structure_viewer
```

Install from local repo clone:
```
cd ./pdf_structure_viewer
cargo install --path .
```

## License

The code in this project is licensed under the MIT or Apache 2.0 license.

All contributions, code and documentation, to this project will be similarly licensed.

[lopdf]: https://github.com/J-F-Liu/lopdf