0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Arch Linux で pdf.js を使う

Last updated at Posted at 2019-03-29
  1. インストール
pacman -S pdfjs

/usr/share/pdfjs にインストールされます。

  1. Web サーバーでアクセスできるところにシンボリックリンクを張る
ln -s /usr/share/pdf.js/ .

例えば /var/www/tmp/mar29 にシンボリックリンクを作成します。

  1. http://localhost/tmp/mar29/pdf.js/web/viewer.html にアクセス
    viewer01.png

  2. /var/www/tmp/mar29 に cities.pdf というPDFを置きます。
    http://localhost/tmp/mar29/pdf.js/web/viewer.html?file=../../cities.pdf にアクセス
    viewer02.png

  3. iframe を使って2枚のPDFを表示してみました。
    https://ekzemplaro.org/oyama/
    pdf_apr02.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?