Thanks x-ice,

I found that adding this line solves half the problem:

PdfExport.ImageQuality = ImageQuality.Highest;