문서 편집기 REST API는 웹, 모바일, 데스크톱 또는 클라우드 플랫폼에서 Android Cloud SDK을 사용하여 고급 문서 편집 및 조작 도구를 구축합니다.
무료 평가판 시작GroupDocs.Editor Cloud SDK for Android는 GroupDocs.Editor Cloud REST API와 쉽게 통합되어, MS Office 또는 기타 추가 애플리케이션을 설치하지 않고도 Android 애플리케이션에 문서 편집 기능을 추가할 수 있습니다. Android 편집기 SDK를 사용하면, Microsoft Word, Excel 스프레드시트, 프레젠테이션, TXT, HTML, XML 등 지원되는 다양한 문서 형식 전반에 걸쳐 문서 조작 작업을 빠르게 수행할 수 있습니다. 간단히 문서를 任意의 WYSIWYG HTML 편집기로 가져와 필요에 따라 편집하고, 원본 문서 형식으로 정확하고 효율적으로 다시 저장합니다. 지원되는 파일 형식 전반에 걸쳐 가장 많이 요구되는 모든 문서 편집 작업을 수행합니다. GroupDocs.Editor Cloud SDK for Android는 GroupDocs.Editor Cloud REST API 위에 레이어로 구축되어, 저수준 요청을 관리하고 응답을 처리함으로써 귀중한 개발 시간을 절약합니다. 개발자는 프로젝트에서 필요한 경우에만 특정 코드를 작성하는 데 집중할 수 있습니다.
클라우드에서 파일에 주석을 달기 위한 소스 코드를 찾고 계시다면 GroupDocs.Editor Cloud SDK for Android at GitHub을 확인하십시오.
제한 없이 Low-Code Android APIs를 try GroupDocs.Editor 할 수 있습니다.
GroupDocs.Editor Cloud은 Docker 이미지 형태로도 제공되며, 이 이미지를 사용하여 서비스를 self-host 할 수 있습니다. 또는 GroupDocs.Editor High-code APIs를 이용해 자체 Android 서비스를 구축할 수 있으며, 이는 현재 당사의 REST APIs를 구동합니다.
//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());