English
PHP, HTML & JavaScript- Forum

PDF File from php out Call

 

GDL
Hallöle Community,

i want gladly PDF Files through Adobe READER from php out started.
The PDF's lying on the Server.

so far be I already:
CompileMarkSeparation
<?
;header("Content-Type: application/pdf")
;readfile("Adresse mit pdf-namen")
?&
pre>

it'll of course the Adobereader launched but with the Message:
File will not correctly displayed.
in the Url-row becomes too only the way displayed and not the Dateiname.
What do I do wrong.

Grüßle
Georg
 
Windows7 Xprofan 8,9,10 [...]  [...] 
09/14/14  
 



Content-Type: application/pdf would I not at all take.

with readfile verweist the Param on The on the Server liegende File means z.B. readfile("mypdfdateien/these.pdf")

deference: output-Subclassing deaktiveren ob_end_flush() otherwise prohab Probl. with large Files.

but You must it so not at all make.

make simply header("Location:mypdfdateien/these.pdf");die()

thereby must these.pdf but too by url / Browser accessible his. only if you the even not want then nimm readfile.

I set z.B. another couple others Parameter:
CompileMarkSeparation
;header("Content-length: ".$siz)
;header('Content-Type: application/octetstream; name="' . $fnam . '"')
;header('Content-Disposition: inline; filename="' . $fnam . '"')re>

where $siz from filesize comes and $fnam whom Filenames holds.

PS: Adobe Reader is bad - Foxit-Reader is plenty faster. with welchem Program the Browser The File but indicating or opens can You serverside not bearing because the the User festlegt. Firefox shows PDFs too gladly once same self on if no Anzeiger definiert is.

If you The PDF Perhaps even complete self Show want by PHP then böte itself Images draus To make z.B. by: exec('gs -sDEVICE=pngmono -o %d.png -r125x125 my.pdf')
 
09/14/14  
 




GDL
Hi,

first thanks.
CompileMarkSeparation
header("Location:mypdfdateien/diese.pdf");die()
>

goes correct ausserhalb your CMS.

Only the pdf directory and the aufrufende File are within your CMS and there I get not running.

Grüßle
Georg
 
Windows7 Xprofan 8,9,10 [...]  [...] 
09/14/14  
 



lying on the .htaccess-File,

lay a on in mypdfdateien and schreib RewriteEngine Off mere and then ought to it klappen!
 
09/14/14  
 




GDL
Hi,

working. Supi.
 
Windows7 Xprofan 8,9,10 [...]  [...] 
09/14/14  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

6.147 Views

Themeninformationen

this Topic has 2 subscriber:

GDL (3x)
iF (2x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie