The following instructions on the joomla plugin documentation produce unexpected results:
Edit the PDF Generator script provided by Joomla in order to make it run all content plug-ins. To do so, just perform the following:
Edit the file <Joomla root folder>/components/com_content/views/article/view.pdf.php
And after the lines:
// process the new plugins
JPluginHelper::importPlugin('content', 'image');
$dispatcher->trigger('onPrepareContent', array (& $article, & $params, 0));
Add the two lines:
JPluginHelper::importPlugin('content');
$results = $dispatcher->trigger('onPrepareContent', array (& $article, & $params, 0));
The pdf window shows the following:
%PDF-1.5 3 0 obj <> endobj 4 0 obj <> stream x��YmO�H����F�������]��E\�^r���E& HH�QT��O�g�� I�k�!�/�:��<3;���\��M�ni�H��?\xW����cE�~ �����t(јXe���Lũ����+�.:b z�X��RH�I�r�-�b��.�Rl�>j�A�-.P����b��'뛐$�ⵌ�k��,kK:|XH�� he2y"��*���Dz&G�M���0>\�VY$S�(m�j���H�&4\A�O���� �Nqo����q� XEW�c=u�a���#�zls�!��8A�ڨ�@�19$�z`��`-�.��6�k�7X>�_�ܟ[��m- �5!y�.�!��s��a�b�j�p6�܄6<�� �n�1!�4�G��%�64镬L{x��q��! E�Ð��?W����W�Z�W,�GGL?=f���bV�f�1����QJ^,J�%M~0m�8�*��4;p!ZVM�a�=.���]B�6�W��ڑX9�n�/bK��z
This is just the start of a very long output bet you get the picture.
Can anyone help with sorting this out. I have no idea what is going wrong here and I followed the instructions for altering the file carefully?
The code in the joomla file now looks like this:
// process the new plugins
JPluginHelper::importPlugin('content', 'image');
$dispatcher->trigger('onPrepareContent', array (& $article, & $params, 0));
JPluginHelper::importPlugin('content');
$results = $dispatcher->trigger('onPrepareContent', array (& $article, & $params, 0));
$document = &JFactory::getDocument();
|