Current date in PDF footer

Post here questions and problems related to editing and publishing DITA content.
jdonges
Posts: 15
Joined: Mon Dec 16, 2019 3:01 pm

Current date in PDF footer

Post 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
julien_lacour
Posts: 665
Joined: Wed Oct 16, 2019 3:47 pm

Re: Current date in PDF footer

Post by julien_lacour »

Hello Joern,

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

Regards,
Julien
jdonges
Posts: 15
Joined: Mon Dec 16, 2019 3:01 pm

Re: Current date in PDF footer

Post 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
Post Reply