1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-02 16:25:41 +00:00

correct page count in prompt

This commit is contained in:
Lu Wang 2012-11-16 20:41:44 +08:00
parent 9f5cd8a0f4
commit ef72038894
3 changed files with 4 additions and 5 deletions

View File

@ -76,7 +76,7 @@ void HTMLRenderer::process(PDFDoc *doc)
bg_renderer->startDoc(doc);
}
int page_count = (param->last_page - param->first_page);
int page_count = (param->last_page - param->first_page + 1);
for(int i = param->first_page; i <= param->last_page ; ++i)
{
cerr << "Working: " << (i-param->first_page) << "/" << page_count << '\r' << flush;

View File

@ -41,7 +41,7 @@ Preprocessor::~Preprocessor(void)
void Preprocessor::process(PDFDoc * doc)
{
int page_count = (param->last_page - param->first_page);
int page_count = (param->last_page - param->first_page + 1);
for(int i = param->first_page; i <= param->last_page ; ++i)
{
cerr << "Preprocessing: " << (i-param->first_page) << "/" << page_count << '\r' << flush;

View File

@ -57,15 +57,14 @@ static inline long long hash_ref(const Ref * id)
}
/*
* Check if the unicode is valid for HTML
* http://en.wikipedia.org/wiki/HTML_decimal_character_rendering
*/
bool isLegalUnicode(Unicode u);
Unicode map_to_private(CharCode code);
/*
* Try to determine the Unicode value directly from the information in the font
*/
/* * Try to determine the Unicode value directly from the information in the font */
Unicode unicode_from_font (CharCode code, GfxFont * font);
/*