Image height is too large in header

I’ve got an image that is 139 x 57 pixels that I would like to put in my header, but I get this error:

Image height is too large in header:57

Here’s the xml:






this is header




Anybody know how I can get around this?

Dear pcoulter,

Thanks for your consideration.

Aspose.Pdf uses the top margin of the page for the header. You should set the PageMarginTop to a greater value or use ImageScale to make the image smaller.