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.

pdf-file direkt im Browser anzeigen lassen

Empfohlene Antworten

Hallo Leute!

Ich möchte ein pdf-File direkt im Browser anzeigen lassen, ohne das vorher abgefragt wird, ob geöffnet oder gespeichert werden soll. Ich war eigentlich der Meinung, dass dies an den Browsereinstellungen liegt(oder Plug-In), aber ich habs jetzt mit verschiedenen Seiten ausprobiert und er öffnet sie mir im gleichen Browser mal so und mal so.

Kann mir jemand sagen, wie ich das beeinflussen kann?

Schönen Dank schonmal!

Ciao

Guy

ich denke mal das sollte hiermit funktionieren


<?php

// We'll be outputting a PDF

header("Content-type: application/pdf");


// It will be called downloaded.pdf

header("Content-Disposition: inline; filename=downloaded.pdf");


// The PDF source is in original.pdf

readfile('original.pdf');

?>

Das ist eine Kopie davon, wie man ein PDF als download anbieten kann (ohne einen Link), nur dass die content-Disposition auf Inline geändert wurde (nicht attachment). Ich hab es noch nicht probiert (mit Inline), aber denke mir es könnte so funktionieren.

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.