GroupDocs.Editor for Java Is rogha cheart é API chun Microsoft Word, Excel, PowerPoint, doiciméid Open Office agus láithreoireachtaí a chur in eagar. Is API neamhspleách é GroupDocs.Editor atá oiriúnach do chórais taobh an fhreastalaí agus cúil ina bhfuil ardfheidhmíocht ag teastáil. Ní bhraitheann sé ar aon bhogearraí cosúil le Microsoft nó Open Office.
Soláthraíonn GroupDocs.Editor for Java bealach éasca agus simplí d’fhorbróirí chun na comhaid HTML a chur in eagar ag úsáid cúpla líne cód.
Eagarthóir
le conair éigeantach comhaid nó sruth beart agus lódáil an comhad HTMLTextEditOptions
don fhormáid comhaid HTMLEditor.Edit()
agus faigh doiciméad HTML i bhformáid HTML is furasta a chur in eagar le haon eagarthóir WYSIWYG.Editor.Save()
agus sábháil an comhad HTML atá curtha in eagar ag úsáid rang TextSaveOptions
Is féidir bun-eagarthóireacht doiciméad le APIs GroupDocs.Editor for Java a dhéanamh trí roinnt céimeanna éasca a chur i bhfeidhm. Tacaítear lenár n-API ar gach mór-ardán agus córas oibriúcháin. Sula ndéanann tú an cód thíos, déan cinnte go bhfuil na réamhriachtanais seo a leanas suiteáilte ar do chóras.
// Load the HTML file into Editor
Editor editor = new Editor("source.html");
// Create and adjust the HTML edit options
TextEditOptions editOptions = new TextEditOptions();
// Open input HTML document for edit — obtain an intermediate document, that can be edited
EditableDocument beforeEdit = editor.edit(editOptions);
// Grab HTML 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("text", "Edited text");
// Grab edited content and resources from WYSIWYG-editor and create a new EditableDocument instance from it
EditableDocument afterEdit = EditableDocument.fromMarkup(updatedContent, null);
// Create and adjust the save options
TextSaveOptions saveOptions = new TextSaveOptions();
// Save edited HTML document to the file
editor.save(afterEdit, "edited.html", saveOptions);
Cuir HTML in eagar faoi láthair trí chuairt a thabhairt ar GroupDocs.Editor Live Demos. Tá na buntáistí seo a leanas ag an taispeántas beo
Ní gá API a íoslódáil
Ní gá aon chód a scríobh
Just a uaslódáil an comhad foinse
Faigh nasc íoslódála chun an comhad a shábháil
Is féidir leat formáidí comhaid eile a chur in eagar freisin. Féach ar an liosta iomlán thíos.
(Microsoft Word Binary Format)
(Office 2007+ Word Document)
(Microsoft Word 2007 Marco File)
(Microsoft Word Template File )
(Microsoft Excel Spreadsheet (Legacy))
(Open XML Workbook)
(Macro-enabled Spreadsheet)
(Microsoft PowerPoint 97-2003)
(Open XML presentation Format)
(Macro-enabled Presentation File)
(Open Ebook Format)
(Open eBook File)
(Web Page Archive Format)
(Text Document)
(XML File)
(Comma Seperated Values)
(Rich Text Format)
(OpenDocument Text File Format)
(Outlook Message Item File)
(E-Mail Message)