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 / odp-to-pptx.cs
Created July 7, 2025 20:44
Convert ODP to PPTX
using Aspose.Slides;
using Aspose.Slides.Export;
namespace CSharp.Presentations.Conversion
{
class ODPToPPTX
{
static void Main()
{
// Define the path to the documents directory.
@aspose-com-gists
aspose-com-gists / create-dicom-file-in-csharp.md
Created July 7, 2025 17:47
Create DICOM File in C# with Aspose.Medical for .NET
package com.example;
import com.aspose.slides.*;
import java.awt.*;
public class main {
public static void main(String[] args) {
// Create an object of the Presentation class.
Presentation pres = new Presentation();
// Get the first slide by calling the get_Item method.
ISlide slide = pres.getSlides().get_Item(0);
@aspose-com-gists
aspose-com-gists / datamatrix-barcode-generator.cs
Created July 1, 2025 10:44
Develop a Datamatrix Barcode Generator in C#
using Aspose.BarCode.Generation;
class Program
{
static void Main()
{
// Define the codetext you want to encode.
string codetext = "ASPOSE-DATAMATRIX-2025";
// Set the path for output file.
string outputPath = "/Users/Mustafa/Desktop/datamatrix_embedded_text.png";
@aspose-com-gists
aspose-com-gists / delete-pdf-pages-in-java.md
Created July 1, 2025 06:42
Delete PDF Pages in Java using Aspose.PDF for Java
@aspose-com-gists
aspose-com-gists / pdf417-barcode.java
Last active June 30, 2025 17:15
Generate A Pdf417 Barcode in Java
package com.example;
import com.aspose.barcode.generation.BarCodeImageFormat;
import com.aspose.barcode.generation.BarcodeGenerator;
import com.aspose.barcode.generation.EncodeTypes;
import com.aspose.barcode.generation.Pdf417ErrorLevel;
import com.aspose.barcode.generation.Pdf417Parameters;
public class main {
public static void main(String[] args) {
try {
@aspose-com-gists
aspose-com-gists / dgn-to-psd.py
Last active June 26, 2025 12:00
DGN to PSD in Python
import aspose.cad as cad
# Define the path for the working files.
inputDir = "sample.dgn"
outputDir = "result.psd"
# Invoke the load method to load the source DGN file.
image = cad.Image.load(inputDir)
# Create an object of the CadRasterizationOptions class.
cadRasterizationOptions = cad.imageoptions.CadRasterizationOptions()
#Define the image height, width and Zoom setting.
cadRasterizationOptions.page_height = 500.5
@aspose-com-gists
aspose-com-gists / dgn-to-pdf.py
Created June 25, 2025 12:12
Convert DGN File to PDF in Python
import aspose.cad as cad
inputDir = "sample.dgn"
outputDir = "result.pdf"
# The Image.load method will load the source DGN file.
image = cad.Image.load(inputDir)
# Create an object of the CadRasterizationOptions class.
cadRasterizationOptions = cad.imageoptions.CadRasterizationOptions()
# Set the image height, width and Zoom setting.
cadRasterizationOptions.page_height = 500.5