seems to freeze when display format set to "PDF default" showing a compressed display of the widget with loading...0% at the bottom. Set to "PDF first page" it returns an empty box. I flushed cache and ran cron a few times to no avail. Any ideas?

Comments

shenzhuxi’s picture

Which browser are you using?

suppyx’s picture

same issue

shenzhuxi’s picture

More details, please.

mikeaja’s picture

Same for me with Firefox 10.0.2

Seems to work ok in Chrome 16.0.912.77 m though.

shenzhuxi’s picture

Just tested Firefox 10.0.2. It works and maybe just a little bit slow for loading.

mikeaja’s picture

Yes you are right. It works, just slow (at least for me that was the issue).

Thanks for clarifying.

chetans’s picture

Title: freezes on loading 0% » Stop loading file and showing progess 0%
Priority: Normal » Critical
neozerosv’s picture

Ok, i started using the module and i found two bugs:

First of all this is my enviroment:

OS: Debian Squeeze GNU/Linux
Drupal: 7.10
Drupal pdf module: pdf-7.x-1.0-alpha2
pdf.js: Version comitted Tue Mar 20 21:24:17 2012 -0700

1- pdf.js tries to locate some files at the drupal root subdirectories. So i have resolved the issue by creating two simlynks of:
pdf -> sites/all/libraries/pdf.js/src/
external -> sites/all/libraries/pdf.js/external/
So the actual module finds the files.

2- Drupal module pdf tries to locate the file /sites/all/modules/pdf/pdf-viewer.tpl.php which doesnt exist there but in /sites/all/modules/pdf/theme/pdf-viewer.tpl.php so all i did was another simlynk

I hope it helps.

markusa’s picture

Tried to work around these bugs but to no avail.....tried to create a pdf directory and a external directory under the drupal root and then copied the sites/all/libraries/pdf.js/src directory to the pdf directory under drupal root and copied everything in the sites/all/libraries/pdf.js/external

this module would be pretty cool....if it worked

shenzhuxi’s picture

Because pdf.js is updated, now I recommend you to use v0.1.0.zip instead of the latest from git.
keep pdf.js in sites/all/libraries/pdf.js/ and run make as http://drupalcode.org/project/pdf.git/blob_plain/refs/heads/7.x-1.x:/REA...

markusa’s picture

Thanks...didn't realize I had to make pdf.js....cheers

shenzhuxi’s picture

Status: Active » Fixed

The latest release doesn't require make for embedded display any more.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.