Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding Title, Author, Subject, Keywords metadata with wkhtmltopdf

Is there a way to add metadata (e.g. Title, Author, Subject, Keywords) to a PDF when creating it with wkhtmltopdf from the command line via PHP?

like image 420
Slinava Surla Avatar asked Oct 12 '14 14:10

Slinava Surla


1 Answers

The many command line options for wkhtmltopdf are documented at http://wkhtmltopdf.org/usage/wkhtmltopdf.txt (also available by running wkhtmltopdf -H). You can set the title of a PDF via the --title global option. Currently there does not appear to be support for specifying author, subject, or keywords metadata.

like image 87
Theodore Brown Avatar answered Nov 10 '22 22:11

Theodore Brown