You need to sign in to do that
Don't have an account?

Image not Working on PDF rendered page
Hello,
I created visualforce that converts the page to PDF..
I have 2 pages, both are using the Same controller (where my image URL is located) and both have the same code except the second 1 is rendered as PDF. The 1st page serves as a Preview before converting it to PDF format.
The PDF format image shows like this one below.

Below is how I call the URL from the Controller (which the same way I call it from the preview and it's working)
I have this one from the Controller : imageURL = '/servlet/servlet.ImageServer?id=01555000000fdlO&oid=00D5500000066Iu&lastMod=1445545410000';
Then I call it from the PDF Rendered VF like this.
Not sure where else to look so I decided to ask.
Thank you!
-Zach
I created visualforce that converts the page to PDF..
I have 2 pages, both are using the Same controller (where my image URL is located) and both have the same code except the second 1 is rendered as PDF. The 1st page serves as a Preview before converting it to PDF format.
The PDF format image shows like this one below.
Below is how I call the URL from the Controller (which the same way I call it from the preview and it's working)
I have this one from the Controller : imageURL = '/servlet/servlet.ImageServer?id=01555000000fdlO&oid=00D5500000066Iu&lastMod=1445545410000';
Then I call it from the PDF Rendered VF like this.
<table style="border: 1px solid white;" width="100%"> <tr> <td style="border-color:white" width="80px" > <apex:image url="{!imageURL}" /> </td> <td style="border-color:white; text-align:left;" width="70%"> <font face="calibri" color="black" size="10"><h2>Traffic Control Form</h2></font> </td> </tr> </table>
Not sure where else to look so I decided to ask.
Thank you!
-Zach
then you just call your image with the NameOfYourImage
or try this
All Answers
'/servlet/servlet.FileDownload?file=01555000000fdlO&oid=00D5500000066Iu&lastMod=1445545410000';
then you just call your image with the NameOfYourImage
or try this
David's approach worked. Thanks a lot :)