hoecake / share-extras

Automatically exported from code.google.com/p/share-extras
0 stars 0 forks source link

Media Viewers - Some pdf documents does not show correctly #110

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Import that file in documentlibrary : 
http://wiki.pistes.org/images/c/c9/Conception_mini_eolienne.pdf
2. Go to document-details

What is the expected output? What do you see instead?

Page 1 and 2 loads fine, but further pages does not.

What version of the add-on are you using? Please provide version of the
downloaded package, or Subversion revision number.

media-viewers-2.0.jar

What version of Alfresco are you using? On what application server?

4.0.2 Enterprise on Tomcat 6.0.35

What web browser are you using? Please supply browser name and version.

Firefox 16.0.2

Please provide any additional information below.

When I load this document from (see below), all is OK.
http://mozilla.github.com/pdf.js/web/viewer.html

In web-preview.get.config.xml, I configured the add-on like this :

<condition mimeType="application/pdf">
  <plugin defaultScale="page-width" mode="iframe">PdfJs</plugin>
  <plugin>Embed</plugin>
</condition>

<condition thumbnail="pdf">
  <plugin src="pdf" defaultScale="page-width" mode="iframe">PdfJs</plugin>
  <plugin src="pdf">Embed</plugin>
</condition>

Original issue reported on code.google.com by philippe...@gmail.com on 30 Nov 2012 at 1:43

GoogleCodeExporter commented 9 years ago
Can you attach a screenshot? It works fine for me on Chrome 23 on OSX (see 
attached image), although rendering is slower than I have seen for most 
documents.

Original comment by will.abson on 4 Dec 2012 at 4:50

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
As I can see on your screenshot, you didn't set the plugin to use "iframe" mode 
such as I did.
When the document loads on first page, I can see pages 1 and 2, but if the 
document loads on another page, sometimes I can see other pages and first pages 
does not show.

Original comment by philippe...@gmail.com on 5 Dec 2012 at 8:32

Attachments:

GoogleCodeExporter commented 9 years ago
Apologies, I saw that in your config but for some reason I read it as 
mode="block", which is the default anyway.

Why do you need to use the iframe mode? The documentation notes this is 
deprecated and it has been fully removed on trunk and will not therefore be in 
the upcoming 2.1 release.

Original comment by will.abson on 5 Dec 2012 at 10:03

GoogleCodeExporter commented 9 years ago
I used that mode because I couldn't see some pdf documents with mode=block (-> 
see related 112 issue).
My repository contains mainly pdf documents, so it was critical to use that 
mode.

Original comment by philippe...@gmail.com on 5 Dec 2012 at 10:09

GoogleCodeExporter commented 9 years ago
iframe mode is no longer supported. I'm confident we can resolve issue 112 
quickly, which will mean the now-default block mode can be used instead.

Original comment by will.abson on 10 Dec 2012 at 1:48