Dokumenteditor REST API til at bygge avancerede dokumentredigerings- og manipulationsværktøjer ved hjælp af Android Cloud SDK på web-, mobil-, desktop- eller cloudplatforme.
Start gratis prøveperiodeGroupDocs.Editor Cloud SDK til Android integreres nemt med GroupDocs.Editor Cloud REST API, hvilket gør det muligt at tilføje dokumentredigeringsfunktioner i Android-applikationer uden MS Office eller andre ekstra applikationer installeret. Brug Android editor SDK – fremskynd dokumentmanipulationsopgaven på tværs af en bred vifte af understøttede dokumentformater, herunder Microsoft Word, Excel-regneark, præsentationer, TXT, HTML og XML. Du skal blot hente dokumentet ind i en hvilken som helst WYSIWYG HTML-editor, rediger det efter behov og gem det tilbage til originale dokumentformater med ægte nøjagtighed og effektivitet.
Udfør alle de mest efterspurgte dokumentredigeringshandlinger på tværs af de understøttede filformater. GroupDocs.Editor Cloud SDK til Android er bygget som et lag oven på GroupDocs.Editor Cloud REST API, der sparer værdifuld udviklingstid ved at administrere anmodninger på lavt niveau og håndtere svar. Udviklerne kan kun fokusere på at skrive den specifikke kode op efter behov i projektet.
Tjek GroupDocs.Editor Cloud SDK til Android på GitHub, hvis du leder efter kildekoden til at kommentere filen i skyen .
Du kan prøve GroupDocs.Editor Android API’er med lav kode uden nogen begrænsninger.
GroupDocs.Editor Cloud er også tilgængelig som Docker-billede, der kan bruges til at selv-hoste tjenesten. Eller du kan bygge dine egne Android-tjenester ved hjælp af GroupDocs.Editor High-code API’er, som i øjeblikket driver vores REST API’er.
//Get your App SID, App Key and Storage Name at https://dashboard.groupdocs.cloud (free registration is required).
Configuration configuration = new Configuration(MyAppSid, MyAppKey);
// Create necessary API instances
EditApi editApi = new EditApi(configuration);
FileApi fileApi = new FileApi(configuration);
// The document already uploaded into the storage.
// Load it into editable state
FileInfo fileInfo = new FileInfo();
fileInfo.setFilePath("WordProcessing/password-protected.docx");
fileInfo.setPassword("password");
WordProcessingLoadOptions loadOptions = new WordProcessingLoadOptions();
loadOptions.setFileInfo(fileInfo);
loadOptions.setOutputPath("output");
LoadResult loadResult = editApi.load(new LoadRequest(loadOptions));
// Download html document
File file = fileApi.downloadFile(new DownloadFileRequest(loadResult.getHtmlPath(), null, null));
// Edit something...
List lines = Files.readAllLines(file.toPath());
List newLines = new ArrayList();
for (String line : lines) {
newLines.add(line.replaceAll("Sample test text", "Hello world"));
}
Files.write(file.toPath(), newLines);
// Upload html back to storage
fileApi.uploadFile(new UploadFileRequest(loadResult.getHtmlPath(), file, Common.MYStorage));
// Save html back to docx
WordProcessingSaveOptions saveOptions = new WordProcessingSaveOptions();
saveOptions.setFileInfo(fileInfo);
saveOptions.setOutputPath("output/edited.docx");
saveOptions.setHtmlPath(loadResult.getHtmlPath());
saveOptions.setResourcesPath(loadResult.getResourcesPath());
DocumentResult saveResult = editApi.save(new SaveRequest(saveOptions));
System.out.println("Document edited: " + saveResult.getPath());