You can find more details at: Convert SVG to Word DOCX/DOC Document in C#
Last active
March 16, 2022 08:19
-
-
Save aspose-com-gists/1474dbdb3fef6b095c859ae4e000420b to your computer and use it in GitHub Desktop.
Convert SVG to Word DOCX Programmatically in C# .NET
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Initialize an SVG document from the file | |
SVGDocument document = new SVGDocument("sample.svg"); | |
// Initialize DocSaveOptions to set up different properties | |
DocSaveOptions options = new DocSaveOptions(); | |
options.DocumentFormat = DocumentFormat.DOCX; | |
options.PageSetup.AnyPage = new Page(new Size(500, 500), new Margin(30, 10, 10, 10)); | |
// Convert SVG to DOCX | |
Converter.ConvertSVG(document, options, "sample_output.docx"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Initialize an SVG document from the file | |
SVGDocument document = new SVGDocument("sample.svg"); | |
// Convert SVG to Word DOCX | |
Converter.ConvertSVG(document, new DocSaveOptions(), "sample_output.docx"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment