GroupDocs team is always trying to provide out of the box solutions for their users, this time we are glad to introduce Next Generation GroupDocs.Comparison Cloud 18.4 with PHP SDK. This monthly release is providing Five new features like PHP SDK, comparisons of annotations, Image and html comparison features. This release is also included Eleven API improvements like displaying of tables in PDF and Add page mapper for Note format etc. along with Eight Bug Fixes. Please follow the release notes here for further details. Complete API changes is listed below:

New Features - GroupDocs.Comparison Cloud

  • Added PHP SDK for GroupDocs.Comparison Cloud
  • Comparison.PDF: Implement annotations comparing
  • Implement Comparison Imaging
  • Implement the process absorbing of tables with merged cells
  • Implement Comparison.Html

Improvements - GroupDocs.Comparison Cloud API

  • Add public bool property LicenseChecker
  • Improve displaying of tables in PDF
  • Improve page mapper for PDF.
  • Comparison.PDF: fix filled cells on tables
  • Add page mapper for Note format
  • Comparison.Note: Improve comparison of table
  • Improve displaying of tables in PDF
  • Implement image update changes by shapes
  • Implement image update changes by zone
  • Improve registration of changes by groups
  • Improve Comparison.Imaging

Bug Fixes - GroupDocs.Comparison Cloud 18.4

  • Fix issue with filled cells on PDF
  • PDF Comparison issue
  • Fix ColumnMerger problem
  • Issues in comparison of table of contents
  • Fatal error in ParagraphDiffIndex
  • Issues with comparing data in tables
  • PPTX comparison output is hidden under some panel
  • PDF Comparison - scrambled/text overlapped output

GroupDocs.Comparison Cloud - PHP SDK

GroupDocs.Comparison Cloud PHP SDK is now available for public use. It is a wrapper around REST APIs, that allows you to work with GroupDocs.Comparison Cloud REST APIs in PHP 5.5 or higher quickly and easily, gaining all benefits of strong types and IDE highlights. The distribution is available at Packagist and the source code at GitHub.

PHP SDK Example - GoupDocs.Comparison Cloud API

 //TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required).
$configuration = new Configuration();
$configuration->setAppSid("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX");
$configuration->setAppKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");

$comparisonApi = new ComparisonApi($configuration);

try { 

        $targetArray = array();
        $targetNames = array('target.docx');
        foreach ($targetNames as $targetName){
            array_push($targetArray,new ComparisonFileInfo(
                [
                    'folder' => 'comparison',
                    'name' => $targetName,
                    'password' => ''
                ]
            ));
        }

        $request = new Requests\ComparisonRequest(new ComparisonRequest([
            'sourceFile'=>new ComparisonFileInfo(
                [
                    'folder' => '',
                    'name' => 'source.docx',
                    'password' => ''
                ]
            ),
            'targetFiles'=> $targetArray,
            'settings'=> new ComparisonRequestSettings(
                [
                    'generateSummaryPage'=>true,
                    'showDeletedContent'=>true,
                    'styleChangeDetection'=>true,
                    'insertedItemsStyle' => new StyleSettingsValues(
                        [
                            'color' => new Color([
                                'blue'
                            ]),
                            'beginSeparatorString' => '',
                            'endSeparatorString' => ''
                        ]
                    ),
                    'deletedItemsStyle' => new StyleSettingsValues(
                        [
                            'color' => new Color([
                                'red'
                            ]),
                            'beginSeparatorString' => '',
                            'endSeparatorString' => ''
                        ]
                    ),
                    'styleChangedItemsStyle' => new StyleSettingsValues(
                        [
                            'color' => new Color([
                                'green'
                            ]),
                            'beginSeparatorString' => '',
                            'endSeparatorString' => ''
                        ]
                    ),
                    'markDeletedInsertedContentDeep'=>true,
                    'calculateComponentCoordinates'=>true,
                    'useFramesForDelInsElements'=>true,
                    'wordsSeparatorChars' => array(),
                    'metaData' => new ComparisonMetadataValues(

                    ),
                    'cloneMetadata' => "Source",
                    'passwordSaveOption' => "User",
                    'password'=>"1111",
                    'detailLevel' => "Low",

                ]
            ),
            'changes'=>array(new ComparisonChange([
                'id' => 0,
                'action' => 'Accept'
            ]))
        ]),
            'result.docx'
        );

        $response = $comparisonApi->comparison($request);
        echo  $response;
  } catch (Exception $e) {
        echo  "Error message: ",  $e->getMessage(), "\n";
  PHP_EOL;
} 

API Explorer

The GroupDocs Cloud provides an Web API explorer to try out our API right away in your browser. It is a collection of Swagger documentation for the GroupDocs Cloud APIs. Using Web API explorer, you can get information about all the resources in the API. It also provides testing and interactivity to our API endpoint documentation. Please click here for further details.

SDKs

GroupDocs.Comparison Cloud API is providing SDKs to use its features in your favorite platform such as .NET. The SDKs are hosted on our GitHub repository along with working examples, to get you started in no time.

GroupDocs.Comparison Cloud API Resources

You may visit the following API resources for getting started and working with the API.

Start a Free Trial Today

Start a free trial today – all you need is to sign up with the GroupDocs Cloud service. Once you have signed up, you are ready to try the powerful file processing features offered by GroupDocs Cloud.