Free Support Forum - aspose.com

What does Document.check() do?

What does the check() method on com.aspose.pdf.Document actually do?

Is there any way we can get more detail of what is wrong if check() returns false?

Thanks!

@Docbyte

Thanks for contacting support.

Generally Document gets validated after calling check() method. However, we are gathering further details on it under the ticket ID PDFJAVA-38026 and will share our feedback with you as soon as ticket is resolved. Please spare us little time.

@Docbyte

The method check() validates a document and if the parameter doRepair is true then found issues will be repaired. Currently the work on an additional method i.e. check(bool doRepair, OuputStream log) is under process that may suit your needs for more details of what is wrong with the document. This work is not completed yet and as soon as the functionality is available, we will surely inform you. Please spare us little time.