'&type=atom'), 'alternate',
'rel', $atom);
To use this you will need to modify $feed to point to the correct location for
your component.
PDF
Views that support the PDF document type build the data to be rendered in PDF
format in HTML. Joomla! uses the TCPDF library to convert that HTML into a PDF
document. Not all HTML tags are supported. Only the following tags will affect the
layout of the document; all other tags will be removed.
h1, h2, h3, h4, h5, h6
b, u, i, strong, and em, sup, sub, small
a
img
p, br, and hr
font
blockquote
ul, ol
table, td, th, and tr
As well as setting the PDF document content, we can modify the application/
generator, file name, metadata/keywords, subject, and title. This example shows
how we can modify all of these. This should be done within the view class's
display() method.
$document =& JFactory::getDocument();
$document->setName('Some Name');
$document->setTitle('Some Title');
$document->setDescription('Some Description');
$document->setMetaData('keywords', 'Some Keywords');
$document->setGenerator('Some Generator');
??? ??? ??? ??? ??? ??? ??? ??? ???
Chapter 4
[ 91 ]
This screenshot depicts the properties of the resultant PDF document:
To add content to the document all we need to do is output the data as we would normally.
Pages:
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136