HTMLDOC 1.8.28 Jan 6, 2014

HTMLDOC 1.8.28 is now available for download from:

   http://www.msweet.org/downloads.php/HTMLDOC

HTMLDOC 1.8.28 fixes some known security issues and formatting bugs. Changes include:

  • Updated local zlib to version 1.2.8.
  • Updated local PNG library to version 1.6.8.
  • Updated local JPEG library to version 9.
  • Updated default PDF version to 1.4.
  • SECURITY: Fixed three buffer overflow issues when reading AFM files and parsing page sizes.
  • Fixed incompatibility with Fortify's version of strcpy, which does not work properly with variable-length arrays (STR #235)
  • Fixed compilation against PNG library 1.5 or later (STR #243)
  • Fixed documentation errors (PR #6593, PR #6595)
  • Marked Zapf-Dingbats as a standard font (STR #198)
  • Fixed GPL license text in GUI (STR #222)
  • Fixed a table formatting problem when a column has multiple colspan values (PR #6709)
  • Fixed parsing of HTML comments (STR #181)
  • Fixed potential out-of-bounds read in table-of-contents rendering code (STR #183)
  • Fixed handling of image URLs with ampersands in them (STR #186)
  • Fixed top/bottom margins for logo and header/footer images (STR #174)
  • Fixed image alignment bug (Bug #231)
  • Fixed X11 build problem (Bug #243)

Enjoy!

14 comments

Narbey Derbekyan Feb 28, 2014

I downloaded htmldoc-1.8.28-source.tar.bz2 and received the following error after running ./configure and then make:

Making all in htmldoc...
Compiling gui.cxx...
Compiling file.c...
Compiling html.cxx...
Compiling htmldoc.cxx...
Compiling htmllib.cxx...
Compiling htmlsep.cxx...
Compiling http.c...
Compiling http-addr.c...
Compiling http-addrlist.c...
http-addrlist.c: In function `httpAddrConnect':
http-addrlist.c:59: error: `errno' undeclared (first use in this function)
http-addrlist.c:59: error: (Each undeclared identifier is reported only once
http-addrlist.c:59: error: for each function it appears in.)
http-addrlist.c:59: error: `EINVAL' undeclared (first use in this function)
make[1]: *** [http-addrlist.o] Error 1

The following diff appears to fix it.

diff -Nu htmldoc-1.8.28/htmldoc/http-addrlist.c htmldoc-1.8.28_fixed/htmldoc/http-addrlist.c
--- htmldoc-1.8.28/htmldoc/http-addrlist.c 2011-12-30 02:41:10.000000000 -0500
+++ htmldoc-1.8.28_fixed/htmldoc/http-addrlist.c 2014-02-27 18:08:04.000000000 -0500
@@ -28,6 +28,7 @@
 #  include <resolv.h>
 #endif /* HAVE_RESOLV_H */
 
+#include <errno.h>
 
 /*
  * 'httpAddrConnect()' - Connect to any of the addresses in the list.

Ashley Mar 4, 2014

listed this in your bugs page too . .  .hope it was right to do so . . . ?
basically having trouble installing on a Mac (previous versions installed and worked fine)

at the "make" part:

http.c: In function 'http_setup_ssl':
http.c:3530: warning: implicit declaration of function 'SSLCreateContext'
http.c:3530: error: 'kSSLClientSide' undeclared (first use in this function)
http.c:3530: error: (Each undeclared identifier is reported only once
http.c:3530: error: for each function it appears in.)
http.c:3531: error: 'kSSLStreamType' undeclared (first use in this function)
http.c:3531: warning: assignment makes pointer from integer without a cast
http.c:3550: warning: implicit declaration of function 'SSLSetSessionOption'
http.c:3550: error: 'kSSLSessionOptionBreakOnServerAuth' undeclared (first use in this function)
make[1]: *** [http.o] Error 1

Philip Mar 9, 2014

Just tried compiling this on CentOS 6.5 (gcc 4.4.7).
Had same problem as Narbey but fixed manually before I found this page.

Also had an "int to boolean" conversion error in image.cxx line 1385:

   cinfo.quantize_colors = 0;

Fixed by changing '0' to 'FALSE' as per the typedef in jpeg/jmorecfg.h

Otherwise, have used this tool for years - great work !

Michael Sweet Mar 11, 2014

You'll find a patch for for these issues attached to Bug #500.  For older versions of Mac OS X, build with the "--disable-cdsassl --enable-openssl" configure options.

Zhang Huanbin Apr 29, 2014

look at me,my system is ubuntu12.04,and thers is the problem:
http.c: 在函数‘httpInitialize’中:
http.c:1217:3: 警告: 隐式声明函数‘gnutls_global_init’ [-Wimplicit-function-declaration]
http.c:1177:17: 警告: 未使用的变量‘data’ [-Wunused-variable]
http.c:1176:8: 警告: 未使用的变量‘i’ [-Wunused-variable]
http.c: 在文件作用域:
http.c:1905:5: 错误: 未知的类型名‘gnutls_transport_ptr’
http.c:2864:5: 错误: 未知的类型名‘gnutls_transport_ptr’
make[1]: *** [http.o] 错误 1
drfly@drfly-PC:~/Source/Project/htmldoc-1.8.28$ make
Making all in htmldoc...
Compiling http.c...
http.c: 在函数‘httpInitialize’中:
http.c:1217:3: 警告: 隐式声明函数‘gnutls_global_init’ [-Wimplicit-function-declaration]
http.c:1177:17: 警告: 未使用的变量‘data’ [-Wunused-variable]
http.c:1176:8: 警告: 未使用的变量‘i’ [-Wunused-variable]
http.c: 在文件作用域:
http.c:1905:5: 错误: 未知的类型名‘gnutls_transport_ptr’
http.c:2864:5: 错误: 未知的类型名‘gnutls_transport_ptr’
make[1]: *** [http.o] 错误 1

Hernan Foffani Nov 12, 2014

I'm trying htmldoc with https but it gives ERR010 Unable to connect etc. and then
ERR005: Unable to find etc. (The web page I used for the test is this one).
I'm using brew on Mac OSX Yosemite to download and compile htmldoc.
The configure options are --disable-debug --prefix and --mandir
The output of the build is at https://gist.github.com/hfoffani/9a39cc367289653526e1
If you can give me a hint what to look for I'd greatly appreciate it.
TIA

DanE Jan 23, 2015

Hello,
Does htmldoc provide support for sizes other than book-sized documents?
I'm unable to find anything specific in the documentation.
I have some html documents (PNGs, TIFFs) extracted from and MHT file which I'd like to convert to PDF. Dimmensions of the drawings are C, D and E sizes.
Thank you.  Please let me know if there is a more appropriate place for this comment.
Thank you,

satish Mar 16, 2015

Hello ,
Thank you for this great library. I am facing issue with utf-8 encoding support. I am aware that this is known bug and will be fixed in 1.9 version. when we can expect 1.9 version? or any other patch to fix the problem till then? I'm stuck . Please guide me .It would be great help.
Thanks in Advance.

Cheers!
Satish

Oliver Bazely Jun 17, 2015

Hi,
I have downloaded and extracted v1.8.28 and attempted to install on Ubuntu 14.04. I have gcc4.8.2 installed. I don't need the GUI, so I haven't installed FLTK. As root, from within /htmldoc-1.8.28, I have run "./configure" and then "make".

I get a fatal error during make, as follows. Any help would be appreciated.

# make
Making all in jpeg...
Compiling jaricom.c...
Compiling jcapimin.c...
Compiling jcapistd.c...
Compiling jcarith.c...
Compiling jccoefct.c...
Compiling jccolor.c...
Compiling jcdctmgr.c...
Compiling jchuff.c...
Compiling jcinit.c...
Compiling jcmainct.c...
Compiling jcmarker.c...
Compiling jcmaster.c...
Compiling jcomapi.c...
Compiling jcparam.c...
Compiling jcprepct.c...
Compiling jcsample.c...
Compiling jctrans.c...
Compiling jdapimin.c...
Compiling jdapistd.c...
Compiling jdarith.c...
Compiling jdatadst.c...
Compiling jdatasrc.c...
Compiling jdcoefct.c...
Compiling jdcolor.c...
Compiling jddctmgr.c...
Compiling jdhuff.c...
Compiling jdinput.c...
Compiling jdmainct.c...
Compiling jdmarker.c...
Compiling jdmaster.c...
Compiling jdmerge.c...
Compiling jdpostct.c...
Compiling jdsample.c...
Compiling jdtrans.c...
Compiling jerror.c...
Compiling jfdctflt.c...
Compiling jfdctfst.c...
Compiling jfdctint.c...
Compiling jidctflt.c...
Compiling jidctfst.c...
Compiling jidctint.c...
Compiling jmemmgr.c...
Compiling jmemnobs.c...
Compiling jquant1.c...
Compiling jquant2.c...
Compiling jutils.c...
Archiving libjpeg.a...
Making all in png...
Compiling png.c...
Compiling pngerror.c...
Compiling pngget.c...
Compiling pngmem.c...
Compiling pngpread.c...
Compiling pngread.c...
Compiling pngrio.c...
Compiling pngrtran.c...
Compiling pngrutil.c...
Compiling pngset.c...
Compiling pngtrans.c...
Compiling pngwio.c...
Compiling pngwrite.c...
Compiling pngwtran.c...
Compiling pngwutil.c...
Archiving libpng.a...
Making all in htmldoc...
Compiling gui.cxx...
Compiling file.c...
file.c: In function ‘file_localize’:
file.c:833:9: warning: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result [-Wunused-result]
   getcwd(cwd, sizeof(cwd));
         ^
Compiling html.cxx...
Compiling htmldoc.cxx...
Compiling htmllib.cxx...
Compiling htmlsep.cxx...
Compiling http.c...
http.c: In function ‘httpInitialize’:
http.c:1217:3: warning: implicit declaration of function ‘gnutls_global_init’ [-Wimplicit-function-declaration]
   gnutls_global_init();
   ^
http.c:1177:17: warning: unused variable ‘data’ [-Wunused-variable]
   unsigned char data[1024];  /* Seed data */
                 ^
http.c:1176:8: warning: unused variable ‘i’ [-Wunused-variable]
   int  i;   /* Looping var */
        ^
http.c: At top level:
http.c:1905:5: error: unknown type name ‘gnutls_transport_ptr’
     gnutls_transport_ptr ptr,  /* I - Connection to server */
     ^
http.c:2864:5: error: unknown type name ‘gnutls_transport_ptr’
     gnutls_transport_ptr ptr,  /* I - Connection to server */
     ^
make[1]: *** [http.o] Error 1

Oliver Bazely Jun 17, 2015

I installed using "sudo apt-get install htmldoc" instead. It seems to have worked.

Tony van Lunenburg Oct 28, 2015

Hi Michael
I use your htmldoc to product pdf's and it simply works great - thank you
I was using ver 1.8.23 on an old server and it would produce a file 21kb
I have created a new server with Centos 6.7 64bit, and loaded 1.8.27 and for the same data, it produces a file 491kb and puts in colour boxes
I would like to send you and example of the pdf produced but I can't add a graphic to this post
Please advise what could cause this and how can I send you an example of the problem
Thanks

Greg Mundt Nov 20, 2015

Is there any way to reduce font size of lines within a page when running HTMLDOC.  I don't want all of my lines at the same font.
Thanks

Bogdan644 Jan 11, 2017

good all the unfavorable effects tough water could have https://watergadget.com/fleck-water-softener-reviews are not as efficient as salt based systems. best.

Randall658 Jan 24, 2017

good To name a few intriguing attributes the Livestream consists of https://mobdro.uk/apps-like-mobdro-alternatives searching for Mobdro Alternatives for iPhone, iPad iOS Android nice.