אפליקציית המרה מקוונת של DOT ל-PPSM וקוד אנדרואיד להמרת קבצי DOT

פתח אפליקציית המרה וייצוא של DOT מבוססת אנדרואיד. המר קבצי DOT בודדים או מרובים ל-PPSM ולפורמטים אחרים באמצעות API של אוטומציה של אנדרואיד. המר באופן חופשי קבצי DOT באופן מקוון באמצעות אפליקציה עם הורדה מיידית.

המר קבצים מקוונים של DOT ל-PPSM באמצעות אפליקציה

  1. העלה קבצים DOT להמרה
  2. המתן מספר שניות או יותר בהתאם לגודל DOT
  3. עקוב אחר שורת הסטטוס של העלאה
  4. לחץ על כפתור “המר”.
  5. DOT יומר למסמך PPSM
  6. הורד את קובץ ה-PPSM שהומר

המר את DOT ל-PPSM באמצעות Android Automation API

  1. פתח קובץ DOT באמצעות מחלקת Document
  2. המר קובץ DOT ל-HTML באמצעות שיטת save
  3. אתחול אובייקט Presentation חדש
  4. חלץ תוכן מקובץ HTML באמצעות BufferedReader וכתוב תוכן לקובץ מצגת
  5. שמור את המסמך ב-PPSM בשיטת save
 

קוד אנדרואיד עבור המרה של DOT ל-PPSM

// supports DOC, DOCX, DOT, DOTM, DOTX, FLATOPC, ODT, OTT, RTF, TXT, WORDML, DOCM input file formats
// load DOC file with an instance of Document
Document document = new Document("template.doc");
// save the document in HTML file format
document.save("HtmlOutput.html",SaveFormat.HTML);
// create a new presentation
Presentation pres = new Presentation();
// access the default first slide of presentation
ISlide slide = pres.getSlides().get_Item(0);
// add the AutoShape to accommodate the HTML content
IAutoShape ashape = slide.getShapes().addAutoShape(ShapeType.Rectangle, 10, 10,
(float) pres.getSlideSize().getSize().getWidth(),
(float) pres.getSlideSize().getSize().getHeight());
ashape.getFillFormat().setFillType(FillType.NoFill);
// add text frame to the shape
ashape.addTextFrame("");
// clear all paragraphs in added text frame
ashape.getTextFrame().getParagraphs().clear();
// initialize StringBuilder to read Html
StringBuilder contents = new StringBuilder();
// load HTML file by using BufferedReader
BufferedReader reader = new BufferedReader(new FileReader(new File("HtmlOutput.html")));
String text = null;
// repeat until all lines are read
while ((text = reader.readLine()) != null) {
contents.append(text).append(System.getProperty("line.separator"));
}
reader.close();
// add HTML content in text frame
ashape.getTextFrame().getParagraphs().addFromHtml(content);
// supports POTM, POT, POTX, PPSM, PPS, PPSX, PPTM, PPT, PPTX, ODP output file formats.
// save presentation as Pptx
pres.save("output.pptx", com.aspose.slides.SaveFormat.Pptx);
 
 

עוד כמה מקרים לשמירת DOT ל-PPSM עם תכונות אחרות.

// supports DOC, DOT, DOCX, DOCM, DOTX, and DOTM file formats
// load DOC file with an instance of Document
Document document = new Document("template.doc", new LoadOptions("MyPassword"));
// save the document in HTML file format
document.save("HtmlOutput.html",SaveFormat.HTML);
// create a new presentation
Presentation pres = new Presentation();
// perform the conversion to PPT

// supports DOC, DOCX, DOT, DOTM, DOTX, FLATOPC, ODT, OTT, RTF, TXT, WORDML, DOCM input file formats
// load DOC file with an instance of Document
Document document = new Document("template.doc");
// save the document in HTML file format
document.save("HtmlOutput.html",SaveFormat.HTML);
// create a new presentation
Presentation pres = new Presentation();
// access the default first slide of presentation
ISlide slide = pres.getSlides().get_Item(0);
// add the AutoShape to accommodate the HTML content
IAutoShape ashape = slide.getShapes().addAutoShape(ShapeType.Rectangle, 10, 10,
(float) pres.getSlideSize().getSize().getWidth(),
(float) pres.getSlideSize().getSize().getHeight());
ashape.getFillFormat().setFillType(FillType.NoFill);
// add text frame to the shape
ashape.addTextFrame("");
// clear all paragraphs in added text frame
ashape.getTextFrame().getParagraphs().clear();
// initialize StringBuilder to read Html
StringBuilder contents = new StringBuilder();
// load HTML file by using BufferedReader
BufferedReader reader = new BufferedReader(new FileReader(new File("HtmlOutput.html")));
String text = null;
// repeat until all lines are read
while ((text = reader.readLine()) != null) {
contents.append(text).append(System.getProperty("line.separator"));
}
reader.close();
// add HTML content in text frame
ashape.getTextFrame().getParagraphs().addFromHtml(content);
// add watermark
IAutoShape ashp = slide.getShapes()
.addAutoShape(ShapeType.Rectangle,50, 50, 500, 500);
ashp.addTextFrame("Watermark Text");
ashp.getTextFrame().getParagraphs().get_Item(0).getPortions()
.get_Item(0).getPortionFormat().getFillFormat()
.setFillType(FillType.Solid);
ashp.getTextFrame().getParagraphs().get_Item(0).getPortions()
.get_Item(0).getPortionFormat().getFillFormat()
.getSolidFillColor().setColor(Color.GRAY);
ashp.getTextFrame().getParagraphs().get_Item(0).getPortions()
.get_Item(0).getPortionFormat().setFontHeight(25);
// Change the line color of the rectangle to White
ashp.getShapeStyle().getLineColor().setColor(Color.WHITE);
ashp.getShapeStyle().setLineStyleIndex(LineStyle.ThinThin);
// Remove any fill formatting in the shape
ashp.getFillFormat().setFillType(FillType.NoFill);
ashp.setRotation(-45);
ashp.getAutoShapeLock().setSelectLocked(true);
ashp.getAutoShapeLock().setSizeLocked(true);
ashp.getAutoShapeLock().setTextLocked(true);
ashp.getAutoShapeLock().setPositionLocked(true);
ashp.getAutoShapeLock().setGroupingLocked(true);
// supports POTM, POT, POTX, PPSM, PPS, PPSX, PPTM, PPT, PPTX, ODP output file formats.
// save presentation as Pptx
pres.save("output.pptx", com.aspose.slides.SaveFormat.Pptx);

 

פתח אפליקציית המרת קבצים DOT באמצעות אנדרואיד

צריך לפתח יישום תוכנה מבוסס אנדרואיד כדי לשמור ולייצא בקלות קבצי DOT למסמך PPSM? עם Aspose.Total for Android via Java , כל מפתח אנדרואיד יכול לשלב את קוד ה-API לעיל כדי לתכנת את אפליקציית ההמרה במגוון פורמטים, כולל Microsoft Word (DOC, DOCX), Excel (XLS, XLSX), Powerpoint (PPT, PPTX), PDF, קבצי דוא"ל, תמונות (JPG, PNG, BMP, GIF) ופורמטים אחרים. ספריית אנדרואיד רבת עוצמה להמרת מסמכים, תומכת בפורמטים פופולריים רבים כולל פורמט DOT. ייצוא ועיבוד מסמכים לפורמטים אחרים, מתכנתים יכולים להשתמש ב-Aspose.Total for Android via Java ילד API כולל Aspose.Words for Android via Java , Aspose.Cells for Android via Java , Aspose.Slides for Android via Java , Aspose.PDF for Android via Java , Aspose.BarCode for Android via Java ועוד.

ספריית ההמרות של DOT עבור אנדרואיד

ישנן אפשרויות חלופיות לשילוב Aspose.Total for Android via Java במערכת שלך. אנא בחר אחד שדומה לצרכים שלך ופעל לפי ההוראות המפורטות:

  • השתמש ב-Aspose.Total for Android via Java ישירות מפרויקט מבוסס Maven וכלול את ה-API הרלוונטי של הילד ב-pom.xml.
  • לחלופין, אפשר לקבל קובץ ZIP מ- הורדות .

שומר את DOT ל-PPSM דרישות האפליקציה

לחלופין, השתמש ב-API הרלוונטי של הילד לשמירה, ככל הנראה.

ַחקוֹר DOT אפשרויות המרה עם Android

להמיר DOT ל CSV (Comma Seperated Values)
להמיר DOT ל DIF (Data Interchange Format)
להמיר DOT ל Excel (Spreadsheet File Formats)
להמיר DOT ל FODS (OpenDocument Flat XML Spreadsheet)
להמיר DOT ל JSON (JavaScript Object Notation File)
להמיר DOT ל ODP (OpenDocument Presentation Format)
להמיר DOT ל ODS (OpenDocument Spreadsheet)
להמיר DOT ל POT (Microsoft PowerPoint Template Files)
להמיר DOT ל POTM (Microsoft PowerPoint Template File)
להמיר DOT ל POTX (Microsoft PowerPoint Template Presentation)
להמיר DOT ל Powerpoint (Presentation Files)
להמיר DOT ל PPS (PowerPoint Slide Show)
להמיר DOT ל PPSX (PowerPoint Slide Show)
להמיר DOT ל PPT (PowerPoint Presentation)
להמיר DOT ל PPTM (Macro-enabled Presentation File)
להמיר DOT ל PPTX (Open XML presentation Format)
להמיר DOT ל SXC (StarOffice Calc Spreadsheet)
להמיר DOT ל TSV (Tab-separated Values)
להמיר DOT ל XLAM (Excel Macro-Enabled Add-In)
להמיר DOT ל XLS (Microsoft Excel Binary Format)
להמיר DOT ל XLSB (Excel Binary Workbook)
להמיר DOT ל XLSM (Macro-enabled Spreadsheet)
להמיר DOT ל XLSX (Open XML Workbook)
להמיר DOT ל XLT (Excel 97 - 2003 Template)
להמיר DOT ל XLTM (Excel Macro-Enabled Template)
להמיר DOT ל XLTX (Excel Template)