WebSite X5Help Center

 
Sam S.
Sam S.
User

Pdf does not appear on preview  en

Автор: Sam S.
Просмотрено 1309, Подписчики 1, Размещенный 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

Размещено
5 Ответы
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.

Читать больше
Размещено От Esahc ..
Sam S.
Sam S.
User
Автор

Esahc,

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

It does not even preview on WX5.

Читать больше
Размещено От 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?

Читать больше
Размещено От Esahc ..
Sam S.
Sam S.
User
Автор

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.

Читать больше
Размещено От 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).

Читать больше
Размещено От Esahc ..