how to add version info in publishing PDF cover

Sunmy
Posts: 6
Joined: Fri Sep 06, 2019 10:58 am

how to add version info in publishing PDF cover

Post by Sunmy » Mon Feb 17, 2020 6:19 am

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.

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

Re: how to add version info in publishing PDF cover

Post by julien_lacour » Mon Feb 17, 2020 4:06 pm

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

Post Reply