Page 1 of 1

how to add version info in publishing PDF cover

Posted: Mon Feb 17, 2020 6:19 am
by Sunmy
hi,

I tried using a PNG file or SVG file as PDF covers,and add them in my CSS file. The PDF cover contains version information and publishing date.
But there is a trouble that bothers me, I have to publish a large number of PDF documents frequently, every time I publish, I need to edit the version information and date manually. This wastes me a lot of time.

I am wonder if there is a way to add the version infromaition and date automatically. Or I can edit version information on XML editor instead of editing the CSS file or SVG file.

Re: how to add version info in publishing PDF cover

Posted: Mon Feb 17, 2020 4:06 pm
by julien_lacour
Hello,

The easiest way to realize what you want is to use the oxy_xpath function inside a CSS customization.
Using this function you can insert the current date in the cover page or collect and process the document contents.

Do not hesitate to navigate inside the Chemistry Documentation, it contains a lot of "How to" sections which can help you through the CSS customization process.

If you are using DITA documents, you can also check the Oxygen DITA-OT CSS Publishing to PDF Plugin Documentation.

Regards,
Julien