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 / Rotate-barcode-images.java
Last active April 1, 2025 12:44
Rotate Barcode Images in Java
public class main {
public static void main(String[] args) throws IOException {
// The path to the resource directory.
String dataDir = "/Users/Mustafa/Desktop/";
// Initialize an instance of the BarcodeGenerator class.
BarcodeGenerator barcodeGen = new BarcodeGenerator(EncodeTypes.CODE_39_STANDARD,"1234567");
// Invoke the setRotationAngle method to rotate clockwise for 180 degree (upside down).
barcodeGen.getParameters().setRotationAngle(180);
// Save the image by calling the save method.
barcodeGen.save(dataDir + "barcode-image-rotate.jpg");
@aspose-com-gists
aspose-com-gists / convert-powerpoint-to-html.js
Last active March 30, 2025 04:24
Document Conversion using Node.js
var pres = new aspose.slides.Presentation("Convert_HTML.pptx");
try {
var controller = new aspose.slides.ResponsiveHtmlController();
var htmlOptions = new aspose.slides.HtmlOptions();
htmlOptions.setHtmlFormatter(aspose.slides.HtmlFormatter.createCustomFormatter(controller));
pres.save("ConvertPresentationToResponsiveHTML_out.html", aspose.slides.SaveFormat.Html, htmlOptions);
} finally {
if (pres != null) {
pres.dispose();
@aspose-com-gists
aspose-com-gists / rotate-pdf-online.md
Created March 27, 2025 09:47
Rotate PDF Online for Free: The Best Tool & Methods
@aspose-com-gists
aspose-com-gists / draw-graphics.java
Created March 24, 2025 22:35
draw graphics in java
public class main {
public static void main(String[] args) throws java.io.IOException {
String dataDir = "/files/";
// Create an instance of Image class.
PsdImage image = new PsdImage(500, 500);
// Initialize an object of the Graphics class.
Graphics graphics = new Graphics(image);
// Clear the image surface with white color by calling the clear method.
graphics.clear(Color.getWhite());
// Initialize a Pen object with blue color.
@aspose-com-gists
aspose-com-gists / unlock-excel-sheets.md
Last active March 24, 2025 06:03
Unlock Excel Sheets with Excel Password Remover
@aspose-com-gists
aspose-com-gists / parse-pdf-in-python.md
Last active March 20, 2025 06:41
How to Parse PDFs in Python: A Step-by-Step Guide
@aspose-com-gists
aspose-com-gists / html-to-jpeg.java
Last active March 18, 2025 23:38
HTML to JPEG in Java
public class main
{
public static void main(String[] args)
{
// Define path for the working files.
String dir = "data/";
try {
// Invoke the HTMLDocument method to load the source HTML file.
com.aspose.html.HTMLDocument htmlDocument = new com.aspose.html.HTMLDocument(dir+"sample.html");
// Create an object of the ImageSaveOptions class with the JPEG image format.
@aspose-com-gists
aspose-com-gists / best-python-pdf-library.md
Last active March 18, 2025 11:50
Best Python PDF Library for Working with PDFs