---
title: "Ausgabe unterdrücken"
url: "https://www.typo3.net/d/75251-ausgabe-unterdruecken"
source: "typo3.net"
tags: ["Extensions","Entwicklung","Frage","PDF"]
created: "2008-03-25"
last_reply: "2008-03-25"
replies: 2
solved: false
page: 1
pages: 1
lang: "de"
---

# Ausgabe unterdrücken

Extensions › Entwicklung · 2 Antworten · gestartet 2008-03-25

## Eröffnungsbeitrag

**Merovingian** · 2008-03-25 · [Beitrag #1](https://www.typo3.net/d/75251-ausgabe-unterdruecken/1)

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:

```html
<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!

## Antworten

### [#2](https://www.typo3.net/d/75251-ausgabe-unterdruecken/2) · just2b · 2008-03-25

wie gibst du das pdf denn aus

### [#3](https://www.typo3.net/d/75251-ausgabe-unterdruecken/3) · Merovingian · 2008-03-25

```php
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.

---

Quelle: „Ausgabe unterdrücken“, typo3.net, https://www.typo3.net/d/75251-ausgabe-unterdruecken
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
