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
com.aspose.slides.Presentation pres1 = new com.aspose.slides.Presentation("pres1.pptx"); | |
try { | |
com.aspose.slides.Presentation pres2 = new com.aspose.slides.Presentation("pres2.pptx"); | |
try { | |
for(com.aspose.slides.ISlide slide : pres2.getSlides()) | |
{ | |
pres1.getSlides().addClone(slide); | |
} | |
} finally { | |
if (pres2 != null) pres2.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
com.aspose.slides.Presentation presentation = new com.aspose.slides.Presentation("pres.pptx"); | |
try { | |
presentation.getProtectionManager().encrypt("123123"); | |
presentation.save("encrypted-pres.pptx", com.aspose.slides.SaveFormat.Pptx); | |
} finally { | |
if (presentation != null) presentation.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
// Open the Word document | |
Aspose.Words.Document wordDoc = new Aspose.Words.Document("BarcodeDocument.docx"); | |
// Process all word pages | |
for (int i = 0; i < wordDoc.PageCount; ++i) | |
{ | |
// Create options to save | |
Aspose.Words.Saving.ImageSaveOptions wordSaveOptions = new Aspose.Words.Saving.ImageSaveOptions(Aspose.Words.SaveFormat.Png); | |
// Set required page |
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
// Load the input MPP file | |
Aspose.Tasks.Project project = new Aspose.Tasks.Project("New Project.mpp"); | |
// Create CsvOptions class object | |
CsvOptions options = new CsvOptions(); | |
// To change what columns will be exported the DataCategory property can be used | |
// changing the data category from DataCategory.Tasks to DataCategory.Resources | |
options.DataCategory = DataCategory.Resources; |
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
// Load the input MPP file | |
Aspose.Tasks.Project project = new Aspose.Tasks.Project("New Project.mpp"); | |
// Initiate XlsxOptions class object | |
Aspose.Tasks.Saving.XlsxOptions options = new Aspose.Tasks.Saving.XlsxOptions(); | |
options.PageSize = Aspose.Tasks.Visualization.PageSize.A4; | |
// Convert MS Project MPP to Excel XLSX | |
project.Save("MS Project.xlsx", options); |
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
// Initialize barcode reader | |
BarCodeReader reader = new BarCodeReader(dataDir + "Scan-QR-java.png"); | |
// Scan the QR Code | |
for (BarCodeResult result : reader.readBarCodes()) { | |
System.out.println("CodeText: " + result.getCodeText()); | |
} |
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
// Load a diagram from a VSDX file | |
com.aspose.diagram.Diagram diagram = new com.aspose.diagram.Diagram("input.vsdx"); | |
// Save Visio VSDX as HTML | |
diagram.save("ExportToHTML.html", com.aspose.diagram.SaveFileFormat.HTML); |
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
// Load your source workbook | |
Workbook workbook = new Workbook("input.xlsx"); | |
// Save as FODS file | |
workbook.Save("output.fods"); |
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
// Load the input file | |
String srcFile = dataDir + "conic.dxf"; | |
com.aspose.cad.Image image = com.aspose.cad.Image.load(srcFile); | |
// Create an instance of CadRasterizationOptions | |
com.aspose.cad.imageoptions.CadRasterizationOptions rasterizationOptions = new com.aspose.cad.imageoptions.CadRasterizationOptions(); | |
// Set page width & height | |
rasterizationOptions.setPageWidth(1200); | |
rasterizationOptions.setPageHeight(1200); |
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
// Load source PDF document | |
var filePath = "input.pdf"; | |
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(filePath); | |
foreach (var page in pdfDocument.Pages) | |
{ | |
Aspose.Pdf.Text.TableAbsorber absorber = new Aspose.Pdf.Text.TableAbsorber(); | |
absorber.Visit(page); | |
foreach (AbsorbedTable table in absorber.TableList) | |
{ | |
Console.WriteLine("Table"); |
NewerOlder