Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

fpdf decodieren

Empfohlene Antworten

Morgen zusammen, ich habe versucht mit fpdf ein pdf file zu erstellen einer Fehlermeldung im Script erhalte ich nicht. Hier das Script:

<?php
define('FPDF_FONTPATH','font/');
require('fpdf.php');

$pdf=new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Hello World!');
$pdf->Output('test.pdf','F');
?>[/PHP]

Ist ein Beispielscript aus dem Netz, man fängt ja auch klein an.

Es kommt das standartfenster öffnen oder speichern. Egal was ich mache jedesmal erhalte ich die Fehlermeldung das das Format nicht unterstützt wird bzw nicht korrekt decodiert wurde.

Jemand eine Idee? Muss / Wird das PDF eigentlich beim erstellen auf dem Server gespeichert?

Guten Morgen :)

Ja das File wird zuerst aufm Server erstellt und dann zum download zur verfügung gestellt bzw geöffnet.

was deinen fehler betrifft:

welche version von FPDF hast du ?

Ich habe die Version 1.3

habe mal nachgeschaut also auf dem Server wird nichts gespeichert

normalerweise wirds im ordner tmp gespeichert und nachem öffnen gleich wieder gelöscht.

ich hab die version 1.53. such mal mit der

jo nun gehts

dankeschön

EDIT:

Ups... hat sich ja schon erledigt ;)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.