Topic: Opening a particular PDF page by clicking a Hyper link
Hi..
I have an issue on my project.I want to open a particular page of a PDF file by clicking a hyper link.How should I do it?any idea ? Please help me.
I used the following code
<?php
header("Content-Type: application/pdf");
$pdfFile="readme.pdf#page=10";
?>
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<a href="http://<?php echo $pdfFile; ?>">Click Here</a>
</body>
</html>
But it showing an alert like following
File does not begin with '%PDF-'
After clicking alert showing a black screen..
can u please send me the entire code?
Thanks...
Last edited by divyasmk (December 8, 2010 01:46)