This can be done with a ViewBox.
1. Create your file in Inkscape. 2. Save the file; this is your master. 3. Create one copy of the master file for each page you wish to print. 4. Open each of the copies in an text editor (do this one file at a time). 4a Using the text editor adjust the width and height to be the size of a printed page. 4b Still using the text editor, add a ViewBox with an appropriate offset. 4c. Save the modified file and exit the text editor. 5. Open up each of the modified copies in Inkscape and convert to PDF (do this one file at a time).
###################################################### e.g. The following file is 25.5 inches by 11 inches (assuming 90px per inch) (this file is also attached to this e-mail with the name "master.svg") ###################################################### <?xml version="1.0" standalone="no"?> <svg version="1.1" width="2295" height="990" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"> <g style="fill:none;stroke:black;stroke-width:4"> <circle r="270" cx="382.5" cy="495" fill="red"/> <circle r="270" cx="1147.5" cy="495" fill="green"/> <circle r="270" cx="1912.5" cy="495" fill="blue"/> </g> </svg>
###################################################### Now here is a modified version that renders the middle of the drawing on an 8.5x11 inch page. (this file is also attached to this e-mail with the name "page2.svg") ###################################################### <?xml version="1.0" standalone="no"?> <svg version="1.1" width="756" height="990" viewBox="765 0 765 990" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"> <g style="fill:none;stroke:black;stroke-width:4"> <circle r="270" cx="382.5" cy="495" fill="red"/> <circle r="270" cx="1147.5" cy="495" fill="green"/> <circle r="270" cx="1912.5" cy="495" fill="blue"/> </g> </svg>
Note: If you carve up the drawing such that drawing elements are sliced by page borders, you might want to consider adding margins. Margins can be generated by clipping the area you want to print with a clipPath that is slightly smaller than the size of a printed page.
On 03/03/2011 07:08, crjw wrote:
This can be done with a ViewBox.
Another clever angle. Wow. And I can see it lending itself to a partially scripted solution.
It's a pita to open each 'sliding master' svg in inskcape and manually save copy as pdf, I wonder what's going on with the command line in 0.47?
Thanks for your idea! \d
participants (2)
-
crjw
-
donn