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-cmx-to-pdf.java
Last active June 3, 2025 12:31
Convert CXM to PDF in Java
package com.example;
import com.aspose.imaging.Color;
import com.aspose.imaging.Image;
import com.aspose.imaging.SmoothingMode;
import com.aspose.imaging.TextRenderingHint;
import com.aspose.imaging.fileformats.pdf.PdfDocumentInfo;
import com.aspose.imaging.imageoptions.PdfOptions;
import com.aspose.imaging.imageoptions.VectorRasterizationOptions;
public class main
@aspose-com-gists
aspose-com-gists / crop-in-pdf-file.md
Created June 2, 2025 13:04
Crop in PDF File – Try Online & Build with C#, Java, Python
@aspose-com-gists
aspose-com-gists / merge-jpg-images.cs
Created June 2, 2025 10:42
Merge JPG Images in C#
using Aspose.Imaging;
using Aspose.Imaging.FileFormats.Jpeg;
using Aspose.Imaging.ImageOptions;
using Aspose.Imaging.Sources;
// Define the folder where the images are located
string templatesFolder = "Desktop";
// Set the base directory for input and output images
string dataDir = templatesFolder;
// Define the paths of the images to be stitched together.
@aspose-com-gists
aspose-com-gists / change-pdf-page-size-in-csharp.md
Created May 30, 2025 10:01
Change PDF Page Size in C# Using Aspose.PDF for .NET
@aspose-com-gists
aspose-com-gists / png-to-pdf.java
Created May 29, 2025 11:28
Convert PNG to PDF
package com.example;
import com.aspose.imaging.Image;
import com.aspose.imaging.fileformats.pdf.PdfDocumentInfo;
import com.aspose.imaging.fileformats.png.PngImage;
import com.aspose.imaging.imageoptions.PdfOptions;
public class main
{
public static void main(String[] args)
{
@aspose-com-gists
aspose-com-gists / resize-pdf-document-in-python.md
Last active May 29, 2025 10:19
Resize PDF Document in Python - Change PDF Page Size in Python