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 ?

Append #page=7 (or whatever page number you want) to the url.

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

how to insert and update with a single form

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.