Solved

Set the view of the PRF embedded in HTML

Posted on 2006-11-29
6
225 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
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Update 21-May-2015: I temporarily removed the source code to make major changes to the program. Regards, Joe In a previous Experts Exchange article, How To Rename-Move a Batch of PDF Files Based on Contents of the Files (http://www.experts-exchan…
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 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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

831 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