Tokenpdf

Latest version: v0.4.1

Safety actively analyzes 723200 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.4.1

Fixed
- Some package conflicts between the extras.
- Fixed papersizes adapter not working
Added
- Credits.md file to list all the libraries used in the project and their licenses and URLs. Appended to main documentation file.
- `pdf-all` extra. This includes all the PDF backends.
- Rembg usage in the foreground filter (optional)

Changed
- Updated the readme.md to reflect the new changes in the requirements.

TODO
- Add screenshots to the documentation
- Redo canvas creation
- Fix relative paths of local images

0.4

Added
- SVG canvas (multiple files) using svgwrite
- HTML output by embedding the SVGs in an HTML file
- PDF output by converting HTML to PDF using PySide6 (Qt) or playwright
- PDF output by converting SVG to PDF using rsvg-convert, resvg, or svglib (much faster than directly to reportlab)

Changed
- Revamped requirements into requirements/ folder, with separate files for each extras option.
- Replaced the papersize library with the papersizes library, which is MIT and not GPL.


Changed
- Default PDF output to use SVG(svgwrite)->PDF(resvg) pipeline instead of reportlab. (Much faster)
- Redone registry class, reusing it in Tokens and Canvases

Fixed
- Fixed foreground filter, still needs improvement

0.3

Added
- Redesign of the canvas system, allowing rotated and translated views
- Redo of Image handling, including caching and lazy-loading, with a overall more consistent and efficient approach.
- New token type "stand_sides" and "stand_tops" to replace the older "standing".
- Rotated rects.
- balance_fragments (default: False) value to map configuration, leading to a more balanced sizing of map fragments.


Changed
- Configuration documentation expanded upon.
- CLI slightly changed: Added -e flag and disallowed empty configuration list without it.
- Moved `__init__.py`'s main function to `__main__.py` to allow for `python -m tokenpdf` execution.

Fixed
- Relative links in README.md as they are rendered in the readthedocs documentation.

0.2.2

Fixed
- Requirements: Added missing dependencies to setup.py

0.2.1

Added
- Feature: `system_url` configuration key as an alternative to `system`. Downloads and loads the system. As usual, a local path is also supported.
- Documentation: Added extensive configuration reference documentation.

Changed
- Updated the readme and changelog.

0.2

Added
- Feature: Map fragmentation tokens
- Feature: PDF post-compression
- Feature: Configuration-based cross-product tasks


Changed
- Improvement: Layout algorithms now sort their outputs to resemble input tokens order.
- Improvement: Automated build+upload
- Improvement: readthedocs-style documentation
- Improvement: google-style docstrings
- Requirement: Python version 3.10

Fixed
- Bug: Temporary image files are now properly cleaned up.

Page 1 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.