GroupDocs.Comparison allows you to compare documents that contain non-standard fonts.
To connect custom fonts and compare documents, follow these steps:
Instantiate the LoadOptions object. Specify a list of directories with custom fonts.
Instantiate the Comparer object with the source document path or stream and the LoadOptions object created in the previous step.
Call the add() method. Specify the target document path or stream.
Call the Comparer method.
The following code snippet shows how to connect custom fonts and compare documents:
// Instantiate the LoadOptions object and create a list of custom font directories.
constloadOptions=newgroupdocs.comparison.LoadOptions();loadOptions.getFontDirectories().add("./fontPath/");constcomparer=newgroupdocs.comparison.Comparer(sourceDocument,loadOptions);comparer.add(targetDocument);constresultPath=comparer.compare(resultDocument);
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.