I have an image that needs to be shown at the bott...
# advancedpdf
l
I have an image that needs to be shown at the bottom of the first page of the template. We have some text in the footer that needs to be shown on every page. Is there a way to categorically show only that image at the bottom of the first page (right above the footer)?
d
expand the footer on the first page only to accommodate the image height. let us know how you go
l
I will try this. Thank you
d
I can dig out some examples if you run into trouble but basically you want to use BFO's
#pageX
css style selector
l
@David B I just realized that if I put it in the footer tag, it would be repeated in all pages, wouldn’t it?
I Googled BFO’s
#pageX
but I could not make it work. Do you have a sample if you don’t mind? Thanks.
d
see the last example on this page: FOOTER, HEADER attribute
here's how it all hangs together. LMK if you have any questions
l
Thanks, David. Appreciate it. I’ll check this out.
Is this also applicable if I want to print something on the last page of the document only? I have been told that isn’t possible yet though.
d
kind of.... you can't say "hey, on the last page, use this different footer". As only BFO knows how many pages there will actually be. A couple of things you can do: after all of your content, you can add a page break (
<pbr>
) and either do last page content there, or set a custom header/footer (linked BFO doc above has example). You can also look into
<pdfset>
, which allows you to merge pdfs together (so you could add a different PDF onto the end). My understanding is that this is a little more complicated, but I've also never had the need to try it. Both approaches still don't allow you have a different footer/header/formatting on the last page, as they will always add an extra page. Hope that all makes sense, happy to answer other questions you have