Welcome, Guest
  • Author Topic: iFrame & PDF  (Read 2492 times)

    `eniGM@dMiN“

    • Seasoned Programmer
    • ***
    • Posts: 136
      • View Profile
    iFrame & PDF
    « on: 02/03/05, 12:29 »
    hi ppl,

    how is it possible 2 display a pdf inside an iframe,
    but the width should automaticly be adjusted and
    the side and bottom menu should not be visible?

    thank you
    .
           __|_____
          |  o  o   /
          |  o  o |                  
    ,,=================================>
    ||.-----------------------------------,,------------““
      \|||||||> · eniGMa· · · · · · · · · · · · · · · · ·//
      =============================
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    Mohsin Sumar

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 1646
    • Mohsin Sumar, Extreme Web Technologies
      • MSN Messenger - mohsinsumar@hotmail.com
      • Yahoo Instant Messenger - mohsinsumar
      • View Profile
      • Extreme Web Technologies
      • Email
    Re:iFrame & PDF
    « Reply #1 on: 02/07/05, 23:57 »
    Hi,
    It sure looks possible when I tried it.

    Code: [Select]
    <iframe src="link/to/pdf" width="500" height="400"></iframe>
    - Best Regards, Mohsin Sumar
    - Mohsin Sumar dot com is hosted by Extreme Web Technologies

    `eniGM@dMiN“

    • Seasoned Programmer
    • ***
    • Posts: 136
      • View Profile
    Re:iFrame & PDF
    « Reply #2 on: 02/09/05, 03:14 »
    ok that adjusts the dimensions of the iframe to a fixed width and height.
    (in other words, simple stuff for any one that has done some html)

    but, if it where that simple i wudnt b asking =)

    thing is, the width should automaticly adjust, just like if u set the width of a table to "80%".
    yet if i do this for an iframe, it wont work. =(

    plus i need 2 disable the menus, where u can select the page of the pdf etc.


    thnx newayz
    .
           __|_____
          |  o  o   /
          |  o  o |                  
    ,,=================================>
    ||.-----------------------------------,,------------““
      \|||||||> · eniGMa· · · · · · · · · · · · · · · · ·//
      =============================
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    vesa kortelainen

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 3450
      • View Profile
    Re:iFrame & PDF
    « Reply #3 on: 02/09/05, 04:22 »
    for button & menu: use CSS, display:none, and then some javascript to change display:none to <empty>

    For PDF's width&heigth, there's no code to cover it. I seen only Javascript to get Object's (flash) hegith (and they only work in IE..)

    `eniGM@dMiN“

    • Seasoned Programmer
    • ***
    • Posts: 136
      • View Profile
    Re:iFrame & PDF
    « Reply #4 on: 02/09/05, 04:26 »
    alrite, thnx. ill try that
    .
           __|_____
          |  o  o   /
          |  o  o |                  
    ,,=================================>
    ||.-----------------------------------,,------------““
      \|||||||> · eniGMa· · · · · · · · · · · · · · · · ·//
      =============================
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^