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 input Word document | |
Aspose.Words.Document doc = new Aspose.Words.Document("input.docx"); | |
// Create an object of OoxmlSaveOptions class | |
Aspose.Words.Saving.OoxmlSaveOptions saveOptions = new Aspose.Words.Saving.OoxmlSaveOptions(Aspose.Words.SaveFormat.Docx); | |
// Use Super Fast compression level for faster and weaker compression | |
saveOptions.CompressionLevel = Aspose.Words.Saving.CompressionLevel.SuperFast; | |
// Save compressed Word DOCX document |
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
string inputFile ="file.fbx"; | |
using (Image image = Image.Load(inputFile)) | |
{ | |
// Initialize ObjOptions class object | |
ObjOptions options = new ObjOptions(); | |
// Export FBX to OBJ | |
string outPath = "output.obj"; | |
image.Save(outPath, 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
// Load PDF document | |
Document document = new Document("input.pdf"); | |
// Convert PDF to XML format | |
document.save("output.xml", com.aspose.pdf.SaveFormat.MobiXml); |
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 Excel file | |
Workbook wb = new Workbook("Workbook.xlsx"); | |
// Create JsonSaveOptions class object | |
Aspose.Cells.JsonSaveOptions options = new Aspose.Cells.JsonSaveOptions(); | |
options.SkipEmptyRows = true; | |
options.ExportAsString = true; | |
// Save as JSON | |
wb.Save("Excel_to_JSON.json", 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
// Load the input 3MF file | |
var scene = Aspose.ThreeD.Scene.FromFile("cylinder.3mf"); | |
// Create an object of StlSaveOptions class | |
Aspose.ThreeD.Formats.StlSaveOptions options = new Aspose.ThreeD.Formats.StlSaveOptions(); | |
// Convert 3MF to STL | |
scene.Save("3MFtoSTL.stl", 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
// Load the source DOCX file | |
com.groupdocs.conversion.Converter converter = new com.groupdocs.conversion.Converter("sample.docx"); | |
// Create an object of PresentationConvertOptions class | |
com.groupdocs.conversion.options.convert.PresentationConvertOptions options = new com.groupdocs.conversion.options.convert.PresentationConvertOptions(); | |
// Convert Word DOCX to PPTX Presentation | |
converter.convert("Presentation.pptx", 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 an HTML document from the file | |
var document = new com.aspose.html.HTMLDocument("spring.html"); | |
// Initialize PdfSaveOptions | |
var options = new com.aspose.html.saving.PdfSaveOptions(); | |
// Convert HTML to PDF | |
com.aspose.html.converters.Converter.convertHTML(document, options, "spring-output.pdf"); | |
// Load PDF document |
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
// Instantiate Document object | |
Document doc = new Document(); | |
// Bind source XML file | |
doc.BindXml(dataDir + "input.xml"); | |
// Convert XML to PDF | |
doc.Save(dataDir + "XMLToPDF.pdf"); |
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 PDF document | |
Document document = new Document("input.pdf"); | |
// Convert PDF to XML format | |
document.Save("output.xml", Aspose.Pdf.SaveFormat.MobiXml); |
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 Word document | |
Aspose.Words.Document doc = new Aspose.Words.Document("Words.docx"); | |
// Initialize an object of ImageSaveOptions class | |
Aspose.Words.Saving.ImageSaveOptions options = new Aspose.Words.Saving.ImageSaveOptions(Aspose.Words.SaveFormat.Jpeg); | |
// Set the "PageSet" to "0" to convert only the first page of a document. | |
options.PageSet = new Aspose.Words.Saving.PageSet(0); | |
// Set the image's brightness and contrast. |
NewerOlder