Current date in PDF footer

jdonges
Posts: 4
Joined: Mon Dec 16, 2019 3:01 pm

Current date in PDF footer

Post by jdonges » Mon Dec 16, 2019 3:24 pm

Hi,

we want to put the current date in the footer of a PDF document using Oxygen with the "DITA Map PDF based on HTML & CSS" Transformation.
It is done by customizing the p-pages-and-headers.css like this :

Code: Select all

@page :left, :right{
...    
       
    /* footer */
    @bottom-left{
        ...
        content: "16.12.2019"; 
        }
    }
This works fine but we have to put in the date manually every time. I would like to put in the system date automatically every time a document is generated but don't know how to do that. Is there any easy way?

Kind regards
Joern

julien_lacour
Posts: 102
Joined: Wed Oct 16, 2019 3:47 pm

Re: Current date in PDF footer

Post by julien_lacour » Tue Dec 17, 2019 1:53 pm

Hello Joern,

Sure, you just need to use a function. Please see the details here.

Regards,
Julien

jdonges
Posts: 4
Joined: Mon Dec 16, 2019 3:01 pm

Re: Current date in PDF footer

Post by jdonges » Tue Dec 17, 2019 4:57 pm

Hello Julien,

thank you, that was really easy. :)
I have put it together with current-date() and format-date() functions now.

Regards,
Joern

Post Reply