Learn how to Rotate PDF Online for Free: The Best Tool & Methods
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Explore the Best Python PDF Library for Working with PDFs
NewerOlder