Printing Google maps, error

Phoca PDF - creating PDF documents in Joomla! CMS
Rapante
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 29 Jan 2011, 03:31

Printing Google maps, error

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Printing Google maps, error

Post 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
If you find Phoca extensions useful, please support the project
Post Reply