When importing a document containing an EI keyword not followed by space or return an exception is thrown: EndOfStreamException: 'Attempted to read past the end of the stream.'
When importing a PDF document and parsing a name start character followed by a dictionary end one an exception is thrown: System.InvalidOperationException: 'Stack empty.'
With the current implementation, the permissions are ignored on import.
As a side note, there is an option to set permissions on export: UserAccessPermissions.
Importing a document containing an EI keyword within the image stream leads to an endless loop and the document is not imported successfully.
Setting a filter on a mask results in an invalid file when exporting.
Workaround: Set the filer like this:
PdfFormatProvider provider = new PdfFormatProvider();
provider.ExportSettings.ImageCompression = new ImageFilterTypes[] { ImageFilterTypes.FlateDecode };
When using an ImageSharp version bigger than 2.0 an exception is thrown: "MissingMethodException: 'Method not found: 'SixLabors.ImageSharp.Image SixLabors.ImageSharp.Image.Load(Byte[], SixLabors.ImageSharp.Formats.IImageFormat ByRef)'."
Workaround: Downgrade to a lower ImageSharp version or use a custom implementation of ImagePropertiesResolverBase/JpegImageConverter.
When the indirect object contains more spaces between the object number and the generation number the object content is not successfully parsed.
Expected: one space
Actual: more than one space