Results 1 to 17 of 17

Thread: Display a PDF
      
   

  1. #1
    Rez's Avatar
    Rez
    Rez is offline Master Sergeant
    Join Date
    Jul 2008
    Posts
    69

    Default Display a PDF

    Hi everyone,

    I'd like to display a single page pdf on one of my web pages, is this possible?

    Thanks

  2. #2
    D'son's Avatar
    D'son is offline Major General
    Join Date
    Apr 2008
    Location
    Illinois
    Posts
    2,580

    Default Re: Display a PDF

    Yes, there are a couple of ways to do it, the most simple is to upload the file to your server and link to it using this format yoursite.com/filename.pdf (Have it open in a new window)

  3. #3
    Rez's Avatar
    Rez
    Rez is offline Master Sergeant
    Join Date
    Jul 2008
    Posts
    69

    Default Re: Display a PDF

    Thanks D'son, i want to capture the visitors email before i display the PDF, so would it work if i made the contact form's thankyou page URL "mysite.com/filename.pdf" ?

    Additionally, could a link be put in the pdf to allow the visitor to continue browsing my site?

  4. #4
    D'son's Avatar
    D'son is offline Major General
    Join Date
    Apr 2008
    Location
    Illinois
    Posts
    2,580

    Default Re: Display a PDF

    No, i would just put a link to the file on your thank you page. And I have done the navagation to and from forms a couple of different ways. First I had the form open in its own window (no navagation) as well as the success and error pages. This way they can just close the window when they are done. Second I created the form page with full navagation (opens in the same window) to and from as well as the success and error pages so they can go anywhere at any time. Either way works, its up to you.

  5. #5
    Rez's Avatar
    Rez
    Rez is offline Master Sergeant
    Join Date
    Jul 2008
    Posts
    69

    Default Re: Display a PDF

    Thanks for your help D'son.

  6. #6
    D'son's Avatar
    D'son is offline Major General
    Join Date
    Apr 2008
    Location
    Illinois
    Posts
    2,580

  7. #7
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: Display a PDF

    Rez,

    You could have the thankyou page the pdf file you wish them to see and also have a link back to your site.............but not in the manner you think.

    What I would do in this case is create a thankyou page with a large I-Frame in it- with the link back to your site at the top. Then have the pdf file populate in the Iframe.

    Just a work around -

    Andy
    PHP- is a blast!

  8. #8
    LadyEye's Avatar
    LadyEye is offline General & Forum Moderator
    Join Date
    Jun 2006
    Location
    Canada
    Posts
    10,548

    Default Re: Display a PDF

    or you could try this method to embed a pdf on your webpage

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    07031847328 / United Kingdom

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)



  9. #9
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Thumbs up Re: Display a PDF

    Ladyeye-

    Very cool indeed. Yet another way to skin a cat!!!!

    By the by- what program do you use for your tutorials- they are fantastic.

    Andy
    PHP- is a blast!

  10. #10
    LadyEye's Avatar
    LadyEye is offline General & Forum Moderator
    Join Date
    Jun 2006
    Location
    Canada
    Posts
    10,548

    Smile Re: Display a PDF

    Quote Originally Posted by Andy128 View Post
    Ladyeye-

    Very cool indeed. Yet another way to skin a cat!!!!

    By the by- what program do you use for your tutorials- they are fantastic.

    Andy
    Hi Andy ... nice to see you .. yes, it's a good one ... Alien Dude has joined the team of Blue Voda Designers and is preparing lots of neat tutorials!! I could ask him, but I think he uses alot of crayons, LOL ....

    We will be adding them here as well as on Blue Voda Chat

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    07031847328 / United Kingdom

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)



  11. #11
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: Display a PDF

    Ok- cool. I'll probably email him and ask.

    Cheers-

    Andy
    PHP- is a blast!

  12. #12
    LadyEye's Avatar
    LadyEye is offline General & Forum Moderator
    Join Date
    Jun 2006
    Location
    Canada
    Posts
    10,548

    Default Re: Display a PDF

    Quote Originally Posted by Andy128 View Post
    Ok- cool. I'll probably email him and ask.

    Cheers-

    Andy

    KK.. be sure to tell him you are coloring .. LOL

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    07031847328 / United Kingdom

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)



  13. #13
    Rez's Avatar
    Rez
    Rez is offline Master Sergeant
    Join Date
    Jul 2008
    Posts
    69

    Default Re: Display a PDF

    Quote Originally Posted by LadyEye View Post
    or you could try this method to embed a pdf on your webpage
    LadyEye thats awesome, just what i was after, thank you.

    I've managed to get it working...almost.

    I wrote down the html code you pasted into the html box in your tutorial and typed into an html box, adjusting to suit my needs, and it has worked, although no matter how high i set the page to be in the html code, the pdf that appears on my published page is still too short to display the entire pdf, as you can see here

    Can you see why this has happened, and how to fix it?

    Thanks very much

    Simon

  14. #14
    D'son's Avatar
    D'son is offline Major General
    Join Date
    Apr 2008
    Location
    Illinois
    Posts
    2,580

    Default Re: Display a PDF

    Hi Simon
    Not sure about the method Lady Eye recommends but I do it using an I-Frame. Same concept except you can simply drag the i-frame to the size you want. Just type the link to the pdf in the properties/url. Here is an example.
    http://www.marseillesyouthsports.com/pdf_test.php

  15. #15
    LadyEye's Avatar
    LadyEye is offline General & Forum Moderator
    Join Date
    Jun 2006
    Location
    Canada
    Posts
    10,548

    Default Re: Display a PDF

    Quote Originally Posted by Rez View Post
    LadyEye thats awesome, just what i was after, thank you.

    I've managed to get it working...almost.

    I wrote down the html code you pasted into the html box in your tutorial and typed into an html box, adjusting to suit my needs, and it has worked, although no matter how high i set the page to be in the html code, the pdf that appears on my published page is still too short to display the entire pdf, as you can see here

    Can you see why this has happened, and how to fix it?

    Thanks very much

    Simon
    width="788"height"3300 -------> this should be width="788" height="3300"

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    07031847328 / United Kingdom

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)



  16. #16
    D'son's Avatar
    D'son is offline Major General
    Join Date
    Apr 2008
    Location
    Illinois
    Posts
    2,580

    Default Re: Display a PDF

    Holly, is there an advantage in using an html box over an i-frame? Does one load faster than the other?

  17. #17
    LadyEye's Avatar
    LadyEye is offline General & Forum Moderator
    Join Date
    Jun 2006
    Location
    Canada
    Posts
    10,548

    Default Re: Display a PDF

    umm .. well used to be some browsers had difficulty supporting iframes .. so .. that might be something to consider ..

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    07031847328 / United Kingdom

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49