Thu May 21, 2026 2:32 am
Hi,
Thanks for your inquiry.
Unfortunately, our Spire.PDF doesn't currently provide a feature like diff.size() or a direct method to check if files are identical without generating a comparison document.
However, we are actively developing Spire.PDF AI, which will allow you to achieve exactly what you need using simple natural language prompts. For example, you will be able to instruct the API: "Compare these two PDFs and return true if they are identical, without generating a result file."
We don't have a fixed release date just yet, but it is coming soon! Once the new version is released, we will inform you immediately.
Sincerely,
Nina
E-iceblue support team