Skip to content

Instantly share code, notes, and snippets.

Avatar

Aspose.com Gists aspose-com-gists

View GitHub Profile
@aspose-com-gists
aspose-com-gists / VSDM to PDF advanced.java
Created Jun 30, 2022
Convert VSDM Visio Diagram File to PDF in Java | VSDM Converter
View VSDM to PDF advanced.java
// Load input VSDM file
Diagram diagram = new Diagram("input.vsdm");
// Set page size for the output PDF
PageSize size = new PageSize(PaperSizeFormat.A_4);
// Set different options for rendering VSDM diagram to PDF
PdfSaveOptions options = new PdfSaveOptions();
options.setPageSize(size);
options.setExportComments(true);
@aspose-com-gists
aspose-com-gists / VSDM to PDF advanced.cs
Created Jun 30, 2022
Convert VSDM Visio Diagram File to PDF in C# .NET | VSDM Converter
View VSDM to PDF advanced.cs
// Load input VSDM file
Diagram diagram = new Diagram("input.vsdm");
// Set page size for the output PDF
PageSize size = new PageSize(PaperSizeFormat.A4);
// Set different options for rendering VSDM diagram to PDF
PdfSaveOptions options = new PdfSaveOptions();
options.PageSize = size;
options.IsExportComments = true;
@aspose-com-gists
aspose-com-gists / Convert-OneNote-to-PDF-Java.md
Last active Jun 28, 2022
Convert OneNote to PDF using Java | OneNote to PDF in Java
View Convert-OneNote-to-PDF-Java.md

Learn how to convert a OneNote document to a PDF using Java : http://blog.aspose.com/2022/06/28/convert-onenote-to-pdf-using-java/

The following topics are covered in this article:

  1. OneNote to PDF Converter Java API
  2. Convert Existing OneNote Document to PDF
  3. Create OneNote Document and Convert it to PDF
  4. Convert Range of OneNote Pages to PDF
  5. Convert OneNote to PDF with Image Compression
View bmp-rle4-compressed.cs
using Aspose.Imaging;
using Aspose.Imaging.FileFormats.Bmp;
using Aspose.Imaging.FileFormats.Png;
using Aspose.Imaging.FileFormats.Svg;
using Aspose.Imaging.ImageOptions;
using System;
using System.IO;
string templatesFolder = @"c:\Users\USER\Downloads\templates\";
string dataDir = templatesFolder;
View convert-other-formats-to-svg.cs
using Aspose.Imaging;
using Aspose.Imaging.FileFormats.Png;
using Aspose.Imaging.FileFormats.Svg;
using Aspose.Imaging.ImageOptions;
using System;
using System.IO;
string templatesFolder = @"c:\Users\USER\Downloads\templates\";
string dataDir = templatesFolder;
View apply-filter-method-in-png-image.cs
using Aspose.Imaging;
using Aspose.Imaging.FileFormats.Png;
using Aspose.Imaging.ImageOptions;
using System.IO;
string templatesFolder = @"c:\Users\USER\Downloads\templates\";
string dataDir = templatesFolder;
using (PngImage png = (PngImage)Image.Load(dataDir + "template.png"))
{
View convert-emf-to-wmf.cs
using Aspose.Imaging;
using Aspose.Imaging.Brushes;
using Aspose.Imaging.FileFormats.Bmp;
using Aspose.Imaging.FileFormats.Core.VectorPaths;
using Aspose.Imaging.FileFormats.Emf;
using Aspose.Imaging.FileFormats.Emf.Emf.Consts;
using Aspose.Imaging.FileFormats.Emf.Graphics;
using Aspose.Imaging.FileFormats.Gif;
using Aspose.Imaging.FileFormats.Gif.Blocks;
using Aspose.Imaging.FileFormats.Tiff;
@aspose-com-gists
aspose-com-gists / Convert USDZ to HTML.cs
Created Jun 24, 2022
Convert USDZ to HTML Programmatically in C# | USDZ to Webpage Converter
View Convert USDZ to HTML.cs
// Load the input USDZ file
Scene scene = new Scene();
scene.Open("Sample.usdz");
// Create an instance of Html5SaveOptions class
Html5SaveOptions options = new Html5SaveOptions();
// Convert USDZ to HTML file
scene.Save("output.html", options);
@aspose-com-gists
aspose-com-gists / Convert USDZ to HTML.java
Created Jun 24, 2022
Convert USDZ to HTML file programmatically in Java. Export USDZ file to HTML webpage in Java
View Convert USDZ to HTML.java
// Load the input USDZ file
Scene scene = new Scene();
scene.open("Test.usdz");
// Create an instance of Html5SaveOptions class
Html5SaveOptions options = new Html5SaveOptions();
// Convert USDZ to HTML file
scene.save("output.html", options);
@aspose-com-gists
aspose-com-gists / Convert-TXT-to-XML-in-Python.md
Created Jun 23, 2022
Convert TXT to XML in Python | Python Text to XML Converter
View Convert-TXT-to-XML-in-Python.md