TYPO3: Simple way to convert content to PDF


A simple way to let FE-users download your content as a PDF file:

First install the extension: PDF Generator (html2fpdf) nc_pdfgen

Now add a download link at the bottom of the content:

subparts.your_content_id = COA
subparts.your_content_id {
   10 < styles.content.get
   20 < temp.PDF
}

Setup the downloadlink using the extension:

temp.PDF = COA
temp.PDF {
   10 = USER_INT
   10.userFunc = tx_ncpdfgen->openPdfLink
   20 = TEXT
   20.value = Link to PDF
   30 = HTML
   30.value = </a>
}

Add the following lines to your htaccess configuration:

RewriteRule ^[^/]*.pdf$  index.php

I left my RealURL configuration untouched. Seems to work fine.


Bookmark and Share

Comments are currently unavailable due to spam.