fit_to_view_port property
SvgSaveOptions.fit_to_view_port property
Specifies if the output SVG should fill the available viewport area (browser window or container).
When set to True
width and height of output SVG are set to 100%.
The default value is False
.
@property
def fit_to_view_port(self) -> bool:
...
@fit_to_view_port.setter
def fit_to_view_port(self, value: bool):
...
Examples
Shows how to mimic the properties of images when converting a .docx document to .svg.
doc = aw.Document(file_name=MY_DIR + 'Document.docx')
# Configure the SvgSaveOptions object to save with no page borders or selectable text.
options = aw.saving.SvgSaveOptions()
options.fit_to_view_port = True
options.show_page_border = False
options.text_output_mode = aw.saving.SvgTextOutputMode.USE_PLACED_GLYPHS
doc.save(file_name=ARTIFACTS_DIR + 'SvgSaveOptions.SaveLikeImage.svg', save_options=options)
See Also
- module aspose.words.saving
- class SvgSaveOptions