Rendera PS till XAMLFLOW på Android via Java

Konvertera PS till XAMLFLOW i mobilappar utan att installera någon programvara

 

Du kan integrera konverteringsfunktionen PS till XAMLFLOW i dina mobilappar genom att använda två API:er av paketet Aspose.Total for Android Java . Först måste du konvertera PS-filen till DOC med Aspose.PDF for Android via Java . För det andra, genom att använda Word Processing API Aspose.Words for Android via Java , kan du rendera DOC till XAMLFLOW.

Konvertera PS till XAMLFLOW på Android via Java

  1. Öppna PS-filen med klassen Document
  2. Konvertera PS till DOC genom att använda save metod
  3. Ladda DOC-fil genom att använda klassen Document av Aspose.Words
  4. Spara dokumentet i XAMLFLOW-format med metoden save och ställ in XAMLFLOW som SaveFormat

Konverteringskrav

Du kan enkelt använda Aspose.Total for Android via Java direkt från Maven och installera Aspose.PDF for Android via Java och Aspose.Words for Android via Java i dina applikationer.

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

// load PS file with an instance of Document class
Document document = new Document("template.ps");
// save PS as a DOC 
document.save("DocOutput.doc", SaveFormat.DOC); 
// load DOC with an instance of Document
Document outputDocument = new com.aspose.words.Document("DocOutput.doc");
// call save method while passing SaveFormat.XAML_FLOW
outputDocument.save("output.xaml_flow", SaveFormat.XAML_FLOW);   

Få PS-filinformation på Android via Java

Innan du konverterar PS till XAMLFLOW kan du behöva information om dokumentet, inklusive författare, skapelsedatum, nyckelord, ändringsdatum, ämne och titel. Denna information är användbar för beslutsfattande för konverteringsprocessen. Genom att använda det kraftfulla Aspose.PDF for Android via Java API kan du få allt. För att få filspecifik information om en PS-fil, skaffa först objektet DocumentInfo med getInfo metod. När DocumentInfo-objektet är hämtat kan du få värdena för de enskilda egenskaperna.

// load PS document
Document doc = new Document("template.ps");
// get document information
DocumentInfo docInfo = doc.getInfo();
// show document information
System.out.println("Author: " + docInfo.getAuthor());
System.out.println("Creation Date: " + docInfo.getCreationDate());
System.out.println("Keywords: " + docInfo.getKeywords());
System.out.println("Modify Date: " + docInfo.getModDate());
System.out.println("Subject: " + docInfo.getSubject());
System.out.println("Title: " + docInfo.getTitle());

Infoga slutanteckningar i XAMLFLOW-dokument i Android via Java

Förutom dokumentkonvertering kan du också lägga till en massa andra funktioner i dina Android-applikationer med Aspose.Words for Android via Java API. En av dessa funktioner är att infoga slutanteckningar och numrering i XAMLFLOW-dokument. Om du vill infoga en fotnot eller en slutnot i ett XAMLFLOW-dokument, använd metoden DocumentBuilder.InsertFootnote. Denna metod infogar en fotnot eller slutnot i dokumentet. Klasserna EndnoteOptions och FootnoteOptions representerar numreringsalternativ för fotnot och slutnot.

// load document
Document doc = new Document("input.DOC");
// initialize document builder
DocumentBuilder builder = new DocumentBuilder(doc);
// add text in it
builder.write("Some text");
// insert footnote
builder.insertFootnote(FootnoteType.ENDNOTE, "Endnote text.");
// initialize endnote options
EndnoteOptions option = doc.getEndnoteOptions();
// set restart rule
option.setRestartRule(FootnoteNumberingRule.RESTART_PAGE);
// set position
option.setPosition(EndnotePosition.END_OF_SECTION);
// save the document to disk.
doc.save("output.xaml_flow", SaveFormat.XAML_FLOW);  

Explore PS Conversion Options with Android

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