Unplanned
Last Updated: 03 Aug 2017 10:51 by ADMIN
ADMIN
Deyan
Created on: 24 Jul 2017 12:13
Category: RichTextBox
Type: Bug Report
1
RichTextBox: IndexOutOfRangeException is thrown when exporting PDF file with PdfImagesCompressionMode.Deflate
IndexOutOfRangeException is thrown when some JPEG file in the document has Scan Header with fewer components than the Frame Header. The current JpegDecoder implementation requires both JPEG Headers to have the same number of components.

WORKAROUND: PdfImagesCompressionMode.Automatic option may be used in the PdfFormatProvider export settings. This way all JPEG images will be exported to PDF without decoding their pixels and the PDF file will be exported successfully. 
0 comments