OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



PDF articles visualization/download

OJS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
Developer Resources:

Documentation: The OJS Technical Reference and the OJS API Reference are both available from the OJS Documentation page.

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome, but if you have a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a technical support question, try the OJS Technical Support subforum.

PDF articles visualization/download

Postby marchitelli » Sun Oct 31, 2010 1:21 am

Hi,
in OJS 2.3.3-1 I have installed, I can't visualize PDF in my browser.
I only read the text "The PDF file you selected should load here if your [...]" but nothing happens.

I can download the file only pushing the button "Download this PDF file". I tested with IE8, Chrome 7 and Firefox 3.6
On other OJS installations this feature is correctly working with the same PC and browsers.

Have you got any ideas about this matter?

Thanks,
Andrea
marchitelli
 
Posts: 119
Joined: Tue May 22, 2007 12:44 am

Re: PDF articles visualization/download

Postby jmacgreg » Tue Nov 02, 2010 9:22 pm

Hi Andrea,

There have been reports of some issues with PDF viewing in that version. Can you take a look at the final patch here: http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=6052, or possibly try updating to OJS 2.3.3-3? (http://pkp.sfu.ca/ojs_download)

Cheers,
James
jmacgreg
 
Posts: 4190
Joined: Tue Feb 14, 2006 10:50 am

Re: PDF articles visualization/download

Postby cnelson » Mon Nov 29, 2010 4:14 pm

Hi there - we're having PDF viewing issues in Firefox 3.6 on several different machines. I've tested the PDF viewer in IE8 and Chrome 6.0 and the viewing, resizing and fullscreen-ing all work in those two browsers, but in Firefox the viewing area simply shows up white. We had a couple different people with different adobe versions complain about this. We are at OJS 2.3.3.3 already. Is there any advice you have for this problem? Would it be possible to revert back to the previous way of displaying PDFs with OJS? Thanks!

CNelson
cnelson
 
Posts: 17
Joined: Mon Nov 30, 2009 3:28 pm

Re: PDF articles visualization/download

Postby jmacgreg » Tue Nov 30, 2010 11:27 am

Hi CNelson,

It won't be easy to revert back to the old way of viewing PDFs, unfortunately. Can you send me a link to your OJS install so that I can take a look?

Cheers,
James
jmacgreg
 
Posts: 4190
Joined: Tue Feb 14, 2006 10:50 am

Re: PDF articles visualization/download

Postby cnelson » Tue Dec 14, 2010 2:18 pm

Here is my transcript of the PM conversation James and I had about this issue, which we have yet to resolve. However, we'll try the proposed solution and update if it helps.

-------------

Hi CNelson,

I can almost certainly confirm that this is a file-size issue. The problem is that it takes a very long time to load a 17+MB PDF file in the browser. Depending on the browser and/or browser PDF plugin, even if the PDF should display incrementally it may not -- it may only display once the entire PDF has been downloaded locally. This would result in you initially seeing only a white screen, but eventually (say on returning to the page) seeing the PDF. (The file will have been partially downloaded previously, and so will probably show up with a bit more waiting; or Firefox etc. may continue to download it in the background even when you leave the page.)

The best solution for your readers would probably be to split the article into multiple PDFs, and upload each individual PDF as a galley for that article, so that you have multiple galley files, each weighing in at a reasonable size. You can modify the galley label (either during the galley upload process or by clicking the "Edit" link next to the galley name in the layout listing) to something that makes more sense for your readers. For example, you can change it from "PDF" to "Part 1 (PDF)", etc. You can also upload the full PDF as well, and for example modify the label to say something like "Full article (17MB PDF)".

Cheers,
James
------

Hi James,

Thanks for your quick response! I wonder why this would be an issue only in Firefox and not in other browsers? I was able to load the full-size PDF just fine in IE, Opera and Chrome...

CNelson

------

Hi CNelson,

That's a good question; the only answer I can put forward is that different browsers (and probably more specifically, different browser PDF viewer plugins) handle PDFs differently. The file actually caused Firefox on my macbook to crash, although when I brought the page back up I could see the PDF just fine. My suspicion is that there's probably something specific to Firefox that causes problems regardless of the viewer (eg. Adobe Acrobat in Windows; Preview on OS X; etc.).

Cheers,
James
cnelson
 
Posts: 17
Joined: Mon Nov 30, 2009 3:28 pm

Re: PDF articles visualization/download

Postby solty » Sat Dec 15, 2012 1:35 am

Hi OJS team and Colleagues,
There is a problem PDF preview area with different browsers.
IE is good but not Firefox and Opera.
I was not see enought pdf viewer are for reading.
I want to fix this area about 685x850 px but not find appropriate setting file and code location.

Please see sample
http://www.neuroquantology.com/index.ph ... ew/604/547

Any help? Suggestion?
With my best regards...
solty
 
Posts: 140
Joined: Mon Mar 16, 2009 12:47 am
Location: Turkiye, İzmir

Re: PDF articles visualization/download

Postby asmecher » Mon Dec 17, 2012 2:29 pm

Hi solty,

Are you able to see the examples at http://pdfobject.com/?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8610
Joined: Wed Aug 10, 2005 12:56 pm

Re: PDF articles visualization/download

Postby solty » Thu Mar 14, 2013 11:43 pm

Hi Alec,
Thank you very much for your fast response.
I was try but I see only authors' names without affiliations and his/her article(s) link list.
http://www.neuroquantology.com/index.ph ... ch/authors


Best,
solty
 
Posts: 140
Joined: Mon Mar 16, 2009 12:47 am
Location: Turkiye, İzmir

Re: PDF articles visualization/download

Postby asmecher » Fri Mar 15, 2013 9:55 am

(See http://pkp.sfu.ca/support/forum/viewtopic.php?f=8&t=9773; please don't double-post as it clutters the threads.)
asmecher
 
Posts: 8610
Joined: Wed Aug 10, 2005 12:56 pm

Inline pdf viewing of articles with URN-identifiers in IE

Postby MMeijer » Wed May 01, 2013 9:27 am

Hi there,

We had a problem with the inline pdf viewer in Internet Explorer.
Even with the most recent release of pdfobject.js we weren't able to get an inline pdf view of our articles, in IE.

Now, we are using URN:NBN's for article ids, so our url for an article view has the format
[domain]/index.php/[journalid]/article/view/URN:NBN:NL:UI:[digits]
where the colons will be encoded as %3A.

Because IE behaves different from other browsers when it comes to (the moment of) encoding/decoding urls, pdfobject.js was encoding an already encoded url. I removed the call to encodeUrl() from pdfobject.js, and now inline pdf-viewing works fine in all browsers. (Apparently, encoding is not necessary for colons)
FYI

gr.Maarten
MMeijer
 
Posts: 36
Joined: Fri Nov 10, 2006 3:25 am
Location: Utrecht

Re: PDF articles visualization/download

Postby asmecher » Wed May 01, 2013 9:56 am

Hi MMeijer,

Can you clarify what version of OJS you're using? We've made a couple of minor tweaks to the PDFObject embedding in recent releases, but it's entirely possible that there's still an escaping problem, particularly for optional pieces of the puzzle like custom identifiers.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8610
Joined: Wed Aug 10, 2005 12:56 pm

Inline pdf viewing of articles with URN-identifiers in IE

Postby MMeijer » Thu May 02, 2013 1:45 am

Hi Alec,
This is OJS 2.3.8 (latest stable release until very recently). But i upgraded the pdfobject.js to version 1.2 from pdfobject.com.

Regards,
Maarten
MMeijer
 
Posts: 36
Joined: Fri Nov 10, 2006 3:25 am
Location: Utrecht


Return to OJS Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron