<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Generate page as PDF from TYPO3 with the webkitpdf extension</title>
	<atom:link href="http://people.merea.se/david/2010/02/24/generate-page-as-pdf-from-typo3-with-the-webkitpdf-extension/feed/" rel="self" type="application/rss+xml" />
	<link>http://people.merea.se/david/2010/02/24/generate-page-as-pdf-from-typo3-with-the-webkitpdf-extension/</link>
	<description>programming and web design centric weblog</description>
	<lastBuildDate>Thu, 02 Feb 2012 21:41:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Jochen</title>
		<link>http://people.merea.se/david/2010/02/24/generate-page-as-pdf-from-typo3-with-the-webkitpdf-extension/comment-page-1/#comment-333</link>
		<dc:creator>Jochen</dc:creator>
		<pubDate>Tue, 22 Feb 2011 14:39:17 +0000</pubDate>
		<guid isPermaLink="false">http://people.merea.se/david/?p=64#comment-333</guid>
		<description>webkitpdf with customized templates
-----------------------------------
This is an example how to create PDF files using a customized template and the webkitpdf extension. For this to work you need to install the realurl extension too. 
Some disadvantage is the presentation of the PDF file. It is only downloadable. There is no possibility to show it inline in a browser tab or to launch it in Acrobat Reader from the download dialog.

# set current page title as output filename
plugin.tx_webkitpdf_pi1.staticFileName = TEXT
plugin.tx_webkitpdf_pi1.staticFileName.data = page:title

# Generate a typoLink object to display as link for PDF generation 
# on the web page.
# This pdfLink version allows the use of an customized template for 
# pdf generation. For this to work the extension realurl has to be 
# installed and an additional PAGE version (e.g. page_pdf=PAGE) 
# with another typeNum (e.g. typeNum=175) should be defined.
lib.pdfLink = TEXT
lib.pdfLink {
  value = Print version
  typolink {
    parameter.insertData=1
    parameter = {TSFE:id}
    no_cache = 1
    title = Print version of this page
    additionalParams {
      data = getIndpEnv:TYPO3_REQUEST_URL
      # add the typeNum at the end of the wrap
      wrap = &amp;tx_webkitpdf_pi1[urls][0]=&#124;?type=175
    }
  }
}

# Use of a customized template file for PDF output
page_pdf = PAGE
page_pdf {
  typeNum = 175

  10.template = FILE
  10.template.file = fileadmin/template/pdf.tmpl
  # ...
}

# Add the link for PDF generation on web page
page.10.marks.PDF_PRINT &lt; lib.pdfLink

# Include the PDF renderer.
page.899 &lt; plugin.tx_webkitpdf_pi1</description>
		<content:encoded><![CDATA[<p>webkitpdf with customized templates<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
This is an example how to create PDF files using a customized template and the webkitpdf extension. For this to work you need to install the realurl extension too.<br />
Some disadvantage is the presentation of the PDF file. It is only downloadable. There is no possibility to show it inline in a browser tab or to launch it in Acrobat Reader from the download dialog.</p>
<p># set current page title as output filename<br />
plugin.tx_webkitpdf_pi1.staticFileName = TEXT<br />
plugin.tx_webkitpdf_pi1.staticFileName.data = page:title</p>
<p># Generate a typoLink object to display as link for PDF generation<br />
# on the web page.<br />
# This pdfLink version allows the use of an customized template for<br />
# pdf generation. For this to work the extension realurl has to be<br />
# installed and an additional PAGE version (e.g. page_pdf=PAGE)<br />
# with another typeNum (e.g. typeNum=175) should be defined.<br />
lib.pdfLink = TEXT<br />
lib.pdfLink {<br />
  value = Print version<br />
  typolink {<br />
    parameter.insertData=1<br />
    parameter = {TSFE:id}<br />
    no_cache = 1<br />
    title = Print version of this page<br />
    additionalParams {<br />
      data = getIndpEnv:TYPO3_REQUEST_URL<br />
      # add the typeNum at the end of the wrap<br />
      wrap = &amp;tx_webkitpdf_pi1[urls][0]=|?type=175<br />
    }<br />
  }<br />
}</p>
<p># Use of a customized template file for PDF output<br />
page_pdf = PAGE<br />
page_pdf {<br />
  typeNum = 175</p>
<p>  10.template = FILE<br />
  10.template.file = fileadmin/template/pdf.tmpl<br />
  # &#8230;<br />
}</p>
<p># Add the link for PDF generation on web page<br />
page.10.marks.PDF_PRINT &lt; lib.pdfLink</p>
<p># Include the PDF renderer.<br />
page.899 &lt; plugin.tx_webkitpdf_pi1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sanjin</title>
		<link>http://people.merea.se/david/2010/02/24/generate-page-as-pdf-from-typo3-with-the-webkitpdf-extension/comment-page-1/#comment-293</link>
		<dc:creator>Sanjin</dc:creator>
		<pubDate>Wed, 24 Feb 2010 11:55:18 +0000</pubDate>
		<guid isPermaLink="false">http://people.merea.se/david/?p=64#comment-293</guid>
		<description>Great post :)</description>
		<content:encoded><![CDATA[<p>Great post <img src='http://people.merea.se/david/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

