Problem with viewing pdfs

Questions related to the Responsive Web Design tools of WYSIWYG Web Builder.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/respon ... esign.html
Please read this first before posting any questions! Also check out the example project to get an idea how the RWD concept works.

Responsive Web Design FAQ:
http://wysiwygwebbuilder.com/forum/view ... 10&t=63817
Post Reply
Norfolkman
 
 
Posts: 80
Joined: Tue May 09, 2017 3:16 pm
Location: United Kingdom

Problem with viewing pdfs

Post by Norfolkman » Sun Feb 04, 2018 3:33 pm

The following page works well when viewed on a PC or Laptop. http://www.mundesley.org/OldPlays.html
However, when viewed on a smaller device, such as an iphone, it is far from satisfactory as it downloads the pdf rather than just viewing it. Does anyone have an idea how I can make it more user friendly when viewed on these devices please?

I know that the rest of the site is not responsive but that is a separate issue at the moment.

Thanks in advance,
Geoff.

User avatar
Pablo
 
Posts: 13496
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Problem with viewing pdfs

Post by Pablo » Sun Feb 04, 2018 3:38 pm

This is normal behavior.
The browser determines what will happen when you click a linked PDF file. You do not have control over this as a web designer.

Norfolkman
 
 
Posts: 80
Joined: Tue May 09, 2017 3:16 pm
Location: United Kingdom

Re: Problem with viewing pdfs

Post by Norfolkman » Sun Feb 04, 2018 4:00 pm

Thanks for the quick reply, I understand the reason that it does not work, I am just wondering if there is a way of getting around the problem by using a different approach to displaying the images (perhaps using an image instead of a pdf?).

User avatar
BaconFries
 
 
Posts: 4119
Joined: Thu Aug 16, 2007 7:32 pm

Re: Problem with viewing pdfs

Post by BaconFries » Sun Feb 04, 2018 5:50 pm

You can embed the pdfs in there own page then link to them.
How to embed (By myself)
http://www.wysiwygwebbuilder.com/forum/ ... 26&t=49793
See the following by Navaldesign on how to use the above but using one page to then call/display all your pdfs from there own link(s).
Navaldesign wrote:
Tue Jun 17, 2014 1:38 pm
You can use only one page to display the PDF making your links to the display page like this:

http://www.yoursite.co.uk/pagename.php?file=pdfname.pdf where pdfname.pdf is the file name.
Use filenames without symbols or whitespaces (example: my_pdf_name.pdf)

Then, in the HTML, you use the following code:

<embed src="http://www.yoursite.co.uk/<?php echo $_GET['file'];?>" width="800px" height="600px"></embed>

The page will need to be .php instead of .html
Note the url/link (http://www.yoursite.co.uk) is only a example it links to nowhere.

Norfolkman
 
 
Posts: 80
Joined: Tue May 09, 2017 3:16 pm
Location: United Kingdom

Re: Problem with viewing pdfs

Post by Norfolkman » Mon Feb 05, 2018 9:55 am

Thanks BaconFries,

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests