Page 1 of 1

Current date in PDF footer

Posted: Mon Dec 16, 2019 3:24 pm
by jdonges
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

Re: Current date in PDF footer

Posted: Tue Dec 17, 2019 1:53 pm
by julien_lacour
Hello Joern,

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

Regards,
Julien

Re: Current date in PDF footer

Posted: Tue Dec 17, 2019 4:57 pm
by jdonges
Hello Julien,

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

Regards,
Joern