Can't import PDF files recently created with NAPS2, error at last page
Scan documents to PDF and other file types, as simply as possible.
Brought to you by:
ben-cyanfish
I've noticed some files recently created with NAPS2 can't be reimported into it. Importing the 11 page file is OK until it reaches the last page, then the error occurs. The full error messages is as follows:
System.ArgumentException: Parameter is not valid.
at System.Drawing.Bitmap..ctor(Stream stream)
at NAPS2.ImportExport.Pdf.PdfSharpImporter.ExportJpegImage(PdfPage page, Byte[] imageBytes, ImportParams importParams)
at NAPS2.ImportExport.Pdf.PdfSharpImporter.<GetImagesFromPage>d__7.MoveNext()
at System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()
at NAPS2.ImportExport.ImportOperation.Run(IEnumerable`1 filesToImport, Action`1 imageCallback, Boolean oneFile)
This seems to be the same problem as these two other tickets describe:
I tested NAPS versions >=5.6.1 (5.6.0 just crashes) with the same result.
I could not reproduce this with other multi-page scanned documents I created more recently.
When opening the file with Acrobat Reader DC it opens fine, I noticed the security properties indicated "Page Extraction: Not allowed" (see attachment), not sure if this would be related.
I can't share the example file in public but can make it available in private.
I provided an example file privately and got a quick reply, a bug was identified and a fix should be available by next release! Thank you!
Thank you! I can confirm this new version lets us open and import files that wouldn't work before.