0
I have a problem with rotary for PDF generation, where I am putting a color image but when generating the report it appears in black and white and not colored as it should appear. Is there a procedure to be done? I am calling my image this way in my html file:
<div>
<img src="@Server.MapPath("~/Images/logo_relatorio.png")"/>
</div>
strange thing. How do you generate this report? It is not setup for example of your browser that is not to print in color?
– user26552
So I could not find any settings of my browser on this case, I am using google Chrome and this enabled your pdf preview plugin. More by saving the pdf and opening again in a reader such as from own windows 10 or adobe Reader the image still turns black and white and not colored. I have also tested in other browsers and the same problem is occurring.
– Eduardo Mendonça Braga
Answer me how you are generating this report? Are you giving a javascript command to print the window or is it something else, some component?
– user26552
I’m calling an action link, where I pass my action name and controller name, so when I trigger actionlink in my action in my controller returns to a view that is my html where the image call is and then generates on the screen that html as pdf using the rotary that is being configured in this controller action.
– Eduardo Mendonça Braga
Problem solved by changing the property pdf.Isgrayscale to false the same was true so leaving every report in black and white, thanks guys...
– Eduardo Mendonça Braga