PDFRasterizer.NET 4.0 is now available. Supports .NET Core. Renders pixel-perfectly.

Diagnostics

It is possible to collect diagnostics about the render process by passing a Summary instance to the various render/conversion methods. This class builds a list of messages that can be inspected after the render process has finished.

Basic code sample

The following code sample demonstrates how the Summary class provides diagnostics:

Summary summary = new Summary();
page.Draw(graphics, new RenderSettings(), summary);

foreach (Message message in summary.Messages)
{
   switch (message.Severity)
   {
      case MessageSeverity.Information:
         Console.WriteLine("Info: {0}", message.Text);
         break;
      case MessageSeverity.Warning:
         Console.WriteLine("Warning: {0}", message.Text);
         break;
      case MessageSeverity.Error:
         Console.WriteLine("Error: {0} | {1}", message.Text,
            message.Exception);
         break;
   }
}

Code sample: Dump render diagnostics to the output console

Download PDFRasterizer.NET 3.0
We will send you a download link
  • This field is for validation purposes and should be left unchanged.
Why do we ask your email address?
We send tips that speed up your evaluation
We let you know about bug fixes
You can always unsubscribe with one click
We never share your address with a 3rd party
Thank you for your download

We have sent an email with a download link.