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 / obj-to-u3d.cs
Created August 12, 2025 10:17
Build an OBJ to U3D Converter in C#
using Aspose.ThreeD;
using Aspose.ThreeD.Formats;
namespace AsposeThreeD
{
class Graphics
{
// Convert OBJ to PLY in C#
static void Main(string[] args)
{
// Define the directory path.
@aspose-com-gists
aspose-com-gists / 3mf-to-stl.cs
Created August 11, 2025 14:30
Convert 3MF File to STL in C#
using Aspose.ThreeD;
using Aspose.ThreeD.Formats;
namespace AsposeThreeD
{
class Graphics
{
// Convert 3MF to STL in C#
static void Main(string[] args)
{
// Set the directory path.
@aspose-com-gists
aspose-com-gists / shrink-pdf-size.md
Created August 8, 2025 10:46
Shrink a PDF Size Online in Seconds or Build Your Own Tool
@aspose-com-gists
aspose-com-gists / crop-psd-layers.py
Last active August 7, 2025 11:36
Crop, Resize PSD Layers in Python
# Import required classes from Aspose.PSD
import aspose.psd as psd
from aspose.psd import Image, ResizeType, Color, Rectangle
from aspose.psd.fileformats.png import PngColorType
from aspose.psd.fileformats.psd import PsdImage
from aspose.psd.imageloadoptions import PsdLoadOptions
from aspose.psd.imageoptions import PngOptions
from aspose.pycore import cast
# Define input PSD file and output PNG file paths.
@aspose-com-gists
aspose-com-gists / resize-pdf-pages.md
Last active August 7, 2025 04:53
Shrink PDF Size – Try Online & Build with C#, Java, Python
@aspose-com-gists
aspose-com-gists / photoshop-layers.py
Created August 6, 2025 13:36
Working with Photoshop Layers in Python
# Import necessary modules from Aspose.PSD for image processing
import aspose.psd as psd
from aspose.psd import Color
from aspose.psd.fileformats.core.blending import BlendMode
from aspose.psd.imageoptions import PngOptions
from aspose.pycore import cast
from aspose.psd.fileformats.png import PngColorType
from aspose.psd.fileformats.psd import PsdImage
# Define file paths
@aspose-com-gists
aspose-com-gists / create-a-psb-file-in-python.py
Created August 5, 2025 12:12
Create a PSB File in Python
# Import required modules from Aspose.PSD
import aspose.psd as psd
from aspose.psd import Graphics, Pen, Color, Rectangle
from aspose.psd.brushes import LinearGradientBrush
from aspose.psd.fileformats.psd import PsdImage
# Define the output file name
outputFile = "CreateFileFromScratchExample.psb"
# Create a new PSD image with 500x500 dimensions.
@aspose-com-gists
aspose-com-gists / extract-jpg-text-using-python.md
Last active August 5, 2025 07:20
Extract JPG Text Using Python and Aspose.OCR
@aspose-com-gists
aspose-com-gists / image-text-to-text-converter.md
Created August 2, 2025 04:54
Convert Image Text to Editable Text Using Aspose.OCR
@aspose-com-gists
aspose-com-gists / svg-to-emf.cs
Last active July 31, 2025 19:28
Convert SVG to EMF
using Aspose.Imaging;
using Aspose.Imaging.ImageOptions;
namespace CSharp.ModifyingAndConvertingImages.CDR
{
class CdrToPngExample
{
static void Main()
{
// The path to the documents directory.