Need advice for importing high quality logo into PDF for Web app (using MBS DynaPDF)

I am using MBS Dyna PDF and Xojo 2014 r2.
My webapp generates reports for different companies. Reports are based on a PDF template, but I need to have each company’s logo on the top of the report.

I can get all that working, but the logos do not appear high quality in the resultant PDF (compared to having the logo be part of the template itself, which I can not do given I have multiple customers and I do not want to create a template for each customer).

I have tried importing (via DynaPDF) png, tif, jpg - but none result in what I am looking for (crisp image, no mottling, transparent background). I have also tried using different resolutions for the source image (200x100, 1000x500) but that doesn’t seem to matter.

This is what I am doing…

Any advice?

you may want to use this lines:

call pdf.SetUseTransparency(false) call pdf.SetResolution(300) call pdf.SetCompressionFilter(p.kcfFlate) call pdf.SetSaveNewImageFormat(false)

UseTransparency false will disable the plugin from using one color as transparent.
Resolution 300 instead of default 150 increases maximum resolution of images.
CompressionFilter flate disables image compression.
SaveNewImageFormat indicates that we prefer to pass through images.

Excellent - will give those a try. Thanks.

Great

Worked like a charm - thank you.