[TYPO3-english] dynamically stream/download pdf
Xavier Perseguers
xavier.perseguers at typo3.org
Thu Nov 26 08:33:44 CET 2015
Hi Ulf (aka "smoe body"),
> im developing an extension for typo3 v6.2 in which i have to stream a
> pdf to the user on a specific event. i need a hint where i can bypass
> the default typo3 view handler and just return the pdf-content
> additional to some reasonable headers like 'content-type' and 'attachment'.
> background: the pdfs come from a different host for which i have to play
> proxy for reasons.
If you're developing an extension, it's just a matter of writing the
corresponding "header()" statements, sending the content as you would
when not using TYPO3 and ending with, e.g., "exit()" or "die()", not any
other magic.
Kind regards
--
Xavier Perseguers
TYPO3 CMS Team
TYPO3 .... inspiring people to share!
Get involved: http://typo3.org
More information about the TYPO3-english
mailing list