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 / convert-rar-to-zip.java
Created May 17, 2024 16:16
Convert RAR to ZIP in Java
package com.example;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import com.aspose.zip.Archive;
import com.aspose.zip.RarArchive;
import com.aspose.zip.RarArchiveEntry;
import com.aspose.zip.exceptions.IOException;
public class Main {
// Convert RAR to ZIP in Java
@aspose-com-gists
aspose-com-gists / Convert-Chart-to-Image.java
Created May 16, 2024 09:39
Convert Chart to Image in Java
Convert Chart to Image in Javapackage com.example;
import com.aspose.slides.*;
// Convert Chart to Image in Java - Extract Charts From PPTX
public class GetChartImage
{
public static void main(String[] args)
{
// The path to the source PowerPoint file directory.
String dataDir = "/files/";
// Initialize an instance of the Presentation class with a source PPTX/PPT file.
@aspose-com-gists
aspose-com-gists / Convert-TIFF-to-PSD.java
Created May 9, 2024 09:32
Convert TIFF to PSD in Java
package com.example;
import com.aspose.imaging.Image;
import com.aspose.imaging.fileformats.psd.ColorModes;
import com.aspose.imaging.fileformats.psd.CompressionMethod;
import com.aspose.imaging.imageoptions.PsdOptions;
// Convert TIFF to PSD in Java - Image Manipulation Library
public class Main
{
public static void main(String... args)
{
@aspose-com-gists
aspose-com-gists / convert-ply-to-usd.cs
Created May 8, 2024 15:33
Convert PLY to USD in C#
using Aspose.ThreeD;
using Aspose.ThreeD.Formats;
namespace AsposeThreeD
{
class Graphics
{
// Convert PLY to USDZ/USD in C#
static void Main(string[] args)
{
// Define the directory path.
@aspose-com-gists
aspose-com-gists / convert-dwg-to-pdf.cs
Created May 7, 2024 16:15
Convert DWG to PDF in C#
using Aspose.CAD;
using Aspose.CAD.ImageOptions;
namespace AsposeThreeD
{
class DWGtoPDF {
// Convert DWG to PDF in C#
static void Main(string[] args) {
string sourceFilePath = "/sample.dwg";
// Invoke the Load method of the Image class to load the source DWG file.