Include Google Static Maps

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for COM/ActiveX (v6)  /  Include Google Static Maps

DynamicPDF CoreSuite for COM/ActiveX (v6) Forum

 May 07 2012 6:30 AM
Hello,

is it possible to integrate Google Static Maps into a pdf ?

In ASP you can include static maps via a simple tag:

<img border="0" src="https://maps.google.com/maps/api/staticmap?center=Brooklyn+Bridge,New+York,NY&zoom=14&size=512x512&maptype=roadmap&markers=color:blue%7Clabel:S%7C40.702147,-74.015794&markers=color:green%7Clabel:G%7C40.711614,-74.012318&markers=color:red%7Clabel:C%7C40.718217,-73.998284&sensor=false"/>

I need to include this map as an image into the pdf.

Thanks.
 May 07 2012 7:28 AM
Posted by a ceTe Software moderator
Hello,

You can add image to PDF document using our DynamicPDF Generator for COM/ActiveX product.  You will need to load the image file dynamically or read the image contents as stream then you can use AddRowImageData method to add the image to the PDF document. You can refer documentation on image Data object and image reuse at: http://www.dynamicpdf.com/Support/COM_Help_Library_11_12/html/DynamicPDF~ImageData.html and http://www.dynamicpdf.com/Support/COM_Help_Library_11_12/html/GeneratorImageReUse.html.

Thanks,
ceTe Software Support Team.
 May 07 2012 8:49 AM
please, could you provide me an ASP sample code especially for Google Maps.
 May 08 2012 8:08 AM
Posted by a ceTe Software moderator
Hello,

We have sample code to read the image files using file path and using streams at:
http://www.dynamicpdf.com/Support/COM_Help_Library_11_12/html/DynamicPDF~ImageData.html and http://www.dynamicpdf.com/Support/COM_Help_Library_11_12/html/GeneratorImageReUse.html. Similarly you need to  load the Google maps using paths. This should work for you. We do not have sample code for adding Google maps to PDF. Our API supports adding retrieved image data to the PDF and you need to retrieve the image data using some other classes of ASP.

Thanks.
ceTe Software support Team
 Sep 13 2019 3:30 AM
I have  added a div of google map, but it is not showing in pdf.

Please help.

Thanks
 Sep 13 2019 8:15 AM
Posted by a ceTe Software moderator
Hello,
 
Version 6 of DynamicPDF Generator does not support the image tag. We have a new HtmlArea page element which supports the image tag in v10 of the DynamicPDF Generator for COM/ActiveX product. Please try this on your end and see if it works. You can refer to the documentation on the HTMLArea page element here.

The fully functional evaluation edition of DynamicPDF Generator for COM/ActiveX product is available for download here. Also refer to the documentation on referencing an the library and deployment here.

Thanks,
ceTe Software Support Team

All times are US Eastern Standard time. The time now is 6:26 AM.