Hi,
I am considering buying your product as I have been extremely happy with the quality of the PDF output, however, I am having issues displaying dynamic images.
I am generating a pdf where my page includes a Repeater that contains images uploaded by the user. I am databinding the ImageUrl of the Image inside the Repeater to point to my image handler "img_display.ashx". My image handler then generates the image stored in the database. See below:
Code: HTML/ASPX
<asp:Repeater runat="server" ID="rpt_images" DataSourceID="sds_images">
<ItemTemplate>
<asp:Image ID="img_photo" runat="server" CssClass="bordered" ImageUrl='<%# "~/media/img_display.ashx?image=" + Eval("ImageID").ToString() + "_0x0" %>' />
</ItemTemplate>
</asp:Repeater>
If I comment out the line "AspxToPdf1.RenderAsPDF(fileName);" in my .cs I can view my web page and see the images displaying correctly. I am also using the same image handler throughout the site so I know there is no problem with it.
Also if I replace my dynamic ImageUrl to point directly to an image location on the server, then I can RenderAsPDF correctly.
The issue arises when I attempt to RenderAsPDF using the databound ImageUrl. This times out every time regardless of the image size, number of images, image quality etc.
I have also tested by setting up breakpoints in my code both at the point where RenderAsPDF and within my image handler. I can see when I step through that RenderAsPDF is triggered but the process does not get as far as my image handler when using the databound ImageUrl.
Any help would be greatly appreciated. As I mentioned, I fully intend to have my company purchase the full version once I can show the client that this is working.
Thanks.