usertest
usertest

Reputation: 27648

Change flying saucer header

Is it possible to change the header of a pdf page to the same name as the currently selected bookmark? I'm using flying saucer for my pdf generation. Could you include an example? Thanks in advance.

Upvotes: 2

Views: 2220

Answers (1)

Doug W
Doug W

Reputation: 261

This works for me for flyingsaucer-r8 headers and footers: some bits may be unnecessary.

In my CSS:

@page {
 @bottom-center { content: element(footer); }
}
#footer {font-size: 90%; font-style: italic; position: running(footer); }

In my HTML:

<div id="footer">Footer contents</div>

Upvotes: 4

Related Questions