The current SVG output (Apose.Words) seems fixed to the paper size and does not seem to resize when the window changes. To get around this (I want small versions of the original SVG images) I have to add the following to the SVG document (it seems like a hack)
preserveAspectRatio=“xMinYMin meet” viewBox="0 0 794 1123"
Is there an easier way of achieving an SVG that scales to the parent window?
The code I use
List<byte> singlePreviewImages = new LinkedList<byte>();
ByteArrayInputStream bais = new ByteArrayInputStream(entity.getData().getBytes());
Document doc = new Document(bais);
com.aspose.words.SvgSaveOptions svgSaveOptions = new com.aspose.words.SvgSaveOptions();
for (int i = 0; i <= doc.getPageCount() - 1; i++)
ByteArrayOutputStream baos = new ByteArrayOutputStream();
Thanks for your inquiry. I have logged a new feature request in our bug tracking system as WORDSNET-7649 to provide options to generate a scalable SVG. Your request has been linked to this feature request and you will be notified as soon as it is available. Sorry for the inconvenience.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.