בנו כלים להשוואת מסמכים ארגוניים באמצעות REST API. עובד כפתרון מקיף לכל פורמטי הקבצים העיקריים.
התחל ניסיון חינםGroupDocs.Comparison for Cloud הוא REST API המאפשר ליישומי Ruby שלך להביא שני מסמכים בפורמט קובץ נתמך, להשוות את אותם מסמכי פורמט ולמצוא הבדלים ביניהם. ה-SDK מאפשר לך ליצור קובץ שנוצר ומאפשר לך לקבל או לדחות את השינויים שאוחזרו. ה-SDK שלנו להשוואת מסמכים מאפשר שילוב קל ביישומי Ruby הקיימים שלך, כדי להעצים את משתמשי הקצה שלך להשוות מסמכים, גיליונות אלקטרוניים, מצגות, דיאגרמות Microsoft Visio, מיילים וקבצים בפורמטים רבים אחרים.
באמצעות GroupDocs.Comparison Cloud API, אתה יכול להשוות מסמכים ולקבל את רשימת השינויים בצורה של תמונות. קטע הקוד הבא מראה כיצד אתה יכול להשוות בין קבצי מקור לבין קובצי DOCX ולהביא את ההבדלים ביניהם בקובץ result.DOCX. מאוחר יותר תוכל לקבל את קובץ ה-DOCX שנוצר כתמונות באמצעות רובי:
# TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required).
# For complete examples and data files, please go to https://github.com/groupdocs-comparison-cloud/groupdocs-comparison-cloud-ruby
# Returns images of document with the result of comparison
# throws ApiException if the Api call fails
def comparison_images
@config = GroupDocsComparisonCloud::Configuration.new(Utils::APP_SID, Utils::APP_KEY)
@config.api_base_url = Utils::API_BASE_URL
@sourcefile = "source.docx"
@targetfile = "target.docx"
@outputfile= "result.docx"
# Upload file to Cloud Storage
upload_file(@sourcefile)
upload_file(@targetfile)
# Returns images of document with the result of comparison
@comparison_api = GroupDocsComparisonCloud::ComparisonApi.from_config(@config)
request = GroupDocsComparisonCloud::ComparisonImagesRequest.new(GetComparisonRequest(@sourcefile, @targetfile),@outputfile)
response = @comparison_api.comparison_images(request)
puts response
puts 'completed'
end