Search code examples
pdfsvginkscapepdf-conversion

How to convert svg to pdf in landscape mode using Inkscape?


I have used inkscape (https://inkscape.org/release/0.92.3/windows/64-bit/) to convert svg file to pdf. And I used the following command

"./inkscape.exe " + svgFilePath + " --export-area-drawing --export-pdf=" + pdfFilePath

and

"./inkscape.exe " + svgFilePath + " --export-area-page --export-pdf=" + pdfFilePath

The generated pdf is in portrait mode in both cases. I want to convert my svg to pdf in landscape mode. How can I do that?


Solution

  • The first command you have given here should generate a pdf with actual visible area or the bounding box of visible objects(looks like landscape). I always use that command to convert my svgs to pdfs. The second command generates pdf similar to portrait mode