Aerijo / atom-pdf-view-plus

Completely remade PDF viewer in Atom
MIT License
12 stars 0 forks source link

[Bug] PDF file shows up as empty. #10

Open SvenMoenig opened 3 years ago

SvenMoenig commented 3 years ago

Do I need to install any other package? Screenshot from 2021-04-16 11-43-48

sandrofsousa commented 3 years ago

I confirm the issue with Atom 1.56.0 on macOS 11.2.3. It started after the latest Atom update which apparently also updated electron. I was forced to update hydrogen due to a node.js version incompatibility and I confirm that the issue also occurs with pdf-view. Hope this information helps.

lionelmalletpro commented 3 years ago

I confirm with Atom 1.56.0 on Windows 10

Olovram commented 3 years ago

Can confirm it also happens on Windows 10 with Atom 1.56.0 The alternative package pdf-view is also broken by the way.

SvenMoenig commented 3 years ago

If anyone is looking for a working pdf package, this one is working for me: pdfjs-viewer

lionelmalletpro commented 3 years ago

If anyone is looking for a working pdf package, this one is working for me: pdfjs-viewer

Thank you @SvenMoenig I confirm: pdfjs-viewer works fine

jano23 commented 3 years ago

Working on Windows 10 with Atom Beta 1.54.-Beta0 But not with Atom Nightly 1.58.0-nightly0 or Atom v 1.56.0

LivelyLiz commented 3 years ago

For everyone who still wants use this package and/or dislikes pdfjs-viewer, you can make this package work again by updating the pdfjs Version in the package folder.

This worked for me (Atom 1.57.0 on Ubuntu 20.04, for Windows you probably just have to find the right path to copy the folders to):

Update: While the PDF shows again, synctex and automatic update when the PDF changes still seems to be broken. If I have time, I might look into that although I have no idea about JavaScript. Maybe it's as easy as finding the necessary lines with a diff tool.

jano23 commented 3 years ago

This worked - Windows 10 - Atom 1.57.0 Thanks for the update!!

haxung commented 2 years ago

For everyone who still wants use this package and/or dislikes pdfjs-viewer, you can make this package work again by updating the pdfjs Version in the package folder.

This worked for me (Atom 1.57.0 on Ubuntu 20.04, for Windows you probably just have to find the right path to copy the folders to):

  • go to the PDF.js website and download the prebuild (stable) version
  • unzip the contents
  • copy the build and web folder from the downloaded folder to ~/.atom/packages/pdf-view-plus/vendor/pdfjs (you might want to remove the old ones first or rename them just in case)
  • restart atom if you had it open while doing this

Update: While the PDF shows again, synctex and automatic update when the PDF changes still seems to be broken. If I have time, I might look into that although I have no idea about JavaScript. Maybe it's as easy as finding the necessary lines with a diff tool.

Thanks for your suggest. However this issue appeared again in Atom v1.60.0 in windows10 and this suggest cannot solve the problem.
If download Prebuilt (for older browsers) then this plugin works OK. Anther problem: if click hyperlinks in pdf, Atom will close and clear all opened projects.