Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

SVG with transparent background not showing correctly when printing to Adobe PDF

Hi,

I'm trying to print a report containing an SVG loaded into a ppImage, but when choosing Adobe PDF as the printer, the SVG doesn't show correctly. The SVG has a transparent background but in the PDF it has a black background. I've tested using Microsoft Print to PDF and ReportBuilder's export option, and they work well; no black background. Any ideas why this is happening and if I'm able to fix it through Report Builder?

Thank you!

RBuilder 22.04 in Delphi 12.2.

Comments

  • Hi Andrew,

    Unfortunately we do not have much control over how various printer drivers handle image processing.

    I first recommend upgrading to the latest version of ReportBuilder and see if that helps. There was an enhancement for RB 23.01 that dealt with transparency.

    If this does not help, try setting the TppImage.DirectDraw property to True and retest.
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • Hi Nico,

    Just tested TppImage.DirectDraw and it doesn't help. We will look into upgrading to RB23.01. Thank you for the help!
Sign In or Register to comment.