Hi...

I have an issue on project.I want to open a particular pdf page by specifying its page no using PHP script.Is it possible?please help me

Recommended Answers

All 2 Replies

PHP means Personal Home Page.I am always seeking net for valuable things that can assist me achieving knowledge. We are in Website design business for long. I think that your post is good in terms of topic. By the way, if you have time please check <a href="http://www.mavrickit.com" rel="nofollow">Website Design Services</a>

PHP means Personal Home Page.I am always seeking net for valuable things that can assist me achieving knowledge. We are in Website design business for long. I think that your post is good in terms of topic. By the way, if you have time please check <a href="http://www.mavrickit.com" rel="nofollow">Website Design Services</a>

Wrong. PHP used to mean Personal Home Page but not any more. PHP stands for PHP: Hypertext Preprocessor.

As for opening a PDF to a specific page, you don't need PHP, just simple HTML. All you need to do is add #page=pagenumber at the end of the url.

Example:

<!-- Direct link to page 3 -->
<a href="documents/Document.pdf#page=3">PDF Document</a>

<!-- Using a PHP variable -->
<?php
  echo "<a href=\"document/Document.pdf#page=$page\">PDF Document</a>";
?>

Hope this helps.

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.