From d78a4b4154521d68bb26b47227148fa82cecb0d9 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Wed, 18 Sep 2013 20:30:52 +0800 Subject: [PATCH] changelog --- ChangeLog | 9 +++++++++ src/pdf2htmlEX.cc | 19 +++++++++++++------ 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index b11aab4..2e76c41 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,14 @@ Developing v0.10 +* Background image optimization +* Support output background image in JPEG (--bg-format jpg) +* [Experimental] Support output background image in SVG (--bg-format svg) +* New options + --bg-format + --font-format (same as --font-sufix, but without the leading dot) +* Deprecated options: + --font-suffix + v0.9 2013.09.16 diff --git a/src/pdf2htmlEX.cc b/src/pdf2htmlEX.cc index 4d69293..176bdd6 100644 --- a/src/pdf2htmlEX.cc +++ b/src/pdf2htmlEX.cc @@ -41,6 +41,12 @@ using namespace pdf2htmlEX; Param param; ArgParser argparser; +void deprecated_font_suffix(const char * dummy = nullptr) +{ + cerr << "--font-suffix is deprecated. Use `--font-format` instead." << endl; + exit(EXIT_FAILURE); +} + void show_usage_and_exit(const char * dummy = nullptr) { cerr << "Usage: pdf2htmlEX [options] []" << endl; @@ -52,14 +58,12 @@ void show_version_and_exit(const char * dummy = nullptr) { cerr << "pdf2htmlEX version " << PDF2HTMLEX_VERSION << endl; cerr << "Copyright 2012,2013 Lu Wang and other contributers" << endl; - cerr << endl; - cerr << "Libraries: "; - cerr << "poppler " << POPPLER_VERSION << ", "; - cerr << "libfontforge " << ffw_get_version() << endl; + cerr << "Libraries: " << endl; + cerr << " poppler " << POPPLER_VERSION << endl; + cerr << " libfontforge " << ffw_get_version() << endl; #if ENABLE_SVG - cerr << "cairo " << cairo_version_string() << endl; + cerr << " cairo " << cairo_version_string() << endl; #endif - cerr << endl; cerr << "Default data-dir: " << PDF2HTMLEX_DATA_PATH << endl; cerr << "Supported image format:"; #ifdef ENABLE_LIBPNG @@ -171,6 +175,9 @@ void parse_options (int argc, char **argv) .add("version,v", "print copyright and version info", &show_version_and_exit) .add("help,h", "print usage information", &show_usage_and_exit) + // deprecated + .add("font-suffix", "", &deprecated_font_suffix) + .add("", ¶m.input_filename, "", "") .add("", ¶m.output_filename, "", "") ;