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