本文翻译自:Calculate MD5 checksum for a file
I'm using iTextSharp to read the text from a PDF file. 我正在使用iTextSharp从PDF文件读取文本。 However, there are times I cannot extract text, because the PDF file is only containing images. 但是,有时我无法提取文本,因为PDF文件仅包含图像。 I download the same PDF files everyday, and I want to see if the PDF has been modified. 我每天都下载相同的PDF文件,我想看看PDF是否已被修改。 If the text and modification date cannot be obtained, is a MD5 checksum the most reliable way to tell if the file has changed? 如果无法获得文本和修改日期,则MD5校验和是判断文件是否已更改的最可靠方法吗?