michaelrsweet / htmldoc

HTML Conversion Software
https://www.msweet.org/htmldoc
GNU General Public License v2.0
206 stars 46 forks source link

First page header (--header1) does not work (header is blank) #515

Closed ArtikusHG closed 6 months ago

ArtikusHG commented 9 months ago

The --header1 option does not work - the only thing it does is add empty space on top of the page. --header works fine, but --header has no effect besides adding empty space. I am able to reproduce this both in the command line and the GUI.

michaelrsweet commented 9 months ago

What other options are you using?

ArtikusHG commented 9 months ago

htmldoc --webpage --charset utf-8 --left 0.50in --left 0.50in --top 0in pdfs/tmp.html --letterhead doc_header.png --footer ... --header .L. -f pdfs/tmp.pdf

When I change header to header1 the header does not show up.

michaelrsweet commented 6 months ago

OK, I think I know what is going "wrong". When converting web pages (unstructured documents), the HTMLDOC output engine doesn't use the first-page-header because it doesn't think there is one for the current section.

michaelrsweet commented 6 months ago

[master 8003be2] Fix --header1 support for web pages (Issue #515)