在生成PDF时,如何将Google Map(或其他GIS映射)输出嵌入PDF? [英] How do I embed Google Map (or other GIS mapping) output in a PDF as I generate it?

查看:147
本文介绍了在生成PDF时,如何将Google Map(或其他GIS映射)输出嵌入PDF?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在服务器端生成包含地图,带有标记等的PDF文档,但是据我所知,由于JavaScript的依赖,使用Google Maps不可能做到这一点.

I need to generate PDF documents server-side that include a map, with markers and the like, but to my knowledge this isn't possible with Google Maps because of JavaScript reliance.

是否可以通过某种方式使用Google Maps API,或者是否有其他免费(或廉价)替代品具有这种功能和可比的功能?

Is there some way to use the Google Maps API for this, or is there some other free (or cheap) alternative with this capability and comparable functionality?

推荐答案

您可以使用Google Maps静态api生成图像: http://code.google.com/apis/maps/documentation/staticmaps/

what you can do is to use google maps static api to generate an image: http://code.google.com/apis/maps/documentation/staticmaps/

,然后将该图像导入pdf.

and then import that image into pdf.

这篇关于在生成PDF时,如何将Google Map(或其他GIS映射)输出嵌入PDF?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆