site_opytex/plugins/pdf-img
2019-09-10 14:30:59 +02:00
..
__init__.py Feat: submodules and import pdf-img 2019-09-10 14:30:59 +02:00
.gitignore Feat: submodules and import pdf-img 2019-09-10 14:30:59 +02:00
LICENSE Feat: submodules and import pdf-img 2019-09-10 14:30:59 +02:00
pdf_img.py Feat: submodules and import pdf-img 2019-09-10 14:30:59 +02:00
README.md Feat: submodules and import pdf-img 2019-09-10 14:30:59 +02:00

pdf-img

Searches for any <img> tags within your article for which the source is a PostScript, EPS, or PDF file. It will produce a PNG preview of the file and this PNG will be displayed as the image. This preview will also act as a link to the original file. If the PDF/PS/EPS file is a multi-page document, then only the first page will be used for the preview. This plugin may be useful for including scientific plots in articles and pages.

Note that the previews will be stored in a directory called __pdf_previews__ stored at the root of the output directory. Errors may arise in the unlikely event that one of your static directories also has this name.

Requirements

figure-ref requires BeautifulSoup4 and wand. Wand, in turn, requires that ImageMagick be installed.

pip install BeautifulSoup4 wand
sudo apt-get install imagemagick   # Works for Ubuntu-based Linux distributions