Crates.io | scannedpdf |
lib.rs | scannedpdf |
version | 0.1.0 |
source | src |
created_at | 2023-02-05 03:34:03.770725 |
updated_at | 2023-02-05 03:34:03.770725 |
description | A fast, low memory footprint, simple images to PDF crate |
homepage | |
repository | https://github.com/lihe07/scannedpdf |
max_upload_size | |
id | 776817 |
size | 26,134 |
A fast, low memory footprint, simple images to PDF crate.
scannedpdf
does not store the whole file in RAM. Typically, the memory footprint depends on the size of the individual images and does not exceed 100Mb.scannedpdf
provides deadly simple API.scannedpdf
to your project dependencies by cargo add scannedpdf
Note: by default, flate compression is enabled. Disable it by cargo add scannedpdf --no-default-features
I had been using printpdf before I started this project. I was working on a comic downloader that involved merging large numbers of images. printpdf
didn't do very well in terms of memory, performance and compression. Also, printpdf
cannot handle unicode text in bookmarks, which appears as garbled code on many devices.