mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-12 21:23:02 +00:00
The PDF importer renders each page with PDFium at the import DPI (default 300), lays the pages out side by side and wraps each in an artboard, so a 2-page PDF opens as 2 artboards and saves back as a 2-page PDF (one page per artboard, page-sized, labelled). The import caps at 16 pages for now. The PDF writer now takes a list of pages: shared font/ICC/selection objects, one image per page, and the existing one-page export is the single-page case. Artboards with vector/text layers are rasterised in this path. Tested: artboards_export_as_one_page_each; convert sample.pdf app-multi.pdf (2 pages), rendered back with the probe.