How to set the PDF properties in 0.6 beta

1,005 views
Skip to first unread message

uk

unread,
Apr 5, 2011, 4:53:29 AM4/5/11
to dompdf
Hi.

In the old version I set the PDF Properties with:
<code>
$pdf->add_info(array(
'Title'=> 'my title'
,'Subject'=>'my subject'
,'Author'=>'company name'
,'Keywords'=>'some key words'
));
</code>

But in the current version only the date and the title is shown. The
other information is not available. How I have to do it?

Thanks! :)

Martin Thomas Schrott

unread,
Apr 5, 2011, 8:13:44 AM4/5/11
to dom...@googlegroups.com
Hello,

you just can put these informations in the meta headers of the html code you
are sending to dompdf.

e.g. <meta name="keywords" content="a, b, c"/>

This does work well.

hth
Martin


Hi.

Thanks! :)

--
You received this message because you are subscribed to the Google Groups
"dompdf" group.
To post to this group, send email to dom...@googlegroups.com.
To unsubscribe from this group, send email to
dompdf+un...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/dompdf?hl=en.


uk

unread,
Apr 5, 2011, 8:31:33 AM4/5/11
to dompdf
This does not work for me, but thanks for the advice.

It is since the 0.6.0 beta 2 ... author, theme and keywords dropped
away.

uk

unread,
May 2, 2011, 2:01:59 PM5/2/11
to dompdf
I forgot to answer.

In 0.6.0 beta2 inline php is deactivated. So the trick is to
reactivate inline php for PDF properties (meta data).

You can find here, where to reactivate inline PHP:
http://groups.google.com/group/dompdf/browse_thread/thread/4d141db37e2a4a36
Reply all
Reply to author
Forward
0 new messages