Java API för att exportera EPUB till SWF

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

Java API för att konvertera EPUB till SWF

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

Konverteringskrav

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

Öppna krypterad EPUB-fil via Java

Efter att ha konverterat EPUB till SWF 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 Swf format
presentation.save("output.swf", SaveFormat.Swf);    

Utforska EPUB konverteringsalternativ med Java

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