Home
Analytics
BIRT PDF Image issue
megabri
<p>I have a report that has images in it. They're generated from links such as:</p>
<p><a data-ipb='nomediaparse' href='
https://camsqa2web1.lirr.org/DEFECTSKETCHES/51-O-020_Defect_Sketch_Underdeck1382116333948.jpg'>https://camsqa2web1.lirr.org/DEFECTSKETCHES/51-O-020_Defect_Sketch_Underdeck1382116333948.jpg</a></p>
;
<p> </p>
<p>When I run my report through the report viewer or the web viewer I can see the images just fine. When I try to run the report as a PDF though the images don't show, they just say "The resource of this report item is not reachable". Any ideas? Could it be related to the fact that the link is using https? </p>
Find more posts tagged with
Comments
micajblock
<p>How are you embedding the image?</p>
megabri
<p>The original image is dynamic. On the report its a URI. It pulls the url from our database. For a test I hard coded the url i posted above to see if the image would show and it showed in the report viewer just not as a PDF.</p>
micajblock
<p>Are you using an image report item or embedding the image in a text report item? What version of BIRT are you using?</p>
megabri
<p>I'm using an image report item. In my other environment that uses http urls the report works fine. I'm not sure if that has anything to do with it.</p>
micajblock
<p>What version of BIRT?</p>
megabri
<p>3.7.1. I made some edits to my posts above, sorry the site wouldn't let me repost quickly.</p>
micajblock
<p>Not sure. The attached simple example works for me. Can you try it?</p>
megabri
<p>It's 3.2.2, I can't open it in my 3.7.1 developer.</p>
micajblock
<p>Open one of your designs in XML Source and my report in a text editor copy the 2nd and 3rd line from your design and replace these 2 lines:</p>
<div>
<pre class="_prettyXprint">
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.23" id="1">
<property name="createdBy">Eclipse BIRT Designer Version 4.2.3.v20131216-0430 Build <4.2.3.v20131216-0430></property></pre>
</div>
<div>Then you should be able to open the report.</div>
megabri
<p>Nice, now I learned a new trick lol.</p>
<p> </p>
<p>I can see the image when i preview it, I can't when I run it through PDF.</p>
micajblock
<p>I do. How are you creating the PDF? Try opening in the viewer and then export to PDF.</p>
megabri
<p>I'm creating the PDF 2 ways. First while in my report editor I run the report as a PDF. Second when I upload my report to maximo I run the report which by default runs it in the birt viewer (i see the image at this point) then when I export it to PDF it doesn't show.</p>
micajblock
<p>Ahhh, Maximo. So what happens in BIRT Designer when you view the report in web viewer and then export to PDF?</p>
megabri
<p>It shows the picture. As soon as I export to PDF the image doesn't show.</p>
micajblock
<p>Just to clarify. Using my design in BIRT Designer?</p>
micajblock
<p>Just downloaded 3.7.1 and my design works fine and shows the image in PDF. The issue in Maximo is that I think when you export to PDF, Maximo actually runs the report again! It also might use the runandrender task (which might be causing the problem). </p>
megabri
<p>Any idea how to get around that? I'm also finding some information where it may have to do with certificates or something like that. The thing that's weird is in my other environment it works fine. That's an http environment, not an https.</p>
micajblock
<p>OK, let me get this right. Your original design works fine in Maximo if the image is available through HTTP, but does not through HTTPS?</p>
megabri
<p>Correct. I have a test environment that's http:// and when I use the exact same report it's able to generate the image when i export to pdf. When I use my QA environment that's https:// I can't see the image when I export to pdf.</p>
<p> </p>
<p>Even when I used your report with the hard coded url in my https:// environment i couldn't get the image to show up in pdf.</p>
micajblock
<p>Is there a way you can provide I URL that I can use to test? I do not have any images that require HTTPS.</p>
actuser9
<p>Hi Mica,</p>
<p> </p>
<p><span style="font-size:14px;">I downloaded the report posted by you and I can see it on web viewer but not on the PDF output. The PDF throws a message "The resource to this item is not reachable".</span></p>
<p> </p>
<p><span style="font-size:14px;">I was looking into forums for one of the scenario where the image data has to be combined with the text (html) data. I have a CLOB column in my database which will have both text and image data. The text element can populate both the image and text data but does not show images in the PDF output. Any ideas as to how to handle this scenario.</span></p>
<p> </p>
<p><span style="font-size:14px;">Assumption is that the CLOB data can have both html data and img tags at multiple places. Please help.</span></p>
micajblock
<p>This might be an IBM Maximo specific problem. If it works in the designer, you might have to go to IBM to ask them why it does not work.</p>
actuser9
<p>Hi Mica,</p>
<p> </p>
<p>I am trying to run the report in BIRT Pro Version: 4.2.3.</p>
micajblock
<p>actuser9,</p>
<p>If this is a different issue than the original, can you start a new post with as much details as you can? Thanks.</p>
actuser9
<p>Ok Thanks Mica. Will do. </p>