Skip to content

Instantly share code, notes, and snippets.

View aspose-com-gists's full-sized avatar

Aspose.com Gists aspose-com-gists

View GitHub Profile
@aspose-com-gists
aspose-com-gists / photo-to-word-in-python.md
Last active September 21, 2024 05:11
Convert Photo to Word in Python
@aspose-com-gists
aspose-com-gists / Convert-Markdown-to-Image.java
Last active September 20, 2024 10:37
Convert Markdown to Image in Java Programmatically
public class main {
// Convert Markdown to Image in Java Programmatically
public static void main(String[] args) {
String dataDir = "/Desktop/";
// Create an Object of the HTMLDocument class.
// Invoke the Converter.convertMarkdown method to convert markdown to an HTML document.
HTMLDocument inputDocument = Converter.convertMarkdown(dataDir+"input.md");
try {
// Instantiate an instance of the ImageSaveOptions class with the JPEG image format.
// Now, pass the object of the ImageSaveOptions class to the Converter.convertHTML method and convert HTML document to JPEG in Java programmatically.
@aspose-com-gists
aspose-com-gists / Convert-Markdown-to-PNG.java
Last active September 17, 2024 20:42
Convert Markdown to PNG in Java using a Markdown Processor
package com.example;
import com.aspose.html.converters.Converter;
import com.aspose.html.rendering.image.ImageFormat;
import com.aspose.html.saving.ImageSaveOptions;
import com.aspose.html.HTMLDocument;
public class main {
// Convert MD to PNG in Java
public static void main(String[] args) {
String dir = "/Desktop/";
@aspose-com-gists
aspose-com-gists / convert-tex-to-docm.cs
Last active September 17, 2024 05:26
TEX Files Conversion using .NET
Document document = new Document("template.tex");
document.Save("DocOutput.doc", SaveFormat.Doc);
var outputDocument = new Aspose.Words.Document("DocOutput.doc");
outputDocument.Save("output.docm", SaveFormat.Docm);
@aspose-com-gists
aspose-com-gists / convert-xps-to-docm.cs
Last active September 20, 2024 12:15
XPS Files Conversion using .NET
Document document = new Document("template.xps");
document.Save("DocOutput.doc", SaveFormat.Doc);
var outputDocument = new Aspose.Words.Document("DocOutput.doc");
outputDocument.Save("output.docm", SaveFormat.Docm);
@aspose-com-gists
aspose-com-gists / convert-svg-to-docm.cs
Created September 17, 2024 04:28
SVG Conversion using .NET
Document document = new Document("template.svg");
document.Save("DocOutput.doc", SaveFormat.Doc);
var outputDocument = new Aspose.Words.Document("DocOutput.doc");
outputDocument.Save("output.docm", SaveFormat.Docm);
@aspose-com-gists
aspose-com-gists / convert-ps-to-docm.cs
Last active September 17, 2024 04:19
PS Files Conversion using .NET
Document document = new Document("template.ps");
document.Save("DocOutput.doc", SaveFormat.Doc);
var outputDocument = new Aspose.Words.Document("DocOutput.doc");
outputDocument.Save("output.docm", SaveFormat.Docm);
@aspose-com-gists
aspose-com-gists / convert-pdf-to-docm.cs
Last active September 17, 2024 13:20
PDF Files Conversion using .NET
Document document = new Document("template.pdf");
document.Save("DocOutput.doc", SaveFormat.Doc);
var outputDocument = new Aspose.Words.Document("DocOutput.doc");
outputDocument.Save("output.docm", SaveFormat.Docm);
@aspose-com-gists
aspose-com-gists / convert-mhtml-to-docm.cs
Last active September 20, 2024 12:26
HTML Document Conversion using .NET
Document document = new Document("template.mhtml");
document.Save("DocOutput.doc", SaveFormat.Doc);
var outputDocument = new Aspose.Words.Document("DocOutput.doc");
outputDocument.Save("output.docm", SaveFormat.Docm);