Java API för att exportera SVG till PPTM

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

Java API för att konvertera SVG till PPTM

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

Konverteringskrav

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

Öppna krypterad SVG-fil via Java

Efter att ha konverterat SVG till PPTM 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 Pptm format
presentation.save("output.pptm", SaveFormat.Pptm);    

Utforska SVG konverteringsalternativ med Java

Konvertera SVGs till DOCM (Microsoft Word 2007 Marco File)
Konvertera SVGs till DOT (Microsoft Word Template Files)
Konvertera SVGs till DOTM (Microsoft Word 2007+ Template File)
Konvertera SVGs till DOTX (Microsoft Word Template File)
Konvertera SVGs till FLATOPC (Microsoft Word 2003 WordprocessingML)
Konvertera SVGs till GIF (Graphical Interchange Format)
Konvertera SVGs till MHTML (Web Page Archive Format)
Konvertera SVGs till ODT (OpenDocument Text File Format)
Konvertera SVGs till OTT (OpenDocument Standard Format)
Konvertera SVGs till PCL (Printer Command Language Document)
Konvertera SVGs till PS (PostScript File)
Konvertera SVGs till RTF (Rich Text Format)
Konvertera SVGs till WORDML (Microsoft Word 2003 WordprocessingML)
Konvertera SVGs till CSV (Comma Seperated Values)
Konvertera SVGs till DIF (Data Interchange Format)
Konvertera SVGs till EXCEL (Spreadsheet File Formats)
Konvertera SVGs till FODS (OpenDocument Flat XML Spreadsheet)
Konvertera SVGs till MD (Markdown Language)
Konvertera SVGs till ODS (OpenDocument Spreadsheet)
Konvertera SVGs till SXC (StarOffice Calc Spreadsheet)
Konvertera SVGs till TSV (Tab Seperated Values)
Konvertera SVGs till TXT (Text Document)
Konvertera SVGs till XLAM (Excel Macro-Enabled Add-In)
Konvertera SVGs till XLSB (Excel Binary Workbook)
Konvertera SVGs till XLSM (Macro-enabled Spreadsheet)
Konvertera SVGs till XLT (Excel 97 - 2003 Template)
Konvertera SVGs till XLTM (Excel Macro-Enabled Template)
Konvertera SVGs till XLTX (Excel Template)
Konvertera SVGs till ODP (OpenDocument Presentation Format)
Konvertera SVGs till OTP (OpenDocument Standard Format)
Konvertera SVGs till POT (Microsoft PowerPoint Template Files)
Konvertera SVGs till POTM (Microsoft PowerPoint Template File)
Konvertera SVGs till POTX (Microsoft PowerPoint Template Presentation)
Konvertera SVGs till PPS (PowerPoint Slide Show)
Konvertera SVGs till PPSM (Macro-enabled Slide Show)
Konvertera SVGs till PPSX (PowerPoint Slide Show)
Konvertera SVGs till PPT (Microsoft PowerPoint 97-2003)