Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Set the view of the PRF embedded in HTML

Posted on 2006-11-29
6
226 Views
Last Modified: 2012-05-05
Hello EVeryone,
I have the following code to embed a PDF into HTML, and get it to fit inside our webpage.  The PDF has to stay at 50% because otherwise it's too big for the area we allowed it... We have other things on the page, like the right menu, etc... so the PDF has to fit at 50% or it stretches out...

Here's the code:
<IFRAME src="PDF/myDocument.pdf#destination" name=myIframe scrolling="no" frameBorder=0 id=myIframe style="Z-INDEX: 1; LEFT: 0px; WIDTH: 100%; POSITION: relative; TOP: 0px; HEIGHT: 700px" target="_self"></IFRAME>

I go to Adobe Acrobat>Zoom>Fit in Page, or Fit Width, but it does'nt work.
Do you know how to fix it?
0
Comment
Question by:Gemini532
  • 3
  • 3
6 Comments
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 18044686
Embedding a PDF into a web page is a bad idea: It only works with Internet Explorer, and chances are that a new version of Explorer and/or Acrobat or Reader will break what you are doing.
You have to set the inital view of your document. In Acrobat 7, go to File>Document Properties... and select the "Initial View" tab. You can now set the "Magnification" so that the document looks correct.
0
 

Author Comment

by:Gemini532
ID: 18140612
and if I do this, change the magnification to 60%, will it show up as 60% on the computer of every person who comes to visit our website, or just my computer?
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 18147707
It will open with whatever the local Acrobat thinks is 60% (that depends on Acrobat being able to determine the screen resolution).
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

Author Comment

by:Gemini532
ID: 18181420
>> It only works with Internet Explorer

When I opened the website which had the embedded PDF into an .htm or .asp page depending on the code with Mozilla Firefox, I had no problem.  IT opened just as well as in IE.

My boss REALLY wants the PDF embedded, I cannot change her mind.... On the page there is a link which opens the PDF in a new window, for printing purposes or if the users want to see it bigger...

The only problem is that sometimes it does not shrink down to 50% and the users have to scroll to see the entire PDF...
Our website is made up of a MENU on the right of the screen and white area on the left and that's where all the information is, so the PDF must also fit in that white area and the only way to make it fit is it get it down to 50%

<<It will open with whatever the local Acrobat thinks is 60% (that depends on Acrobat being able to determine the screen resolution).

I'm not sure what you  mean by this....  Does this mean that even if I follow your instructions, some of the people who navigate our page will not see the PDF sharnk down to 50%?  They will have to scroll to see it all because the IFRAME will not stretch...  Is there a way around this?  I mean something I can do a programmer, I cannot go to the computer of the people who visit our website and change their acrobat or IE settings... But what I can do is write some text telling them how to change their settings in order to see the PDF without scrolling by chanign the  "Magnification" to 50%

If I add your instructions will that work for them?
I can write:

If the PDF requires scrolling, please set its magnification to 50%.  In order to do this, in Acrobat 7, go to File>Document Properties and select the "Initial View" tab, and set the "Magnification" to 50%.              

Is that correct? Should I add the instruction above the the htm pages that have PDFs embedded in them?
0
 

Author Comment

by:Gemini532
ID: 18229189
Can this same change be made in Adobe Acrobat 5?
0
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 500 total points
ID: 18229758
Yes, but you have to use "File>Document Properties>Open Options...". Select "Magnification" to the desired zoom level.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

One of the questions I get asked again and again is how to validate a field value in an AcroForm with a custom validation script. Adobe provided a lot of infrastructure to do that with just a simple script. Let’s take a look at how to do that wit…
Power PDF (http://www.nuance.com/for-business/document-imaging-and-scanning/power-pdf-converter/index.htm) is the newest product from the Document Imaging division of Nuance Communications (http://www.nuance.com/). It is available in two editions — …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Sometimes we receive PDF files that are in the wrong orientation. They may be sideways or even upside down. This most commonly happens with scanned or faxed documents. It is possible to rotate the view of these PDFs with the free Adobe Reader produc…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question