Java API för att exportera XSLFO till PPSM

Exportera XSLFO till PPSM 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 XSLFO till PPSM i valfri Java J2SE, J2EE, J2ME-applikation. För det första, genom att använda Aspose.PDF för Java , kan du exportera XSLFO till PPTX. Efter det, genom att använda Aspose.Slides för Java PowerPoint Processing API, kan du konvertera PPTX till PPSM.

Java API för att konvertera XSLFO till PPSM

  1. Öppna XSLFO-filen med klassen Document
  2. Konvertera XSLFO till PPTX genom att använda metoden save
  3. Ladda PPTX-dokument genom att använda klassen Presentation
  4. Spara dokumentet i PPSM-format med metoden save och ställ in Ppsm 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 XSLFO file with an instance of Document class
Document document = new Document("template.xslfo");
// save XSLFO 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 Ppsm format
presentation.save("output.ppsm", SaveFormat.Ppsm);   

Konverteringskrav

När du laddar XSLFO-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 XSLFO document
Document doc = new Document("input.xslfo", "Your@Password");
// save XSLFO as PPTX format 
document.save("PptxOutput.pptx", SaveFormat.Pptx); 

Öppna krypterad XSLFO-fil via Java

Efter att ha konverterat XSLFO till PPSM 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 Ppsm format
presentation.save("output.ppsm", SaveFormat.Ppsm);    

Utforska XSLFO konverteringsalternativ med Java

Konvertera XSLFOs till CSV (Comma Seperated Values)
Konvertera XSLFOs till DIF (Data Interchange Format)
Konvertera XSLFOs till EXCEL (Spreadsheet File Formats)
Konvertera XSLFOs till FODS (OpenDocument Flat XML Spreadsheet)
Konvertera XSLFOs till MD (Markdown Language)
Konvertera XSLFOs till ODS (OpenDocument Spreadsheet)
Konvertera XSLFOs till SXC (StarOffice Calc Spreadsheet)
Konvertera XSLFOs till TSV (Tab Seperated Values)
Konvertera XSLFOs till XLAM (Excel Macro-Enabled Add-In)
Konvertera XSLFOs till XLSB (Excel Binary Workbook)
Konvertera XSLFOs till XLSM (Macro-enabled Spreadsheet)
Konvertera XSLFOs till XLT (Excel 97 - 2003 Template)
Konvertera XSLFOs till XLTM (Excel Macro-Enabled Template)
Konvertera XSLFOs till APNG (Animated Portable Network Graphics)
Konvertera XSLFOs till DICOM (Digital Imaging and Communications in Medicine)
Konvertera XSLFOs till DXF (Autodesk Drawing Exchange Format)
Konvertera XSLFOs till EMZ (Windows Compressed Enhanced Metafile)
Konvertera XSLFOs till ODP (OpenDocument Presentation Format)
Konvertera XSLFOs till OTP (OpenDocument Standard Format)
Konvertera XSLFOs till POT (Microsoft PowerPoint Template Files)
Konvertera XSLFOs till POTM (Microsoft PowerPoint Template File)
Konvertera XSLFOs till POTX (Microsoft PowerPoint Template Presentation)
Konvertera XSLFOs till PPT (Microsoft PowerPoint 97-2003)
Konvertera XSLFOs till PPS (PowerPoint Slide Show)
Konvertera XSLFOs till PPSX (PowerPoint Slide Show)
Konvertera XSLFOs till PPT (Microsoft PowerPoint 97-2003)
Konvertera XSLFOs till PPTM (Macro-enabled Presentation File)
Konvertera XSLFOs till PSD (Photoshop Document)
Konvertera XSLFOs till SVGZ (Compressed Scalable Vector Graphics)
Konvertera XSLFOs till SWF (Shockwave Flash Movie)
Konvertera XSLFOs till TGA (Truevision Graphics Adapter)
Konvertera XSLFOs till WMF (Windows Metafile)
Konvertera XSLFOs till WMZ (Compressed Windows Metafile)