Forum How do I...?

Use the HTML Document title as the PDF title

AaronL
We use prince to convert various report pages in our application to PDF. It's used generically so the parameter --pdf-title=x isn't ideal. How can we make Prince just set the title to be the document title?
AaronL
Actually I think it does do this. Now we just have to extract the title.
mikeday
Yes, Prince should copy the content of the <title> element into the PDF metadata automatically.