PdfProcessing: InvalidCastException is thrown when importing a document containing Byte order marks (BOM) at the beginning of the file
InvalidCastException is thrown when importing a document containing Byte order marks (BOM) at the beginning of the file. The bytes are read as part of the document content and this changes all the document`s offsets.