Page code displayed in output pdf

Phoca PDF - creating PDF documents in Joomla! CMS
Augure
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 13 Aug 2014, 14:12

Page code displayed in output pdf

Post by Augure »

Hello all,
i'm totally new to Joomla.

The Phoca Pdf plugin is amazingly working fine on every "standard" page i have. :))

I needed to create a specific page wich displays a php created grid.
I use the Sourcerer plugin with {source} tag and it displays fine but when i try to print out in pdf, i have all the source code that gets on my document and no grid.

I searched almost everywhere on this support forum and Sourcerer's forum but no clues.
P.S : i tried with a more simplier php code in the {source} tag but nothing is working.
I think i have done something wrong somewhere because of the lack of same problems.

All help is highly apreciated!
Lionel
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Page code displayed in output pdf

Post by Jan »

Hi, since Phoca PDF 3, you can enable in options, that content plugins can be translated to PDF but be aware, this only work for simple html code (so if your plugin does render simple html code, it should be displayed in PDF)

Jan
If you find Phoca extensions useful, please support the project
Augure
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 13 Aug 2014, 14:12

Re: Page code displayed in output pdf

Post by Augure »

Hi Jan,
thanks a lot for responding me so fast!
Yes, php code does read a csv file and export an html table css formatted with html tags. Nothing really weird i think.
I searched for the option you mentioned. Is it this one :
Extensions -> Manage Plugins -> Phoca PDF Content -> Display plugin code (NO)

Because, an echo "test" in php does not print.
Is there a way to get through this?

Lionel
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Page code displayed in output pdf

Post by Jan »

Hi, I think, then you need to somehow check the errorLog on your server to see if there is not rendered any php error?

Jan
If you find Phoca extensions useful, please support the project
Augure
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 13 Aug 2014, 14:12

Re: Page code displayed in output pdf

Post by Augure »

Thanks a lot. I will check that.

Lionel
Post Reply