| |
|
|
 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 |
|
|
| |
|
|
|
 | 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') |
|
|
| |
|
|
|
 GDL | Hi,
first thanks.  CompileMarkSeparationheader("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 |
|
|
| |
|
|
|
 | lying on the .htaccess-File,
lay a on in mypdfdateien and schreib RewriteEngine Off mere and then ought to it klappen!  |
|
|
| |
|
|
|
 GDL | Hi,
working. Supi.  |
|
|
| |
|
|