Am Dienstag, 25. Januar 2022, 17:32:16 CET schrieb Deri: > On Monday, 24 January 2022 12:44:22 GMT Heinz-Jürgen Oertel wrote: > > Hi, > > hope it will be possible, > > to write multi line subject lines as PDF meta data > > > > > > currently I us > > .pdfinfo /Title .. /Author .. Keywords and Subject with succes. > > All in one line, which is mostly enough for Title and Author. > > But often I have a need to explain more about the document. What what help > > is using more than one line. I tried different approaches, without success > > so far. > > > > Any ideas? > > > > .pdfinfo Subject "line 1\nline 2\n..." > > > > > > Greetings > > Heinz > > Hi Heinz, > > This metadata is held in the "document information dictionary" of the pdf. In > the pdf 1.4 standard the items Title/Author/Keywords/Subject are all defined > as text strings, so I believe that precludes them from being multiline.
Hi Deri, I can edit the PDF, using vim, and split the long one line into this: /Subject (Eine historische und statistische Skizze, im Auftrage des Bischofs Ignatius Paoli von Nicopolis und Bucurest, erschienen Würzburg 1879) and Okular shows really three lines. > However, the standard allows you to include your own custom keys as well. I > tested this with this troff code:- > > .sp 1i > .pdfinfo /Title PDFINFO Test > .pdfinfo /Synopsis Here is a little more text OK, will try it, may be it is useful. BUT, to add more information to the PDF, once it is ready for shipping, I use exiftool. E.g. exiftool \ -License="CC-By-SA 4.0" \ $(source).pdf rm $(source).pdf_original Heinz