From: maqiyuan Date: Fri, 22 Aug 2014 04:09:10 +0000 (+0800) Subject: fixed on closing PDF stream. X-Git-Url: http://git.osdn.net/view?p=putex%2Fputex.git;a=commitdiff_plain;h=e30bd3e4f6d19dbc4a3444a777b683970e1a7258 fixed on closing PDF stream. --- diff --git a/src/texsourc/tex9.c b/src/texsourc/tex9.c index 8864c97..d080fb0 100644 --- a/src/texsourc/tex9.c +++ b/src/texsourc/tex9.c @@ -249,27 +249,15 @@ void close_files_and_terminate (void) #endif { - spc_exec_at_end_document(); - pdf_close_document(); - pdf_close_device(); - pdf_files_close(); - pdf_close_fontmaps(); - if (total_pages == 0) print_nl("No pages of output."); else { - if (total_pages >= 65536) - { - sprintf(log_line, "\nWARNING: page count (dvi_t) in DVI file will be %lld not %lld\n", - (total_pages % 65536), total_pages); - - if (log_opened) - fputs(log_line, log_file); - - show_line(log_line, 1); - } - + spc_exec_at_end_document(); + pdf_close_document(); + pdf_close_device(); + pdf_files_close(); + pdf_close_fontmaps(); print_nl("Output written on "); if (full_file_name_flag && pdf_file_name != NULL)