How to specify PDF meta-data?

586 views
Skip to first unread message

Riddler

unread,
May 2, 2011, 1:54:41 PM5/2/11
to dom...@googlegroups.com
I'm using v0.6 beta 2, and here's my big question: is there a way to specify PDF meta-data? Such as title, subject, author, producer, etc. At this point what I'm getting is empty fields - as on the attached image, and no clue where to go from here...

Any ideas?

Thanks a lot in advance!
20110502205129.PNG

uk

unread,
May 2, 2011, 2:03:37 PM5/2/11
to dompdf
I had the same problem. You can find the answer here (it is because of
inline PHP, it is deactivated because of security reasons):
http://groups.google.com/group/dompdf/browse_thread/thread/4e39bb8b695478fa/cf884b040ce608aa

Riddler

unread,
May 3, 2011, 3:35:54 PM5/3/11
to dom...@googlegroups.com
Thanks for the idea! However, I have solved this for myself in a slightly different manner; since I had to put a password and other stuff on top of the generated PDF, I added FPDI_Protection script to process the PDF generated by DOMPDF, and that allows setting author, title, subject, and keywords quite easily.

Fabien Ménager

unread,
May 4, 2011, 5:41:41 AM5/4/11
to dom...@googlegroups.com
With the SVN trunk and the 0.6 beta 2, all you need is to add meta tags and a title in the head (see http://code.google.com/p/dompdf/wiki/ReleaseNotes).

<meta name="description" content="my description" />
<meta name="keywords" content="blah, bleh, blih ..." />

etc ...
Reply all
Reply to author
Forward
0 new messages