Hi Deri, Am Mittwoch, 26. Januar 2022, 00:31:57 CET schrieb Deri: > ..... > > This works:- > > .sp 1i > .pdfinfo /Title "\[u000a]My\[u000a]multiline\[u000a]document\[u000a]title\ > [u000a]" > .pdfinfo /Synopsis "A short description of the document content." > Hello, world! > > BUT, you will need a small tweak to the program gropdf. This patch should > allow multi-line .pdfinfo using \[u000a] as the line separator and -Tpdf:- > > --- a/src/devices/gropdf/gropdf.pl > +++ b/src/devices/gropdf/gropdf.pl > @@ -876,9 +876,9 @@ sub do_x > $pdfmark=~s((\d{4,6}) u)(sprintf("%.1f",$1/ > $desc{sizescale}))eg; > $pdfmark=~s(\\\[u00(..)\])(chr(hex($1)))eg; > > - if ($pdfmark=~m/(.+) \/DOCINFO\s*$/) > + if ($pdfmark=~m/(.+) \/DOCINFO\s*$/s) > { > - my @xwds=split(' ',"<< $1 >>"); > + my @xwds=split(/ /,"<< $1 >>"); > my $docinfo=ParsePDFValue(\@xwds); > > foreach my $k (sort keys %{$docinfo}) > > I will soon be adding this patch to groff git. > > Cheers > > Deri
Thanks, changed it in /usr/local/bin/gropdf I have .pdfinfo /Title \*[TITEL] .pdfinfo /Author \*[AUTOR] .pdfinfo /Subject "Eine historische und statistische Skizze,\ \[u000a]im Auftrage des Bischofs Ignatius Paoli von Nicopolis und Bucurest,\ \[u000a]erschienen Würzburg 1879" .pdfinfo /Keywords Katholiken, Rumänien, Walachei, Bulgarien, 1879 and okular shows it perfect as shown attached. Heinz