Aspose.SVG converts large SVG into multiple BMPs. Should only be one.
using (var document = new SVGDocument(@"C:\Users\niels\Desktop\Workspace\sample.svg"))
{
var saveOptions = new ImageSaveOptions(ImageFormat.Bmp);
Aspose.Svg.Converters.Converter.ConvertSVG(document, saveOptions, @"C:\Users\niels\Desktop\Workspace\sample.bmp");
}
sample.zip (100.3 KB)
@nielsbosma
We have logged a feature request as SVG-108 in our issue tracking system for the implementation of your requirements. We will further look into details of the ticket and let you know as soon as additional updates are available regarding feature availability. Please be patient and spare us some time.
We apologize for your inconvenience.
@nielsbosma
You can use option PageSetup.Sizing like below:
var saveOptions = new ImageSaveOptions(ImageFormat.Bmp);
saveOptions.PageSetup.Sizing = Aspose.Svg.Rendering.SizingType.FitContent;
OR:
var renderingOptions = new ImageRenderingOptions(ImageFormat.Bmp);
renderingOptions.PageSetup.Sizing = Aspose.Svg.Rendering.SizingType.FitContent;
We have attached sample project (SinglePageSvg) to demonstrate using this option for rendering and conversion to bmp.
Besides, you also can use other sizing features according to SizingType.
SinglePageSvg.zip (104.0 KB)
Thanks! I will test it out.