70002519 I would like to have the ability to set Keywords when exporting to PDF

Article 70002519
Type Wish
Product Engine
Version 1005
Date Added 5/11/2024 12:00:00 AM
Fixed 11.1.5.0 (5/12/2024 12:00:00 AM)
Submitted by Robert Hosea

Summary

I would like to have the ability to set Keywords when exporting to PDF

Solution

In version 11.1.5.0 we added the ability to set the Keywords to a PDF file. In order to do so the developer needs to add a Custom Property to the FileProperties string collection of the Dosument.
The Custom Property needs to start with the keywords= string and then follows the keywords of the PDF file.
Note the Keywords needs to be up to 255 characters.

c# code

doc.FileProperties.Title = "My Title";
doc.FileProperties.Author = "Vectordraw Author";
doc.FileProperties.Subject = "Vector Subject";
doc.FileProperties.CustomProperties.Add("keywords=This is a keywords test");

Send comments on this topic.