This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Mar 20, 2012, 3:23 PM
51 Posts

pdf placeholder

  • Category: Other
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 2
 I'm looking for a way to make a pdf placeholder on a page. 
The idea is : 
The user selects a pdf file from a view . When clicking on the pdf filename ,the pdf file opens in the placeholder instead of filling the whole screen. 
How can I do this ? 
Mar 21, 2012, 10:30 AM
170 Posts
Re: pdf placeholder
 If I understand you correctly you want to open a pdf file inside a webpage.
 
Then you need to open the PDF inside an iframe. that is the only way I know how to do this. 
 
/Fredrik 
Mar 21, 2012, 10:48 AM
51 Posts
Re: pdf placeholder
 Well I have 2 problems with the iframe.(on Iphone)
 
First :
I don't know how to rescale the pdf so it fit's the iframe. 
I can rescale the iframe , but then I can only see a part of the pdf file. 
The Iframe seems to be a frame on top of the pdf file. 
Scrolling in the pdf file from page 1 to 2 etc doesn't work either. 
 
Second: 
User should have the possibility to "download" the file ,as they have when they open the pdf fullscreen. 
When I put a <a href around the Iframe I have the possibility to open, open in a new page , copy the pdf file. No open in ibooks or open in acrobat or open in dropbox... 
When I open this same page in IE it works perfectly. So the problem is how the iphone works with pdf files that are not fullscreen...
 
The reason I don't want the Iphone user to leave the page is that I made an Xpage Iphone webapp. 
As long as the user stays in the same page , the app looks like a real Iphone app.(no url bar on top, no at the bottom) 
When the user opens a link with a pdf file, he leaves the page and the url bar is comming up , so the app doesn't look like a real app anymore. 
 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal