I’m using 2018r3 and DynaPDF Plugin MBS_DynaPDF_dynapdf3_Plugin_18844 (released at the end of 2015)
logo is a png image added to the project’s contents via right click (Image).
Without having Hi-DPI enabled this works:
Dim imgLogo as Picture = logo
Dim imgLogoWidth As Integer = 140
Dim imgLogoHeight As Integer = 49
call pdf.SetTransparentColor pdf.RGB(0,0,0)
call pdf.InsertPicture(imgLogo, imgLogo.mask, 560.0 - imgLogoWidth, 40, imgLogoWidth, imgLogoHeight)
When I enable Hi-DPI I’ll get a NIL exception related to the mask missing. I don’t understand why this happens.
I don’t think that this is a DynaPDF bug. It rather looks like XOJO Images are handled in a different way when Hi-DPI…I really have no clue how to investigate further right now…as I’m not sure if this is a XOJO bug, or whether I don’t understand how to do these things right…
Also in the current DynaPDF examples, like
- Create PDF with Picture and Mask
- Create PDF with Picture
- Create PDF with Picture file
- Create PDF with Picture with transparency
I could not figure out a way to include a PNG.