PNG files in reports have black background

Stimulsoft Reports.JS discussion
Post Reply
rpotyka
Posts: 13
Joined: Mon Jan 07, 2019 8:26 am

PNG files in reports have black background

Post by rpotyka »

Hi I'm using stimulsoft-reports-js node package in my backend.
The application allows user to download pdf with some data mapped which includes logo base 64 buffer.
both png and jpg files are allowed but when generating pdf the background of the png image comes up as black (the problem does not appear in the viewer designer)
Report is exported to pdf via stimulsoft exportToAsync function which I saw was recommended when handling images on the pdf.

is there some property in export or report options that should be set before exporting it to pdf in order to have the png files being rendered correctly.
Will really appreciate any advice to resolve the problem.

Kind regards.
Attachments
Example withh erronously displayed png image
Example withh erronously displayed png image
_2019-01-29 17_41_04-Window.png (51.64 KiB) Viewed 2762 times
Lech Kulikowski
Posts: 6254
Joined: Tue Mar 20, 2018 5:34 am

Re: PNG files in reports have black background

Post by Lech Kulikowski »

Hello,

Please send us a sample report with test data which reproduces the issue for analysis.

Thank you.
rpotyka
Posts: 13
Joined: Mon Jan 07, 2019 8:26 am

Re: PNG files in reports have black background

Post by rpotyka »

Here's an example with the png file. It's from samples JS pdf export example and it's altered to show the png background problem.
I've attached generated pdf as well.
Attachments
PNGexample.zip
(158.29 KiB) Downloaded 156 times
Lech Kulikowski
Posts: 6254
Joined: Tue Mar 20, 2018 5:34 am

Re: PNG files in reports have black background

Post by Lech Kulikowski »

Hello,

We need some additional time to investigate the issue.

Thank you.
#7826
rpotyka
Posts: 13
Joined: Mon Jan 07, 2019 8:26 am

Re: PNG files in reports have black background

Post by rpotyka »

Hello,

is there any update on this issue or some plan/estimation to when this could be resolved?
Resolving this issue is very crucial to the project I'm working on.

Sincerest regards.
Lech Kulikowski
Posts: 6254
Joined: Tue Mar 20, 2018 5:34 am

Re: PNG files in reports have black background

Post by Lech Kulikowski »

Hello,

We work hard on this problem and do our best to do it as fast as possible. We will let you know when the solution is available.

Thank you.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: PNG files in reports have black background

Post by HighAley »

Hello.

Sorry, there are some technical limitations that do not allow us to fix the issue.
As a workaround, you could change the transparent background to white.
It will fix the issue.

Thank you.
Post Reply