This topic is locked

Help With Inline View Pdf

6/5/2013 5:02:28 PM
PHPRunner General questions
B
bilboss author

I have the following code to open a pdf inline
$tam = filesize("./files/proyecto.pdf");

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

header("Content-Length: $tam");

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

$file='./files/proyecto.pdf';

readfile($file);
this what I can put in BeforeProcessView and works

but now need to place something in the code to take the pdf of a record to which I enter.
$file='./files/??????';
help please