I've installed the Version 11.2.18, which was announced per mail, and I now installed the update to 11.2.19 a few minutes ago.
Since then, we can no longer add .jpg Pictures to a PDF-file with the paramter "PdfAdvancedImageCompression.PdfAdvancedImageCompressionMRC"
Even your listed example from the reference guide throws an exception when replacing the .tiff file with an .jpg file:
Code: Select all
Dim oGdPictureImaging As New GdPictureImaging()
Dim oGdPicurePDF As New GdPicturePDF()
oGdPicurePDF.NewPDF()
Dim ImageIDx As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("E:\20 Most Bizarre Mugshots ever 14.jpg")
For i As Integer = 1 To oGdPictureImaging.GetPageCount(ImageIDx)
oGdPictureImaging.SelectPage(ImageIDx, i)
oGdPicurePDF.AddImageFromGdPictureImage(ImageIDx, PdfAdvancedImageCompression.PdfAdvancedImageCompressionMRC)
Next
oGdPictureImaging.ReleaseGdPictureImage(ImageIDx)
oGdPictureImaging.Dispose()
oGdPicurePDF.SaveToFile("pdf_mrc.pdf")
oGdPicurePDF.Dispose()
"NullReference not handled"
"The object reference was not set to an object scope" (translated from German)
VB.net, Version 2010, 64 bit, but problem exists in 32 bit mode, too.
Greets