Is there any way to use Google Maps API for PDF. I have a form having a text input (which accepts a address eg: city name) & a button. On button click I want to access google map api and display map image inside PDF (Image Field).
Is it possible?
Thanks in advance.
-
Abhinav
Solved! Go to Solution.
Views
Replies
Total Likes
The only way that I know of is to make a web service call and return the image (base64 encoded). Then bind the result of the web service to the image field.
Paul
Views
Replies
Total Likes
While looking into Google Map API, I found a way to receive static image (.jpg/.png/etc) by calling the below URL having some needed parameters:
http://maps.google.com/maps/api/staticmap?center=New Delhi,India&zoom=14&size=400x400&sensor=false
This URL response me with a Image. Now I want to use this Image to be displayed in Image Field of a PDF form. It may need to convert this image in Base64 format then assign it to ImageField.rawValue. But before that I need to call this URL and get the Image in some variable.
Please help.
-
Abhinav
Views
Replies
Total Likes
Hi,
I think you are going to come up against security policies for linking an image field to an external source.
If you do a search Bruce has some posts on Base 64 conversions. From memory I think it is server side.
A very rough workaround would be to use gotoURL which will open the image as a separate PDF. This is probably not good enough: http://assure.ly/efov2Y
Good luck,
Niall
Thanks Niall.
I don't want to open image in new window. I think the same as you, to make a separate Web Service in b/w PDF & Google Maps for getting image data & Base64 conversion. I have explained my problem on http://forums.adobe.com/message/3460808#3460808
I hope you would got the Idea of my problem.
Good Luck to me to get this job done.
-
Abhinav
Views
Replies
Total Likes
The only way that I know of is to make a web service call and return the image (base64 encoded). Then bind the result of the web service to the image field.
Paul
Views
Replies
Total Likes
Just a quick thought, would the Maps API for Flash be an option? Obviously would need the next version of Livecycle Designer?
Views
Replies
Total Likes
I got this done by making my own web services.
But now I am facing another problem. I am only able to access services when I am opening form in Acrobat 9, But NOT able to access them in Adobe Reader 9. New thread for it @ http://forums.adobe.com/thread/790154?tstart=0
Thanks all.
-
Abhinav
Views
Replies
Total Likes
Hi,
That's because users with Reader cannot make data calls UNLESS the form has
been Reader enabled using LC Reader Extensions. See here:
Applying Reader rights in Acrobat will not work. Data connections will still
be unavailable.
Good luck,
Niall
Thanks Niall. Can we purchase LC Reader Extension License Separately Or we have to purchase some dependent s/w also? I am currently using Trial Version of LCES2 & my reader extension license has expired.
-
Abhinav
Views
Replies
Total Likes
Hi,
You should talk to the Adobe sales reps in your area. They would be the best to advise on options. Check out:
http://www.adobe.com/products/livecycle/
Hope that helps,
Niall
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies