ADDED: optional PDF metadata from AUTHOR and SUBJECT variables.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17289
This commit is contained in:
Jeff Young
2024-03-14 17:40:04 +00:00
parent 34ec57958d
commit e30b6398b7
21 changed files with 6351 additions and 6051 deletions
+6 -2
View File
@@ -1463,10 +1463,14 @@ function ShM(aEntries) {
"/Producer (KiCad PDF)\n"
"/CreationDate (%s)\n"
"/Creator %s\n"
"/Title %s\n",
"/Title %s\n"
"/Author %s\n"
"/Subject %s\n",
date_buf,
encodeStringForPlotter( m_creator ).c_str(),
encodeStringForPlotter( m_title ).c_str() );
encodeStringForPlotter( m_title ).c_str(),
encodeStringForPlotter( m_author ).c_str(),
encodeStringForPlotter( m_subject ).c_str() );
fputs( ">>\n", m_outputFile );
closePdfObject();