0

Hi..
I have an issue on my project.I want to open a particular page of a PDF by clicking a hyper link.How should I do it?any idea ?

3
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by chrishea
0

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

0

I don't understand why you have included the header statement. You would normally use that if you were trying to create a file. If you only want to link to the file, try it without the header and see what happens.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.