+ Start a Discussion

Is there any possibility to get the entire vfpage as image and save as attachment to record on click of button

Hi All,

I am using static resource bootsrap for alignment of the page, when i am trying to render the page as pdf the alignment is failing and getting the boostrap file code as text and disaplyed on my vfpage at the top. 

my requirement is on click of button on vfpage i need to get the page(as pdf/as image) and attach to the record. can we acheive this with out loosing alignment. if yes it would be very greatful if you can share me with code for the same. Thansk

Best Regards,
Mohammad Yaseen
Shruti SShruti S
I think you could. Have you explored this JavaScript Library - https://html2canvas.hertzen.com/ ?