ITextExtractionStrategy strategy = new SimpleTextExtractionStrategy() PdfReader pdfReader = new PdfReader(f.FullName) įor (int page = 1 page <= pdfReader.NumberOfPages page++) public bool ReadPdfFile(FileInfo f, string sourceDir) The code that worked for the text, but didnt work for the images, since the strings came up empty. well preferably, i mean i even tried a whole new thing like GhostScript to do it but i sucked at that. Im so desperate about this, it doesnt even have to be in c#.
Check for corrupted files unraid pdf#
How would you check for a broken PDF like that?Īm i checking the right way? Is there a diffirent way to do it? But the faults isnt in the headers (most of the time) but like i said, only for pdf's with words in.) (ill put the code for this one at the bottom, since thats the only one that worked partly.
![check for corrupted files unraid check for corrupted files unraid](https://static1.makeuseofimages.com/wordpress/wp-content/uploads/2019/03/unraid-usage.jpg)
![check for corrupted files unraid check for corrupted files unraid](https://static1.makeuseofimages.com/wordpress/wp-content/uploads/2019/03/unraid-vms.jpg)
What ive done so far with no success might I add. (oh and you do Not have the original to compare it with some fancy checksum) How do you check if a pdf file is broken like that (can STILL be opened by Adobe - with the message "Insufficient data for an image" but you can still scroll through your broken little file) You can still open it, but all your pages will be blank with maybe a scribble at the bottom somewhere. Open one in note pad, delete a few lines and close it again - Effectively Breaking your pdf file.