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
DHO_604DHO_604 

Getting an image to fit to one page rendered as pdf

I have a rather large image file that spans multiple pages when I render the visualforce page as a pdf file.  Is there anyway to get the image to fit into one page by using a visualforce command.  

 

Also, is there any way to display text on top of the image file? ie use the image as a background?

 

Thanks.

Sonali BhardwajSonali Bhardwaj

You can fix the image size and for writing text above the image you have to use HTML. There are some property in HTML like backgroundimage, you can use that.