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.