Solved

Set the view of the PRF embedded in HTML

Posted on 2006-11-29
6
223 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Can Be Caused By Disabled Services I have encountered a problem viewing PDF files using Adobe Acrobat Reader.  For the longest time, PDFs might launch or might not.  Sometimes they took about 15 minutes to appear after launching them. After som…
The Adobe PDF proprietary file format is recognized as secure and formulated. But these PDF files are also prone to corruption and any external threat like virus attacks, improper storage can hit PDF file integrity.This type of damages can make cruc…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
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…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now