Read the complete article on how to convert an SVG to PNG in Python: https://blog.aspose.com/2022/07/27/convert-svg-to-png-in-python/
Learn how to split a Word document into multiple documents in Python: https://blog.aspose.com/2021/11/18/split-a-word-document-in-python/
Learn how to [Convert Publisher to Excel(https://blog.aspose.com/pub/convert-publisher-to-excel/)
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
// Load the input DWG file | |
Image image = Image.Load("sample.dwg"); | |
// Initialize SvgOptions class object | |
ImageOptions.SvgOptions options = new ImageOptions.SvgOptions(); | |
// Set SVG color mode | |
options.ColorType = SvgColorMode.Grayscale; | |
options.TextAsShapes = true; |
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
package com.example; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import com.aspose.eps.PsDocument; | |
import com.aspose.eps.device.ImageDevice; | |
import com.aspose.eps.device.ImageSaveOptions; | |
public class Main { | |
// High Code Java API to Convert PostScript to GIF |
Learn how to Change Text Style in OneNote using Java.
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
from aspose.page.xps import * | |
from aspose.page.xps.presentation.pdf import * | |
data_dir = "./working-files" | |
# Initialize streams for input and output files. | |
with open(data_dir + "XPStoPDF_out.pdf", "wb") as pdf_stream: | |
with open(data_dir + "input.xps", "rb") as xps_stream: | |
# Load the XPS document from the stream by creating an object of the XpsDocument class. | |
document = XpsDocument(xps_stream, XpsLoadOptions()) | |
# Create an instance of the PdfSaveOptions class. |
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
from aspose.page.eps import * | |
from aspose.page.eps.device import * | |
# Define the working directory. | |
dir = "./files" | |
# Initialize streams for input and output files. | |
pdf_stream = open(dir + "outputPDF_out.pdf", "wb") | |
ps_stream = open(dir + "input.ps", "rb",) | |
# Instantiate an instance of the PsDocument class and load the source PS file. | |
document = PsDocument(ps_stream) |
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
var aspose = aspose || {}; | |
// Import aspose.slides.via.java into your working project. | |
aspose.slides = require("aspose.slides.via.java"); | |
// Create an object of the Presentation class and load the source PPT/PPTX file. | |
var pres = new aspose.slides.Presentation("/first.pptx"); | |
try | |
{ | |
// Convert PPT to GIF and save the file by calling the save method. | |
pres.save("/PPT-to-gif.gif",aspose.slides.SaveFormat.Gif); | |
console.log("PPT to animated GIF conversion done successfully.") |
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
using Aspose.Html.Rendering; | |
using Aspose.Html.Rendering.Image; | |
namespace Aspose.Html | |
{ | |
public class SVGtoPNG | |
{ | |
static void Main(string[] args) | |
{ | |
// Create an instance of the SVGDocument class to load the source SVG file. |
NewerOlder