function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Breandan McCannBreandan McCann 

Force an image in a rich text field to be a certain size

Hi,

Is it possible to force an image pasted into a rich text field to be displayed at a certian size when rendered as a pdf?
No matter what size of an image pasted in by the user i need it to be locked to the size designated by the code.

Thanks
Suraj Tripathi 47Suraj Tripathi 47
Hi Breandan,

please check below link it will help you.

https://sfdcknowledgebank.wordpress.com/2013/10/22/ui-trick-how-to-fix-the-width-of-image-displayed-via-rich-text-area-field/


If you find your Solution then mark this as the best answer.

Thank you!
Regards,
Suraj Tripathi  
Mamatha R 4Mamatha R 4
Hi Suraj,
The trick mentioned there will work for regular vf page but not for render as pdf. Do you have any solution for this?