Zum Inhalt springen

Ausgabe unterdrücken

Erstellt am 25. März 2008 · 2 Antworten · letzte Antwort am 25. März 2008

Tags: PDF, Frage

Merovingian ·

Hallo,
ich habe das Problem das meine Extension eine PDF-Datei ausgibt, aber TYPO3 immernoch seinen Teil beisteuert. Sprich ich habe am Ende der PDF-Datei noch die TYPO3 Ausgabe:

<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\typo3hsfulda\typo3conf\ext\qm_int\pi1\class.tx_qmint_pi1.php:229) in <b>C:\xampp\htdocs\typo3hsfulda\typo3\sysext\cms\tslib\class.tslib_fe.php</b> on line <b>2898</b><br />
<!DOCTYPE html
	PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<!-- 
	This website is powered by TYPO3 - inspiring people to share!
	TYPO3 is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.
	TYPO3 is copyright 1998-2006 of Kasper Skaarhoj. Extensions are copyright of their respective owners.
	Information and contribution at http://typo3.com/ and http://typo3.org/
-->

	<link rel="stylesheet" type="text/css" href="typo3temp/stylesheet_75556eaf0d.css" />
	<title>HS Fulda: Qualitätsmanagement</title>
	<meta name="generator" content="TYPO3 4.1 CMS" />
	<script type="text/javascript" src="typo3temp/javascript_757c080409.js"></script>


</head>
<body>
<a id="c27"></a><img src="clear.gif" width="1" height="10" border="0" class="spacer-gif" alt="" title="" /><br />
</body>
</html>

Diese Ausgabe möchte ich gerne unterdrücken, wie könnte ich das machen?

Danke im Voraus!

Merovingian ·
header('Content-Type: '.$contenttypedatei);
				header('Content-Disposition: inline; filename='.basename($file));
				readfile($file);

Dort werden noch einige andere Dateitypen verwaltet, die funktionieren auch. Nur bei dem PDF Reader/Acrobat 7.x gibt es Probleme.