Problem with image

Problem with image

Forum member · Oct 25, 2013
Hi I am trying to dynamically generate a doughnut_chart and add it it to my pdf-document. I construct the doughnut as a "System.Windows.Forms.DataVisualization.Charting.Chart()" and then add some series to the chart of the type "System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Doughnut". All this works fine and i get the image i want if i write it to disk. But when I try to display the image in my pdf-document it is simply greyed out, it is replaced by a gray rectangle (of the correct size). I have tried a number of approaches (saving to disk, writing to a memorystream and then using ImageData.getImage) but nothing works. I have tried both with and without scaling in the construction of the Image-object. I really need some help here, totally out of ideas to try. Best Regards Magnus

Re: Problem with image

Support · Oct 25, 2013
Hello Magnus, Can you please send over the following details to our [^a|mailto:support@cete.com|opennewwindow|support ^] team so that they can look into it further? 1.Save the image to the disk and send over the image file. 2.Sample code used to add image to the PDF. 3.Exact version and build number of the DynamicPDF DLL file. Thanks, ceTe Software Support Team.

Re: Problem with image

Support · Oct 28, 2013
Hello, The PDF generated by our product DynamicPDF Generator was a valid PDF and the image was correctly added to the PDF. Upon further investigation it has been found that the below Adobe Reader setting on customer’s machine was preventing the image from rendering when the PDF is opened for viewing. Edit > Preferences > Category: Page Display > "Show large images” Thanks, ceTe Software Support Team.

Re: Problem with image

Forum member · Oct 29, 2013
Yes, as support stated, the problem was with a setting in adobe reader and this cannot be affected from within the document. I investigated if it would be possible to force this setting in some way but i was unsuccesful. I then tried to find out if I could detect the setting somehow by using "adobe javascript" but this was also unsuccesful. I believe I will just have to live with this problem.