GDPicture 11.2.19 and adding jpg as MRC to a PDF

Discussions about PDF management.
Post Reply
EFernkaes
Posts: 36
Joined: Fri Jul 31, 2015 5:27 pm

GDPicture 11.2.19 and adding jpg as MRC to a PDF

Post by EFernkaes » Sun Aug 30, 2015 1:34 am

Hello Loïc,
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()
The error:
"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

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: GDPicture 11.2.19 and adding jpg as MRC to a PDF

Post by Loïc » Sun Aug 30, 2015 10:49 am

Hello,

Thank you very much for the report. I've been able to reproduce the issue and the minor release that will be published next week will include the fix.
Cheers,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest