IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Header/Footer and HTML Options · View
serhiol
Posted: Thursday, July 23, 2009 12:07:29 PM
Rank: Newbie

Joined: 2/27/2009
Posts: 76
Location: Paris, France
Hello.

I've generate a HTML page, that will be used for printing.

I added a footer/header in page properties:


but unfortunately the HTML output remained unchanged.

Is there a way to set a header and footer in a HTML document, that be visible when printing the page?


Thanks.
island
Posted: Thursday, July 23, 2009 12:17:49 PM
Rank: Newbie

Joined: 10/28/2002
Posts: 1,283
Location: AT
Hi,

the header and footer do not apply to the html output format, only to word, rtf and pdf
serhiol
Posted: Thursday, July 23, 2009 12:48:55 PM
Rank: Newbie

Joined: 2/27/2009
Posts: 76
Location: Paris, France
However in HTML format is possible to add a page break.

So, the concept of "page" exists in HTML, and, eventually, could take in consideration the page headers and footers...

Now, a not very elegant solution is to set manually the footers and headers after each page break, that is not very commode and efficient.
kukeltje
Posted: Monday, November 2, 2009 11:41:40 AM
Rank: Newbie

Joined: 11/2/2009
Posts: 1
Location: Amersfoort (NL)
This is becomming much more interesting with the rise of ,Flying Saucer, a project within SUN that delivers a great way of generating a PDF from XHTML (thanks for this support in 2010, saves me a 'correction') It supports lots of things from CSS3. E.g. with

Code:
.pageFooter {
    position: running(pageFooter);
}

@page {
    @bottom-right
    {
        content: element(footer) element(pageFooter) ;
    }
}


You get a great footer on each page if you generate the PDF from xhtml OR if you print the HTML from the browser (if the browser supports this)

So putting the footer (and headers) in a div when generating the XHTML would be very interesting. Now I have to include a separate div assign specific classes to it.

Btw, pagenumbering also works:

Code:
.pagenumber:before
    {
        content: counter( page );
    }

.pagecount:before
    {
        content: counter( pages );
    }


So translating the

Code:
<field [type="..."]/>

from the sps files to divs with id's and include these css things would be very, very interesting.

edit: used code tags for the code
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.