Hi,
I have been using EO PDF version 5.0.32.2 and older versions, and after updating to version 5.0.48.2, I've got an exception in a piece of code that always worked.
Code: C#
var page = new PdfPage();
var imagePath = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"Content\app\images\pdf-cover.jpg");
var image = new PdfImage(imagePath);
var content = new PdfImageContent(image);
page.Contents.Add(content);
Exception
Message Object reference not set to an instance of an object.
StackTrace
at EO.Pdf.Contents.PdfContentContainer.h()
at EO.Pdf.Internal.d2.a(List`1 A_0)
at EO.Pdf.Internal.d2.b()
at EO.Pdf.Contents.PdfContentContainer.get_Contents()
TargetSite EO.Pdf.Internal.hi h()
The exception is raised in the last line
Code: C#
page.Contents.Add(content);