Results 1 to 8 of 8

Thread: Is it possible to have a file attachment (such as a PDF file) on a web page?

  1. #1
    Junior Member
    Join Date
    Jan 2017
    Posts
    3

    Question Is it possible to have a file attachment (such as a PDF file) on a web page?

    Hi,
    Would love to be able to post a document (that people viewing the page may download) is this possible?
    If so, how do I attach it?
    Thanks!

  2. #2
    Member Dave Snuffy Smith's Avatar
    Join Date
    Dec 2016
    Location
    Puyallup Washington
    Posts
    40

    Default

    I use PDF's on a few of my sites all the time and have done this many times . . . .

    Best way I do it is I put the PDF file in the Assets folder, then on the page I want the PDF to be accessed from I put a little description like,

    Read this for Directions to get to our Store: Directions to Store.pdf <---That is the pdf they will need to open and read with a map or text directions.

    Then on the page click to edit/enter text and Highlight the file name of Directions to Store.pdf.
    Then use the link Command to find the file and add it in the links list and set the link at the bottom of that window to exists and _blank.

    This will set a link on the name of the file out on the page as a link, and when clicked in the preview window and after published it will open the PDF file to them in another TAB or Window depending on how they have their browser set to open items.

    Only problem is IF they do not have a PDF reader installed on their system they may not be able open the file,
    so you may need to also add a link to your site for anyone that needs a PDF reader to go get one and set it up on their system before they can read your PDF's

  3. #3
    Junior Member
    Join Date
    Jan 2017
    Posts
    3

    Smile Thank you so much!

    I will try this in the next few days - THANK YOU!!!

  4. #4
    Senior Member gprit's Avatar
    Join Date
    Dec 2010
    Location
    France...ex UK
    Posts
    595

    Default

    I think the orignal post was to show the pdf on the WEB PAGE itself(?) rather than simply open a link to download the pdf.
    Anyway, it's a while since I did this so not sure if browsers have changed...change width and height as required. Assume that filepath/name is on server.

    All that is needed is (using text box then ALT/T)....
    <embed src="http://www.xxxx.co.uk/xxxxx.pdf width="800" height="1100"><embed>

    However, IE acts differently, and I had to add the following code for that:

    <div>
    <object data="http://www.xxxxxxxx.com/filename.pdf" type="application/pdf" width="800" height="1200">
    <a href="http://wwwxxxxxxxxxxx.com/filename.pdf">
    <FONT SIZE=3 COLOR="white" FACE="Verdana">
    If you use Internet Explorer browser, Please click HERE
    </a>
    </object>
    </div>

    Even then it depends on the users IE settings......think it is far easier (better?) to use the download to new tab as first reply.

  5. #5
    Senior Member
    Join Date
    Apr 2010
    Location
    Sydney
    Posts
    2,000

    Default

    embedding a pdf is asking for trouble, I would never do that

    so, file link, target_blank is the good answer

  6. #6
    Senior Member gprit's Avatar
    Join Date
    Dec 2010
    Location
    France...ex UK
    Posts
    595

    Default

    I never had any problems (apart from IE) when I USED to do this........but as everyone agrees, a link and download is probably a lot easier.
    Here are some other ways/things that can be done....https://pdfobject.com/static.html

  7. #7
    Senior Member Since_v4's Avatar
    Join Date
    Mar 2014
    Location
    Caribbean
    Posts
    674

    Default

    Hi Sylvia,

    If you want a great .PDF reader & editor please visit https://www.tracker-software.com

    They offer a good sales commission too.

    I use the software myself.

    I do NOT sell it and get NO monetary recompense to mention it here.
    Last edited by Since_v4; 01-15-2017 at 10:11 PM.

  8. #8
    Junior Member
    Join Date
    Jan 2017
    Posts
    3

    Default

    Finally got around to doing this - worked perfectly - THANK YOU!!!

Posting Permissions

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