WebSite X5Help Center

 
Sam S.
Sam S.
User

Pdf does not appear on preview  en

Auteur : Sam S.
Visité 1073, Followers 1, Partagé 0  

How can I make a PDF file display?

In PDF file object:  Type - Goodgle viewer , local file on pc, 350 height

When previewed, there is no display.

Help

Thanks

Posté le
5 RéPONSES
Esahc ..
Esahc ..
Moderator

Sam, you have the option to preview in a real browser, is the pdf visible when you do this?

Is the site online (can you provide a url?) and does it work from there?

For what it's worth I have found the best way to display a pdf is to provide a link through either text or an image of the pdf and have it open in a new window. This lets the user PC display the pdf in their default viewer.

Lire plus
Posté le de Esahc ..
Sam S.
Sam S.
User
Auteur

Esahc,

No, it is not online, and I tried on browser and none either.

It does not even preview on WX5.

Lire plus
Posté le de Sam S.
Esahc ..
Esahc ..
Moderator

Sam, I suspect this only works when online (not working for me either), but if you select type iframe rather than google viewer does that work for you?

Lire plus
Posté le de Esahc ..
Sam S.
Sam S.
User
Auteur

Esahc,

Something interesting.  I tried iframe earlier (2x) and it did not work.  Just now, I tried it and the PDF document appeared.

1. Since it is a PDF and not a link, do I need to be concerned about security issues as iframe?

2. Why does'nt the PDF appear with google viewer?

Thanks for suggesting iframe.

Lire plus
Posté le de Sam S.
Esahc ..
Esahc ..
Moderator

Sam, in this example the top one uses the the google viewer, the bottom one is iframe. The google viewer only works when online. If your pdf is large there can be a significant delay whilst it loads. I can not imagine any reason to be concerned about iframe security.

http://www.grantvillehistory.com.au/crap.html

As I said, I never use the pdf widget (optional object).

Lire plus
Posté le de Esahc ..