bflack Posted April 30 Report Share Posted April 30 I can view all pages of a PDF using a desktop browser, initially seeing the first page of the document, but then can view all pages by clicking the menu symbol above the page, and a panel slides out with thumbnails of multiple pages. This function doesn't appear on iPads (and other mobile devices), or at least it's not obvious how to view more than the front page. Any thoughts? If I'm correct are there any fixes? Many thanks, Bob Quote Link to comment
bflack Posted April 30 Author Report Share Posted April 30 I should add I'm using version 14.0, website: www.flackology.com. Thanks in advance for any thoughts! Quote Link to comment
Philip Roy Posted May 1 Report Share Posted May 1 Use this mod https://tng.lythgoes.net/wiki/index.php/PDFjs_Viewer_Mod Quote Link to comment
Rob Severijns Posted May 1 Report Share Posted May 1 Additional to @Philip Roy posting I would advise you to install the "Pdfjs_viewer_mod_hide_buttons_v13.0.0.1" if you want to prohibit the saving, downloading, printing and bookmarking of your PDF files for all visitors. This is of course dependend on the level of privacy you want for your website in general and PDF files in particular. The mod is available on the same page as the https://tng.lythgoes.net/wiki/index.php/PDFjs_Viewer_Mod Quote Link to comment
bflack Posted May 1 Author Report Share Posted May 1 The PDFjs Viewer Mod seems like the right strategy. I've installed the mod, but am stymied at the very last step which requires Go to General Settings and update the Media section after install. When I go to Setup >> Configuration >> General Settings>>Media, there's no "update" option available. However there is evidence that PDFjs Viewer is installed, an option to enable for "mobile only" or "always". Otherwise, the Mod Manager shows no installation errors. Can you advise on how to "update the media section"? Seems necessary since there's an error message when I try to access PDFs now from an iPad: "Missing PDF file" which is totally accessible from a desktop browser. Again, thanks! Quote Link to comment
Philip Roy Posted May 2 Report Share Posted May 2 First, posting this question three times in separate forum posts is simply not needed. Patience is. Anyone who replied already received your comment, but we may have other things we need to focus on. Second, it's referring to this new setting...decide if you want this functionality to be for mobile only or for all instances (Always) Quote Link to comment
bflack Posted May 2 Author Report Share Posted May 2 I stand corrected, and apologize for the impatience. I'm very appreciative of the community help! Selecting "Always" disables all pdf's getting the attached error message for the "standard site" and "mobile site" mode --and also causes the error on desktop browsers. I've switched back to "Mobile only" which at least gets the desktop browsers working correctly again. Cheers Quote Link to comment
Philip Roy Posted May 2 Report Share Posted May 2 Is this with every PDF on your site? That sounds like you have an issue with a PDF missing as opposed to the mod. Perhaps provide a link to the page where the PDF shows. From memory the mod requires you upload a folder to the root of your TNG site. Did you do that as part of the set up process. Quote Link to comment
bflack Posted May 2 Author Report Share Posted May 2 Happens on all PDFs viewed from iPad in the "Mobile site" mode, and when switched to "standard site" mode I get only the front page of the PDF -as it was before installing the Mod. Pretty sure the folder is installed at the root; see screen shot. Also the Mod Manager report doesn't show any errors; again see screenshot. Sorry this is bothersome, dealing with these technical issues is a modest stretch for me. Quote Link to comment
bflack Posted May 2 Author Report Share Posted May 2 Here's a multiple page PDF posted on the flackology.com website: https://flackology.com/genealogy/showmedia.php?mediaID=406 Quote Link to comment
Philip Roy Posted May 2 Report Share Posted May 2 The PDF is reasonably big in file size at 5.4Mb...I realised it when I first came to the page and had to wait for the PDF to load. Try a page with a smaller PDF and see if that is working. Also, I have no idea of this affects the mod, but I would never put a file on a website with spaces in the filename as some browsers don't cope with them. Maybe try renaming a couple of PDFs to not have spaces (for example "In-Memoriam-Charlotte-Sonya-Weber.pdf" and see if that makes any change. Sorry, a bit of a guess from me at this stage. Quote Link to comment
Philip Roy Posted May 2 Report Share Posted May 2 There's also a slightly odd solution here of changing the settings twice to solve things? https://tng.community/index.php?/forums/topic/15738-problem-diplaying-pdf/ Quote Link to comment
bflack Posted May 2 Author Report Share Posted May 2 OK thanks for suggestions. I've fiddled with inserting hyphens, tried smaller PDFs ... without any affect. Best to uninstall the mod at this point. Quote Link to comment
RickM Posted May 2 Report Share Posted May 2 3 hours ago, bflack said: OK thanks for suggestions. I've fiddled with inserting hyphens, tried smaller PDFs ... without any affect. Best to uninstall the mod at this point. @bflack Whilst the link you provided was, as @Rob Severijns mentions, quite a long time loading, it loaded and worked for me just fine.. I doubt this is a Mod issue!! I'm using Vivaldi Browser on a Windows 10 Laptop. Quote Link to comment
Philip Roy Posted May 2 Report Share Posted May 2 That was me that mentioned that…and it was a guess at the issue, as stated. Also it’s loading now because as he mentioned, he’s disabled the mod as that was causing errors. Quote Link to comment
bflack Posted May 2 Author Report Share Posted May 2 Thanks all for suggestions. I completely uninstalled, then carefully re-installed per instructions, including extracting the zip file on the server (as opposed to expanding locally, then placing on server). Still no success, get error message when opening pdf's on iPad. Now uninstalled again, back to the condition before fiddling with the mod. Quote Link to comment
bflack Posted May 5 Author Report Share Posted May 5 I’ve been ruminating about what’s preventing PDFjs from finding the target files, after carefully re-installing again (unsuccessfully - so it’s un-installed now). Is it possible the way my site is set up on the server throws off the expected file path? Specifically, there’s a redirect at the URL, flackology.com to the folder ‘genealogy’, home for the TNG index.php and other php files & folders: https://flackology.com/genealogy/index.php. I’ve assumed this ‘genealogy’ folder is in effect the ‘root folder’ where the PDFjs folder must reside, but wonder if the redirected location throws things off. If so, I’m clueless on the fix. This is somewhat above my experience to troubleshoot, so I appreciate any thoughts/suggestions. Quote Link to comment
Philip Roy Posted May 5 Report Share Posted May 5 That’s shouldn’t have any impact I would have thought. I’ve been wondering also…and the thing that popped into my head was the permissions on the folder and files that you have to upload to the root of your site. Maybe check the permissions of the files? Again, this is just a guess… https://tng.lythgoes.net/wiki/index.php/Permissions_Explained Do you have the ability to set up a local copy of your site on your PC or Mac using WAMP or MAMP? You can find info how to do that on the wiki. I just wonder how you might get on trying that? Quote Link to comment
bflack Posted May 5 Author Report Share Posted May 5 The pdfjs folder is still on the server, with the permissions on the attached screenshot. Seems identical to other folders within TNG. In any event, permission settings are beyond me. Not sure I feel comfortable fiddling with them, especially when everything else works. Almost forgot the file permissions in the folder. Again seems the same as other files; see attached. Thanks for thinking about this! Quote Link to comment
bhemph Posted May 16 Report Share Posted May 16 If you click on the more information when you get that error, it should indicate what path it thinks the file should be in. I am guessing that it will show https://flackology.com/documents/In Memoriam Charlotte Sonya Weber.pdf instead of https://flackology.com/genealogy/documents/In Memoriam Charlotte Sonya Weber.pdf Quote Link to comment
bflack Posted May 17 Author Report Share Posted May 17 You're correct. Here's the message: PDF.js v2.4.456 (build: 228a591c) Message: Missing PDF "https://flackology.com/documents/In%20Memoriam%20Charlotte%20Sonya%20Weber.pdf". Other than reconfiguring the server setup, how do I adjust the mod to look for https://flackology.com/genealogy/documents ... ? Thanks Quote Link to comment
Katryne Posted May 17 Report Share Posted May 17 The web does not like spaces within file names. Try to rename your pdf removing the spaces, this way : In_Memoriam_Charlotte_Sonya_Weber.pdf Quote Link to comment
bhemph Posted May 18 Report Share Posted May 18 I believe this may be the result of what is in the rootpath or genealogy url in the General Settings. Quote Link to comment
bflack Posted May 18 Author Report Share Posted May 18 The rootpath from general setting is below. Works for all other aspects of the website, so I'm reluctant to reconfigure on the server. As another approach, and I'm way in over my head here, can I modify the mod code to point to the right folder? Totally guessing that a relative reference is needed rather than the absolute path calling for the documents folder. Apologies if I'm way off on this. Quote Link to comment
Philip Roy Posted May 18 Report Share Posted May 18 A number of us have commented on the use of spaces in the filename of PDFs is not a good idea, but I can’t see any response saying you’ve tried a PDF without spaces. Can you confirm you’ve tested that this isn’t the issue? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.