Breyta PPT í Java

Árangursrík og öflug PPT breyting með því að nota GroupDocs.Editor á netþjóni fyrir Java API, án þess að nota nokkurn hugbúnað eins og Microsoft eða Open Office.


Sæktu ókeypis prufuáskrift

Um GroupDocs.Editor for Java API

GroupDocs.Editor for Java API er rétt val til að breyta Microsoft Word, Excel, PowerPoint, Open Office skjölum og kynningum. GroupDocs.Editor er sjálfstætt API sem hentar fyrir netþjónahlið og bakendakerfi þar sem mikil afköst eru nauðsynleg. Það er ekki háð neinum hugbúnaði eins og Microsoft eða Open Office.

Skref til að breyta PPT í Java

GroupDocs.Editor for Java veitir forriturum auðvelda og einfalda leið til að breyta PPT skránum með því að nota nokkrar línur af kóða.

  • Búðu til tilvik af Editor flokki með lögboðinni skráarslóð eða bætistraumi og valfrjálsum PresentationLoadOptions flokki og hlaðið PPT skránni
  • Búðu til og stilltu PresentationEditOptions flokkstilvikið fyrir PPT skráarsniðið
  • Hringdu í Editor.Edit() aðferðina og fáðu PPT skjal á HTML sniði sem auðvelt er að breyta með hvaða WYSIWYG ritstjóra sem er.
  • Hringdu í Editor.Save() aðferðina og vistaðu breytta PPT skrá með PresentationSaveOptions flokki

kerfis kröfur

Hægt er að breyta grunnskjali með GroupDocs.Editor for Java API með því að útfæra nokkur auðveld skref. API okkar eru studd á öllum helstu kerfum og stýrikerfum. Áður en þú keyrir kóðann hér að neðan skaltu ganga úr skugga um að þú hafir eftirfarandi forsendur uppsettar á kerfinu þínu.

  • Stýrikerfi: Microsoft Windows, Linux, MacOS
  • Þróunarumhverfi: NetBeans, IntelliJ IDEA, Eclipse
  • Rammar: Java 7 (1.7) and above
  • Fáðu nýjustu útgáfuna af GroupDocs.Editor for Java niðurhalað frá Maven

// Load the PPT file into Editor with the optional PresentationLoadOptions
Editor editor = new Editor("source.ppt", new PresentationLoadOptions());

// Create and adjust the edit options
PresentationEditOptions editOptions = new PresentationEditOptions();
editOptions.setSlideNumber(1);//select a slide to edit

// Open input PPT document for edit — obtain an intermediate document, that can be edited
EditableDocument beforeEdit = editor.edit(editOptions);

// Grab PPT document content and associated resources from editable document
string content = beforeEdit.getEmbeddedHtml();

// Send the content to WYSIWYG-editor, edit it there, and send edited content back to the server-side
// This step simulates a such operation
string updatedContent = content.replace("Title", "Edited Title");

// Grab edited content and resources from WYSIWYG-editor and create a new EditableDocument instance from it
EditableDocument afterEdit = EditableDocument.fromMarkup(updatedContent, null);

// Create a save options and select a desired output format
PresentationSaveOptions saveOptions = new PresentationSaveOptions(PresentationFormats.Ppt);

// Save edited PPT document to the file
editor.save(afterEdit, "edited.ppt", saveOptions);

PPT Ritstjóri Live kynningar

Breyttu PPT núna með því að fara á vefsíðu GroupDocs.Editor Live Demos. Lifandi kynningin hefur eftirfarandi kosti

Engin þörf á að hlaða niður API

Engin þörf á að skrifa neinn kóða

Bara hlaðið upp frumskránni

Fáðu niðurhalstengil til að vista skrána

Aðrir studdir ritstjórar

Þú getur líka breytt öðrum skráarsniðum. Vinsamlegast sjáðu heildarlistann hér að neðan.

DOC

(Microsoft Word Binary Format)

DOCX

(Office 2007+ Word Document)

DOCM

(Microsoft Word 2007 Marco File)

DOTX

(Microsoft Word Template File )

XLS

(Microsoft Excel Spreadsheet (Legacy))

XLSX

(Open XML Workbook)

XLSM

(Macro-enabled Spreadsheet)

PPTX

(Open XML presentation Format)

PPTM

(Macro-enabled Presentation File)

MOBI

(Open Ebook Format)

EPUB

(Open eBook File)

HTML

(Hyper Text Markup Language)

MHTML

(Web Page Archive Format)

TXT

(Text Document)

XML

(XML File)

CSV

(Comma Seperated Values)

RTF

(Rich Text Format)

ODT

(OpenDocument Text File Format)

MSG

(Outlook Message Item File)

EML

(E-Mail Message)

Back to top
 Íslenskur