Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

HTML Frame inside PDF

Abhinav_Sharma
Level 4
Level 4

I want to display HTML content inside PDF. This HTML content just contains an Image, nothing else. How can it be possible? I am not able to find any way doing this. Is it possible to render HTML content inside PDF?

Thanks.

-

Abhinav

2 Replies
pguerett
Level 10
Level 10

No ...PDF does not hav eth eability to have interpretted HTML content inside of it.

Paul

Abhinav_Sharma
Level 4
Level 4

Thanks for reply Paul.

Actually I need to render a Google Map (Static JPG Image) in ImageField dyanamically. Pls have a look on snap below -

requirement.jpg

But ImageField accepts only Base64 encoded value, so I can't use the URI of static image. Also I can't load it in temp memory inside PDF (Using HTTP Request) & then convert it into Base64 value. So I thought of putting HTML frame inside PDF.

Now I am thinking that the only way left is to make a WebService in b/w GoogleMap and PDF which will accept the location as the I/P and returns with the Base64 encoded value. Is it the correct way? Or Is there any better way to do this?

Please help. Thanks.

-

Abhinav