You need to sign in to do that
Don't have an account?
Chris Heath
PDF rendered page not displaying image
This is my third time trying to post this question... Third time's the charm?
Hello all,
I'm having an issue trying to display an image in a PDF rendered Visualforce Page. The image's URL is stored in a field on the object controlling the page.
I've tried using <apex:image...> and <img src...>. Using the actual URL works just fine and displays the image. Removing the renderAs="pdf" displays all images correctly.
Any help would be much appreciated.
Thank you!
Code snippet:
Hello all,
I'm having an issue trying to display an image in a PDF rendered Visualforce Page. The image's URL is stored in a field on the object controlling the page.
I've tried using <apex:image...> and <img src...>. Using the actual URL works just fine and displays the image. Removing the renderAs="pdf" displays all images correctly.
Any help would be much appreciated.
Thank you!
Code snippet:
<apex:page standardController="Order__c" showheader="false" standardStylesheets="true" renderAs="PDF"> <apex:pageBlock > <apex:image value="ImageStoredAsDocument" width="98%"/> <!-- this displays fine --> <img src="{!Order__c.CustomField_URL__c}" /> <!-- this does not display when rendered as PDF --> <img src="ActualURL" /> <!-- this displays fine --> </apex:pageBlock>
All Answers
<apex:image value="{!Order__c.CustomField_URL__c}" width="98%"/>
Thank you for response!
Thank you!
Thanks again!