שלב בודק הבדלים במסמכים באפליקציות אנדרואיד שלך באמצעות REST API. השווה תמונות, מסמכים, ספרים אלקטרוניים, קבצי CAD ו-PDF וכו ‘.
התחל ניסיון חינםGroupDocs.Comparison for Cloud הוא REST API המאפשר ליישומי אנדרואיד שלך להשוות בין שני מסמכים בפורמט זהה כדי למצוא הבדלים ביניהם ליצור קובץ שנוצר ולאפשר לך לקבל או לדחות את השינויים שאוחזרו. SDK שלנו להשוואת מסמכים עבור אנדרואיד מאפשרת שילוב קל ביישומים הקיימים שלך, כך שמשתמשי הקצה שלך יכולים להשוות מסמכים, גיליונות אלקטרוניים, מצגות, דיאגרמות Microsoft Visio, מיילים וקבצים בפורמטים רבים אחרים.
באמצעות GroupDocs.Comparison Cloud API, אתה יכול להשוות מסמכים ולקבל את רשימת השינויים ביניהם. קטע הקוד הבא מראה כיצד ניתן לאחזר הבדל בין מקור לקובצי DOCX של יעד ולאחזר את ההבדלים ביניהם בקובץ result.DOCX באמצעות אנדרואיד:
# TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud/#/apps (free registration is required).
# For complete examples and data files, please go to https://github.com/groupdocs-comparison-cloud/groupdocs-comparison-cloud-android
String outPath = "result.docx",
sourceName = "source.docx",
targetName = "target.docx";
StorageApi storageApi = Utils.getStorageApiInstance();
// Upload files to Cloud Storage
File file = new File("src/main/resources/" + sourceName);
ResponseMessage storageresponse = storageApi.PutCreate("comparison/" + sourceName, null, null, file);
file = new File("src/main/resources/" + targetName);
storageresponse = storageApi.PutCreate("comparison/" + targetName, null, null, file);
ChangesApi changesApi = Utils.getChangesApiInstance();
PutChangesDocumentRequest request = new PutChangesDocumentRequest();
request.setRequest(GetComparisonRequest(sourceName, targetName));
request.setOutPath(outPath);
Link response = changesApi.putChangesDocument(request);
System.out.println(response);