EMF image displays black box when exported to PDF.

KB-20240319-01

Version

XFRX 18.0

Symptoms

  • Default picture format is not changed or chanched to BMP.
  • EMF image displays black box.

Cause

Because PDF doesn't support EMF, than XFRX converts EMF to image specified by DefaultPictureFormat property. EMF contains alpha chanel (pixelformat 32bpp+Alpha), but GDI+ return pixelformat 32bpp only.  BUG in convert functions  (in xfrxlib.fll) modify bpp value to 4.

Workaround

Change DefaultPictureFormat to another value than BMP.

m.loSession.SetOtherParams("DEFAULTPICTUREFORMAT", "PNG")