Very simple conversion of SVG output to pdf file. However, it defaults to a portrait orientation. Is there a simple way to change the orientation to landscape?
// create and tune conversion options
Aspose.Pdf.
SvgLoadOptions options = new SvgLoadOptions();
options.ConversionEngine = Aspose.Pdf.
SvgLoadOptions.ConversionEngines.NewEngine;
// load PDF document from SVG
Aspose.Pdf.
Document pdfDocument = new Aspose.Pdf.Document(mydir + "assembly.svg", options);
pdfDocument.PageLayout.IsLandscape =
"True";
// Save PDF document
pdfDocument.Save(mydir +
"assembly.pdf");
// create and tune conversion options
Aspose.Pdf.
SvgLoadOptions options = new SvgLoadOptions();
options.ConversionEngine = Aspose.Pdf.
SvgLoadOptions.ConversionEngines.NewEngine;
// load PDF document from SVG
Aspose.Pdf.
Document pdfDocument = new Aspose.Pdf.Document(mydir + "assembly.svg", options);
pdfDocument.PageLayout.IsLandscape =
"True";
// Save PDF document
pdfDocument.Save(mydir +
"assembly.pdf");