mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-08 09:31:03 +00:00
A PDF saved with some of its artboards has a page for each of them, while the editing data keeps them all. The importer took the pages after the first to show the artboards right after the first page's artboard. In a PDF of artboards 2 and 4 of 4, the second page's type went to artboard 3. In a PDF of artboards 1 and 3 of 4, the second page's type went to the left edge of artboard 2. Each page after the first now goes to an artboard of its size that comes after the previous page's artboard and leaves an artboard for each later page. The artboard chosen for the first page also leaves one for each later page. When several artboards fit a later page, the importer compares their art with the page and takes the closest one, or the first of them on a tie. It compares at most 16 artboards for all the later pages together, the same limit it uses for the first page. A later page with no comparisons left takes the first artboard that fits it. When the PDF has fewer pages than artboards and its first page shows the first artboard, the first page's type and page art still go to the art's box or to the editing data's artboard.