Solved

Set the view of the PRF embedded in HTML

Posted on 2006-11-29
6
229 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
[X]
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
  • 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

 

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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Update 21-May-2015: I temporarily removed the source code and the code snippets to make major changes to the program. Regards, Joe INTRODUCTION This Article is a follow-up to the Article entitled How To Rename-Move a Batch of PDF Files Based o…
PDF files have been in the limelight due to its unmatched features.  Personal documents, emails, business reports and eBooks are all converted into PDF files owing to peerless features provided by it. Adding watermark to a PDF file is a method to se…
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 …
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…

628 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