Phoca PDF now showing content

I installed the plug-in into a Joomla 3.5.1 site. The plug-in wouldn’t run at all at first till I found a fix for that. I will try to list that one as well later.

The header and header line would print but nothing else. I found the following article that fixed this for me.

It was this code I needed:

      $document = &JFactory::getDocument();
$document->setHeader($this->getHeaderText($item, $params));

$item->article_text = $item->introtext;
$item->article_text .= $item->fulltext;

echo $item->text;

I hope this helps someone else out there…