mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-15 10:05:42 +00:00
With useArtboards off, PDF, .ai and HP-GL exports sized their one page by every visible object, including art they then leave out. A PDF without includeNonPrinting or createLayers drops non-printing layers, so art on such a layer made the page larger than what was drawn, and a document whose only visible art did not print came out as a blank page. An HP-GL plot draws nothing of non-printing layers, objects at 0% opacity, placed images, gradient meshes whose every point is at 0% opacity and paths that paint nothing, and such art moved the plot's origin. The page is now measured with that art hidden, and a document with no other visible art is refused. A .ai file is measured with the PDF options it is written with, so it keeps non-printing layers unless both createLayers and includeNonPrinting are off. The PDF writer's own non-printing filter uses the same helper, and the HP-GL writer's plots_nothing says which objects a plot draws nothing of. Export As measures an HP-GL plot of the art's bounds the same way, so a document with nothing the plot draws stays in the dialog before the save panel.