Include Google Static Maps

Include Google Static Maps

Forum member · May 7, 2012
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.

Re: Include Google Static Maps

Support · May 7, 2012
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.

Re: Include Google Static Maps

Forum member · May 7, 2012
please, could you provide me an ASP sample code especially for Google Maps.

Re: Include Google Static Maps

Support · May 8, 2012
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

Re: Include Google Static Maps

Forum member · Sep 13, 2019
I have added a div of google map, but it is not showing in pdf. Please help. Thanks

Re: Include Google Static Maps

Support · Sep 13, 2019
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