From 6d0344999841c26c13a7527792e497a87fdd0c22 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Wed, 30 Jan 2013 12:15:22 +0800 Subject: [PATCH] update readme --- README.md | 41 ++++++++++++-------------------------- src/HTMLRenderer/export.cc | 7 +++++++ 2 files changed, 20 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index c1f5bcd..db2b965 100644 --- a/README.md +++ b/README.md @@ -54,32 +54,15 @@ Readers can also be benefitted ## Get started -### Ubuntu - -[PPA](https://launchpad.net/~coolwanglu/+archive/pdf2htmlex), which is not so up-to-date. - -### ArchLinux - -[AUR Package](https://aur.archlinux.org/packages.php?ID=62426), special thanks to Arthur Titeica - -### Gentoo - -Install through Overlay gentoo-zh, mrueg or sunrise, thanks to the packagers. - -### Mac - -[Homebrew Formula](https://github.com/jamiely/homebrew/blob/pdf2htmlex/Library/Formula/pdf2htmlex.rb), special thanks to Jamie Ly - -[Macports (local repo)](https://github.com/iapain/pdf2htmlEX-macport), special thanks to Deepak Thukral - -### Windows - -The code may be built with Cygwin. - -Or with MinGW with some modifications. - -More info can be found on [the pdf2htmlEX page in TeX Wiki](http://oku.edu.mie-u.ac.jp/~okumura/texwiki/?pdf2htmlEX) (in Japanese), special thanks to Haruhiko Okumura +### Install + +Thanks to all packagers! + * [Ubuntu PPA](https://launchpad.net/~coolwanglu/+archive/pdf2htmlex) by Lu Wang , not always up-to-date. + * [ArchLinux AUR](https://aur.archlinux.org/packages.php?ID=62426) by Arthur Titeica + * [Gentoo Overlay](http://gpo.zugaina.org/app-text/pdf2htmlex), gentoo-zh, mrueg or sunrise, by respective packagers. + * [Homebrew Formula](https://github.com/jamiely/homebrew/blob/pdf2htmlex/Library/Formula/pdf2htmlex.rb) by Jamie Ly + * [Macports (local repo)](https://github.com/iapain/pdf2htmlEX-macport) by Deepak Thukral ### Build from source @@ -97,6 +80,10 @@ More info can be found on [the pdf2htmlEX page in TeX Wiki](http://oku.edu.mie-u * git version is recommended to avoid annoying compilation issues * [Optional] **ttfautohint** * run pdf2htmlEX with **--external-hint-tool=ttfautohint** to enable it +* [For Windows] + * Cygwin + * or MinGW, with some modifications to pdf2htmlEX. See [the pdf2htmlEX page in TeX Wiki](http://oku.edu.mie-u.ac.jp/~okumura/texwiki/?pdf2htmlEX) (in Japanese), special thanks to Haruhiko Okumura + #### Compiling @@ -107,9 +94,7 @@ More info can be found on [the pdf2htmlEX page in TeX Wiki](http://oku.edu.mie-u ## Usage pdf2htmlEX /path/to/foobar.pdf - pdf2htmlEX --help - man pdf2htmlEX ## FAQ @@ -152,7 +137,7 @@ pdf2htmlEX is inspired by the following projects: ## Contact * Mailing list - * Please read [**FAQ**](https://github.com/coolwanglu/pdf2htmlEX/wiki/FAQ) before sending emails. Or your message might be ignored. + * Please read `man pdf2htmlEX` and [**FAQ**](https://github.com/coolwanglu/pdf2htmlEX/wiki/FAQ) before sending emails. Or your message might be ignored. * Please use the **latest master branch**. * Lu Wang diff --git a/src/HTMLRenderer/export.cc b/src/HTMLRenderer/export.cc index c9e1516..c5e2f7b 100644 --- a/src/HTMLRenderer/export.cc +++ b/src/HTMLRenderer/export.cc @@ -18,6 +18,9 @@ namespace pdf2htmlEX { +using std::cerr; +using std::endl; + void HTMLRenderer::export_remote_font(const FontInfo & info, const string & suffix, GfxFont * font) { string mime_type, format; @@ -46,6 +49,10 @@ void HTMLRenderer::export_remote_font(const FontInfo & info, const string & suff format = "svg"; mime_type = "image/svg+xml"; } + else + { + cerr << "Warning: unknown font suffix: " << suffix << endl; + } f_css.fs << "@font-face{" << "font-family:f" << info.id << ";"