Jump to content

Opening a particular page of a PDF by clicking a Hyper link


divyakrishnan

Recommended Posts

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 ?

 

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...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.