Learn how to Convert Word to EPUB Online
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.Imaging; | |
using System; | |
using System.IO; | |
using System.Text; | |
using System.Collections.Generic; | |
string templatesFolder = @"c:\Users\USER\Downloads\templates\"; | |
// Load the avif file in an instance of Image | |
using (var image = Aspose.Imaging.Image.Load(Path.Combine(templatesFolder, @"template.avif"))) |
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 com.aspose.slides.*; | |
import java.io.File; | |
public class main | |
{ | |
public static void main(String[] args) | |
{ | |
// The path to the documents directory. | |
String dataDir = "/Desktop/"; | |
// Create directory if it is not already present. |
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 com.aspose.html.HTMLDocument; | |
import com.aspose.html.saving.XpsSaveOptions; | |
import com.aspose.html.converters.Converter; | |
// Convert HTML to XPS in Java | |
public class main | |
{ | |
public static void main(String[] args) throws java.io.IOException | |
{ | |
String dataDir = "/Desktop/"; |
Learn how to Create Tornado Charts in Excel using Python.
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.TeX.IO; | |
using Aspose.TeX; | |
using Aspose.TeX.Presentation.Xps; | |
// Define the working directory. | |
string dataDir = "C:\\files\\"; | |
// Open a FileStream on the output path | |
using (Stream xpsStream = File.Open(Path.Combine(dataDir, "any-name.xps"), FileMode.Create)) | |
{ | |
// Create conversion options for Object LaTeX format upon Object TeX engine by calling the ConsoleAppOptions method. |
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
// Retrieve and print custom properties | |
var customProperties = msg.GetCustomProperties(); | |
foreach (var customProperty in customProperties) | |
{ | |
Console.WriteLine($"Tag: {customProperty.Tag}"); | |
Console.WriteLine($"Canonical Name: {customProperty.Descriptor.CanonicalName}"); | |
Console.WriteLine($"Data Type: {customProperty.Descriptor.DataType}"); | |
} |
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
import aspose | |
from aspose.page.xps import * | |
from aspose.page.xps.presentation.image import * | |
import os | |
# The path to the documents directory. | |
data_dir = "C:\\Desktop\\" | |
# Input file | |
input_file_name = data_dir + "input.xps" | |
#Outut file |
Learn how to Combine JPG Images to PDF in Python
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 PsDocument with the input PostScript file | |
document = PsDocument(data_dir + "inputForImage.ps") | |
#Initialize options object with necessary parameters. | |
options = ImageSaveOptions(aspose.page.drawing.imaging.ImageFormat.PNG) | |
# Save PS document as array of image bytes, one bytes array for one page. | |
images_bytes = document.save_as_image(options) |
NewerOlder