Lay out large print jobs as PDFs with alignment marks.
Project description
Takes an image, printed height or width (in mm) and page size then splits image across multiple pages with alignment marks and generates a PDF.
It is intended for printing projections exported as SVGs from Openscad.
For the image it supports anything that Pillow supports, as well as SVGs thanks to CairoSVG.
PDF generation is done by ReportLab.
$ lps -h usage: lps [-h] (--width WIDTH | --height HEIGHT) [--page_size PAGE_SIZE] [--overlap OVERLAP] [--margins MARGINS] [--outfile OUTFILE] [--svg_start_scale SVG_START_SCALE] image_file positional arguments: image_file Image to parse optional arguments: -h, --help show this help message and exit --width WIDTH Width of image in millimeters --height HEIGHT Height of image in millimeters --page_size PAGE_SIZE Page size, e.g. a3, a4 --overlap OVERLAP Print overlap in mm --margins MARGINS Print margins in mm --outfile OUTFILE Filename to save pdf to --svg_start_scale SVG_START_SCALE When using SVG, this is the largest scale factor to attempt to generate an image $ lps --width 970 --page_size a3 --overlap 20 wrap.svg Loading Image Trying to generate raster image of svg at 3x scale The image will not fit on a single page Calculating crop list This will require 3 pages Chunking image Generating PDF
Licensed under MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lps-0.1.0.tar.gz
(5.0 kB
view details)
File details
Details for the file lps-0.1.0.tar.gz
.
File metadata
- Download URL: lps-0.1.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8fff69059eb4e4bcc3e6c35990947e096001b8756ec73e79cf33184b69a6b37 |
|
MD5 | 763a93ff087dd63bfb9ff8c43d933049 |
|
BLAKE2b-256 | be66b32b8e402b7cf61eae120e04e9ed726c145fc953ec82ef9b962682490f1e |