将大型打印作业作为带有对齐标记的PDF进行布局。
lps的Python项目详细描述
获取图像、打印高度或宽度(以mm为单位)和页面大小,然后 使用对齐标记在多个页面上拆分图像并生成 PDF格式
它用于打印从Openscad导出为svg的投影
对于图像,它支持枕头支持的任何东西,以及SVG 多亏了Cairosvg。
pdf生成由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授权