Hello I currently try to compare two pdfs, which is working. However there are Texts in the Pdf which have different word breaks on line, this is shown as a difference, but basically the text is the same. Is it somehow possible to ignore that case?
In the Screenshot you can see my Problem, for example “experience” to “exper-ience”:
image.png (85,8 KB)
My Current Code is the following to initiate the comparison, however with the additional “CompareOptions” nothing really changed for my case:
$requestDocument = $fileName1;
$requestCompareDataFileReferenceStream = $fileName2;
$requestCompareDataFileReference = FileReference::fromLocalFileContent($requestCompareDataFileReferenceStream);
$requestCompareData = new CompareData(array(
"author" => "author",
"compare_options" => new \Aspose\Words\Model\CompareOptions(array('ignore_formatting' => true, 'ignore_case_changes' => true, 'ignore_textboxes' => true)),
"date_time" => new \DateTime("2015-10-26T00:00:00.0000000Z"),
"file_reference" => $requestCompareDataFileReference,
'result_document_format' => 'pdf'
));
$request = new CompareDocumentOnlineRequest(
$requestDocument,
$requestCompareData,
NULL,
NULL,
NULL,
NULL,
"/TestCompareDocumentOut.pdf"
);
$result = $wordsApi->compareDocumentOnline($request);