Page 1 of 1

Printing Google maps, error

Posted: 15 Feb 2011, 17:10
by Rapante
Hello,

is there a way to have Phoca PDF print maps included in articles by the Phoca maps plugin?

As it did not get it to work, I included a static map (image) with the following url:

Code: Select all

http://maps.google.com/maps/api/staticmap?center=berlin&format=jpg&maptype=roadmap&mobile=false&markers=|color:red|label:1|Hamburg&markers=|color:blue|label:2|Berlin&markers=|color:green|label:3|Potsdam&size=500x300&key=&sensor=false
Which (when printing pdf) gives me the error:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1829397 bytes) in /var/www/vhosts/mondvojagxo.de/httpdocs/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php on line 9005
However, it does not happen when I use only one map marker, resulting in a shorter url. Phoca PDF seems to have trouble with long urls.

Re: Printing Google maps, error

Posted: 16 Feb 2011, 15:13
by Jan
Hi, there is no way to bring the online maps to "offline" PDF document. (You can disable plugin code in parameters, so the pure plugin code will be not displayed in the PDF, but the rendering of plugins does not work in PDF, it is in fact "offline" document which displays pure article content. PDF is not like HTML :-(

Jan