I use Google Chrome to view a 1178x5408 .svg file. It includes a lot of small "subgraphics" (screenshots of dialogs, connected by arrows .. think "wizard"), the whole thing is created by graphviz.
Now I want to print it properly. For me it is important to not scale the whole thing down to one piece of paper, since then I can not see anything of the small screenshots anymore.
What are my best options?
611 Answers
I suggest you use Inkscape to open the SVG file and print it from there. It has far better options on printing than Chrome does for SVG.
Shift + Ctrl + D will get you document options:
Just had to solve this today. I used Inkscape's Print and printed to a PDF file (which is a standard feature on Linux; I don't know about other platforms), and then I used pdfposter to split it into pages:
pdfposter -m a4 -p a3 infile.pdf outfile.pdfTranslation: use A4 pages to build an A3-sized poster.
Since most of the answers seemed to focus on command-line solutions, I'd like to add this. And really it goes along with BloodPhilla's answer (Inkscape), because you need to convert the SVG to a PNG first to use this tool, but here it is: PosteRazor. Once you have a PNG, you can feed it into this program and in 4 easy wizard-y steps you get a multi-page PDF that can be assembled into a "poster". I had to play around with margins and overlaps a little bit to get things the way I wanted it, plus you need to be aware of your printer's physical limitation on edge printing, but overall, a worthwhile little tool for this kind of thing.
ok, i used wkhtmltopdf to get a reasonable, good looking .pdf from that .svg:
% wkhtmltopdf.exe input.svg output.pdf 2 I just had some success with the following steps:
- Open the SVG in Inkscape. I'm running version 0.48 for Windows.
- Export to a PDF. I used the default settings.
- Open the PDF in Foxit Reader.
- Print; under the "Print Handling" section, for the dropdown "Scaling Type", pick the option "Tile Large Pages".
Following the above, my SVG seems likely to print on 13 by 10 letter size pages.
Update – I had some difficulty with the above; some of the 'tiled' pages weren't printing, but not always the same pages so I suspect a subtle issue with how Foxit Reader prints tiled pages. Here are alternate steps that I just followed that worked without issue:
- Open the SVG in Inkscape.
- Export to a PDF.
- Open the PDF in Foxit Reader.
- Print; under the "Print Handling" section, for the dropdown "Scaling Type", pick the option "Tile Large Pages", and in the Printer ("Name") selection pick "Foxit Reader PDF Printer".
- Enter a name for the new PDF that will be created with a page for every 'tiled' page in the original PDF.
- The new PDF with the tiled pages should open automatically in Foxit Reader; this PDF can be printed normally and no pages should be skipped.
You could try to use the latest version of GhostPDL (sister application to Ghostscript; source code available from ) to convert the file to PDF. GhostPDL can handle SVG (and XPS or PCL) in a similar way as Ghostscript does handle PostScript. So here goes the commandline:
gsvg.exe ^ -dNOPAUSE ^ -dBATCH ^ -dSAFER ^ -sOutputFile=my.pdf ^ -sDEVICE=pdfwrite ^ -g1178x5408 ^ c:/path/to/my.svgOnce you got a PDF, you should be able to print it easily from Acrobat{,Reader}. At least now with PDF we know different ways to reliably print one big-dimension file onto multiple sheets of (letter or A4 or A3) paper using a "posterize" utility.
Maybe such a "poster print" function is also available from Inkscape (which can open and print the SVG directly), but I'm not sure from the top of my head.
4I have same problem with HTML page containing SVG elements.
To print big SVG image contained in HTML file, I use Opera browser and Adobe Acrobat Reader application.
Indeed, on Opera browser, I open contextual menu (right click on page) and then I click on Save as PDF menu.
After SVG image as been saved in PDF file, I open it with Adobe Acrobat Reader application and I activate File\Print menu.
Before printing, I select Affiche Tab (Display in english) to specify how I want to print this SVG image on multiple A4 pages.
In above image, you can see a preview of my SVG contained in 16 pages.
Before printing any SVG image, I recommand to specify correct values for length and width SVG attributes to avoid to print too much empty A4 pages.
<svg xmlns="" version="2.0" width="3800px" height="1400px">Sorry for FRENCH printscreen. I another user with enough reputation have an english version, he can replace my printscreen in adapting page's number.
PS: Save as PDF doesn't work with Firefox nor Chrome browser.
PS: Microsoft Edge allows saving SVG in HTML as PNG or JPEG file. The problem than, is to print PNG or JPEG on multiple pages.
If you have access to the original dot file, just convert it to a PDF and then print it with Adobe Acrobat.
Adobe Acrobat has a nice option if you bring up the print dialog from the menu, e.g. File -> Print, then in the dialog click Poster. For Tile Scale use the keyboard up and down keys and look right to see how many pages the image will be printed. Once you like what you see, then just click Print.
If you convert your SVG to PDF first, then you can use a tool called plakativ which is able to make a poster that you can print on multiple A4 pages and then glue those pages together to a bigger poster. You can grab it here:
If you are on Linux you can install it with pip. Windows executables are also regularly built on AppVeyor CI:
The source code is hosted here:
I had the same problem and opted for using the recommended Inkscape but to subdivide the whole graph into logical independent agrupations and was lucky that each fitted with a reasonably readable font size into A3 sheets.
- Select the elements one wants to fit into e.g. A3 and copy them to new document. File / Properties, select A3, portrait or landscape.
- Fit the elements together as you wish.
- There has to be a shortcut for doing this gradually with the mouse but I did it like this: Select them all, Object / Transformations, Scale tab, "scale proportionally" and try a value. If one fails, Ctrl+Z and try another one.
- File / Save copy, type: pdf.
Repeat for each part, one resulting PDF for each section.
Open with some PDF viewer and print.
Otherwise I'd opt for Kenny Evitt solution, but you'll have to .
Can't understand why BloodPhilia answer, as is, is currently the most voted one.
I can propose a second solution (= SVG to PDF and print PDF using Acrobat Reader).
I transform SVG file in PNG using following ImageMagick script.
set magick="D:\Program Files\ImageMagick-7.0.10-Q16\magick.exe"
%magick% Plan-Unifilaire.ATHUS.svg Plan-Unifilaire.ATHUS.pngThen I use Microsoft Paint program to print 2400x1300 PNG image on only 2 A4 portrait pages.
I have changed Orientation to Portrait.
I have reducted Right and Left margins to 0
and finally, I have set Adjust to 2 / 1 pages to print image on 2 A4 pages.
Working with Paint has advantage to see Result before Print.