You need to sign in to do that
Don't have an account?
Natalya Murphy 8
Render scaled-down version of RTF embedded image in PDF output
We have a VF extensions that's used to render a PDF receipt after a credit card transaction is recorded.
We have a Rich Text Area field named Signature__c that's used to store a reference to a signature image. A sample entry into the field looks like this:
This field is then rendered on the page via the following code:
Is there any markup I can put on the VF page to make this image show up at half-scale?
So ultimately the problem is: I want to save the original formatting of 500x250 in the database, but when that Rich Text area field renders on the PDF, I want it all to be at 50%.
We have a Rich Text Area field named Signature__c that's used to store a reference to a signature image. A sample entry into the field looks like this:
<img src="/servlet/servlet.FileDownload?file=00P1F000000lOkbUAE" width="500" height="200"></img>The above entry gets saved to the record's Signature__c field during order of execution of the page load.
This field is then rendered on the page via the following code:
<apex:outputfield value="{!Transaction_Record__c.Signature__c}"/>Now, even though the image has dimensions of 500 x 250 when stored in the database (which allows it to display properly on the normal record page), I want it to render at 50% scale on the custom VF page that will ultimately become a PDF.
Is there any markup I can put on the VF page to make this image show up at half-scale?
So ultimately the problem is: I want to save the original formatting of 500x250 in the database, but when that Rich Text area field renders on the PDF, I want it all to be at 50%.