Professional Web Applications Themes

pdf files as a webpage - PHP Development

Hi is there a way to output a pdf file to a webpage? the file may contain pictures & graphs along with text. Mark...

  1. #1

    Default pdf files as a webpage

    Hi

    is there a way to output a pdf file to a webpage?
    the file may contain pictures & graphs along with text.

    Mark
    Mark Guest

  2. #2

    Default Re: pdf files as a webpage

    "Mark D Smith" <obantec.net> wrote in news:4309a717$0$318
    $zen.co.uk:
     

    Last time I used PDF's I did the following:

    Write the PDF to a file (if it isn't already one), forward the browser page
    to that file (ie. http://www.somesite/doent.pdf). The PDF should open
    in the browser window....user will require a reader (ie. Acrobat reader) to
    be installed.
    Flibble Guest

  3. #3

    Default Re: pdf files as a webpage

    "Flibble" <com> wrote in message
    news:92.1.10... 
    >
    > Last time I used PDF's I did the following:
    >
    > Write the PDF to a file (if it isn't already one), forward the browser[/ref]
    page 
    to 

    Tried that and my PC's open Adobe Reader. what i want is the pdf displayed
    in the webpage (if possible).

    Mark

    Mark Guest

  4. #4

    Default Re: pdf files as a webpage

    In article <4309db23$0$21365$zen.co.uk>,
    "Mark D Smith" <obantec.net> wrote:
     
    > >
    > > Last time I used PDF's I did the following:
    > >
    > > Write the PDF to a file (if it isn't already one), forward the browser[/ref]
    > page 
    > to 
    >
    > Tried that and my PC's open Adobe Reader. what i want is the pdf displayed
    > in the webpage (if possible).
    >
    > Mark[/ref]

    Well, the display of a PDF is dependent on if the client browser can
    display the MIME type. Safari in MacOS X can with a plugin. I don't
    know about other browsers and OSs, but it's not a function of a
    server-side language like PHP to do. You'd have to read the file in,
    p it, decode it and display it as html. Much simplier to do this on
    the browser. So, I think you need to rethink your requirements. php
    probably isn't the solution you're looking for. You could search out
    the plugins and post URLs or a "Download PDF reader" link on your pages,
    but it's up to people visiting the page to decide if they want to
    install such on their browsers to view a page. Besides, PDF files are
    usually much larger than HTML, so you should be giving people an option
    to view such pages anyway.

    --
    DeeDee, don't press that button! DeeDee! NO! Dee...



    Michael Guest

  5. #5

    Default Re: pdf files as a webpage

    "Mark D Smith" <obantec.net> writes:
     

    Yes, we have some simple examples that include
    the source code. Just go to:
    http://www.thebook-demo.com/php

    Hope that helps.

    --
    John
    __________________________________________________ _________________
    John Murtari Software Workshop Inc.
    jmurtarifollowing domain 315.635-1968(x-211) "TheBook.Com" (TM)
    http://thebook.com/
    John Guest

  6. #6

    Default Re: pdf files as a webpage

    > Well, the display of a PDF is dependent on if the client browser can 

    You could of course use some external program like pdftoppm to convert the
    PDF file to images - but you probably don't want that.

    Regards,

    Anze
    Anze Guest

  7. #7

    Default Re: pdf files as a webpage


    "John Murtari" <com> wrote in message
    news:thebook.com... 
    >
    > Yes, we have some simple examples that include
    > the source code. Just go to:
    > http://www.thebook-demo.com/php
    >
    > Hope that helps.
    >
    > --
    > John
    > __________________________________________________ _________________
    > John Murtari Software Workshop Inc.
    > jmurtarifollowing domain 315.635-1968(x-211) "TheBook.Com" (TM)
    > http://thebook.com/[/ref]

    Hi John

    I don't want to create pdf files i want to output as a webpage a pre
    existing pdf file(s).

    Mark

    Mark Guest

  8. #8

    Default Re: pdf files as a webpage

    "Mark D Smith" <obantec.net> kirjoitti
    viestissä:430a1b2b$0$3556$zen.co.uk... 
    >>
    >> Yes, we have some simple examples that include
    >> the source code. Just go to:
    >> http://www.thebook-demo.com/php
    >>
    >> Hope that helps.
    >>
    >> --
    >> John
    >> __________________________________________________ _________________
    >> John Murtari Software Workshop Inc.
    >> jmurtarifollowing domain 315.635-1968(x-211) "TheBook.Com" (TM)
    >> http://thebook.com/[/ref]
    >
    > Hi John
    >
    > I don't want to create pdf files i want to output as a webpage a pre
    > existing pdf file(s).
    >[/ref]


    Well in that case there's nothing you can do. So far no browser has a native
    pdf support. Currently there are only adobe acrobat reader plugins that may
    or may not be configured to function inside the browser window. So in other
    words... nothing you can do about it. You cannot even be certain that a
    client has got adobe pdf reader installed or not. There simply is no
    guarantee of it, since pdf isn't originally a part of the html publishing
    scene, whereas an html page or pictures are.

    --
    SETI Home - Donate your cpu's idle time to science.
    Further reading at <http://setiweb.ssl.berkeley.edu/>
    Kimmo Laine <com>


    Kimmo Guest

  9. #9

    Default Re: pdf files as a webpage




    "Mark D Smith" <obantec.net> wrote in message
    news:4309a717$0$318$zen.co.uk... 

    Mark,

    There are a number of commercial software products that claim to convert
    ..pdf files to HTML.

    George


    George Guest

Similar Threads

  1. SMS Via webpage
    By Bren in forum Dreamweaver AppDev
    Replies: 0
    Last Post: May 20th, 07:44 PM
  2. webpage
    By dunefarm in forum Web Design
    Replies: 2
    Last Post: April 25th, 12:40 AM
  3. Can director files be a webpage?
    By TrypioKrino in forum Macromedia Director Basics
    Replies: 3
    Last Post: May 29th, 02:58 PM
  4. Replies: 4
    Last Post: October 9th, 02:48 PM

Bookmarks

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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139