Java API för att exportera MD till POT

Exportera MD till POT via lokalt Java API utan att använda Microsoft® PowerPoint eller Adobe® Acrobat Reader

 

Genom att använda Aspose.Total for Java kan du enkelt konvertera MD till POT i valfri Java J2SE, J2EE, J2ME-applikation. För det första, genom att använda Aspose.PDF för Java , kan du exportera MD till PPTX. Efter det, genom att använda Aspose.Slides för Java PowerPoint Processing API, kan du konvertera PPTX till POT.

Java API för att konvertera MD till POT

  1. Öppna MD-filen med klassen Document
  2. Konvertera MD till PPTX genom att använda metoden save
  3. Ladda PPTX-dokument genom att använda klassen Presentation
  4. Spara dokumentet i POT-format med metoden save och ställ in Pot som SaveFormat

Konverteringskrav

Du kan enkelt använda Aspose.Total för Java direkt från ett Maven baserat projekt och inkludera Aspose.PDF för Java och Aspose.Slides för Java i din pom.xml.

Alternativt kan du få en ZIP-fil från downloads .

// load MD file with an instance of Document class
Document document = new Document("template.md");
// save MD as PPTX format 
document.save("PptxOutput.pptx", SaveFormat.Pptx); 
// instantiate a Presentation object that represents a PPTX file
Presentation presentation = new Presentation("PptxOutput.pptx");
// save the presentation as Pot format
presentation.save("output.pot", SaveFormat.Pot);   

Konverteringskrav

När du laddar MD-filformatet kan ditt dokument vara lösenordsskyddat. Aspose.PDF för Java låter dig också öppna krypterade dokument. För att öppna den krypterade filen kan du initiera en ny instans av Document klass och skicka filnamn och lösenord som argument.

// open MD document
Document doc = new Document("input.md", "Your@Password");
// save MD as PPTX format 
document.save("PptxOutput.pptx", SaveFormat.Pptx); 

Öppna krypterad MD-fil via Java

Efter att ha konverterat MD till POT kan du också lägga till fördefinierad vytyp för din presentation. Aspose.Slides for Java ger en möjlighet att ställa in vytypen för den genererade presentationen när den öppnas i PowerPoint via ViewProperties . Egenskapen setLastView används för att ställa in vytypen genom att använda ViewType enumerator.

// instantiate a Presentation object that represents a PPTX file
Presentation presentation = new Presentation("PptxOutput.pptx");
// set view type
presentation.getViewProperties().setLastView((byte) ViewType.SlideMasterView);
// save the presentation as Pot format
presentation.save("output.pot", SaveFormat.Pot);    

Utforska MD konverteringsalternativ med Java

Konvertera MDs till DOCM (Microsoft Word 2007 Marco File)
Konvertera MDs till DOT (Microsoft Word Template Files)
Konvertera MDs till DOTM (Microsoft Word 2007+ Template File)
Konvertera MDs till DOTX (Microsoft Word Template File)
Konvertera MDs till FLATOPC (Microsoft Word 2003 WordprocessingML)
Konvertera MDs till GIF (Graphical Interchange Format)
Konvertera MDs till MHTML (Web Page Archive Format)
Konvertera MDs till ODT (OpenDocument Text File Format)
Konvertera MDs till OTT (OpenDocument Standard Format)
Konvertera MDs till PCL (Printer Command Language Document)
Konvertera MDs till PS (PostScript File)
Konvertera MDs till RTF (Rich Text Format)
Konvertera MDs till WORDML (Microsoft Word 2003 WordprocessingML)
Konvertera MDs till CSV (Comma Seperated Values)
Konvertera MDs till DIF (Data Interchange Format)
Konvertera MDs till EXCEL (Spreadsheet File Formats)
Konvertera MDs till FODS (OpenDocument Flat XML Spreadsheet)
Konvertera MDs till ODS (OpenDocument Spreadsheet)
Konvertera MDs till SXC (StarOffice Calc Spreadsheet)
Konvertera MDs till TSV (Tab Seperated Values)
Konvertera MDs till TXT (Text Document)
Konvertera MDs till XLAM (Excel Macro-Enabled Add-In)
Konvertera MDs till XLSB (Excel Binary Workbook)
Konvertera MDs till XLSM (Macro-enabled Spreadsheet)
Konvertera MDs till XLT (Excel 97 - 2003 Template)
Konvertera MDs till XLTM (Excel Macro-Enabled Template)
Konvertera MDs till XLTX (Excel Template)
Konvertera MDs till APNG (Animated Portable Network Graphics)
Konvertera MDs till DICOM (Digital Imaging and Communications in Medicine)
Konvertera MDs till DXF (Autodesk Drawing Exchange Format)
Konvertera MDs till EMZ (Windows Compressed Enhanced Metafile)
Konvertera MDs till JPEG2000 (J2K Image Format)
Konvertera MDs till JPEG2000 (J2K Image Format)
Konvertera MDs till ODP (OpenDocument Presentation Format)
Konvertera MDs till OTP (OpenDocument Standard Format)
Konvertera MDs till POTM (Microsoft PowerPoint Template File)
Konvertera MDs till POTX (Microsoft PowerPoint Template Presentation)