Ready to get started?Download WordPress


WP Post to PDF
[resolved] Changing Header (2 posts)

  1. tribun
    Posted 1 year ago #

    I would like change the Header output.

    Dont need Blog Description, but to right Side I need the PDF Date and the Author and in the right Head of the Post the Post Date.

    I know that this Row in the php is for the Header: $pdf->SetHeaderData(PDF_HEADER_LOGO, $logowidth, html_entity_decode(get_bloginfo('name')), html_entity_decode(get_bloginfo('description') . "\n" . get_bloginfo('siteurl')));

    But what I must put in? And what i must doing for Dates?

    thx for Support



  2. Neerav Dobaria
    Plugin Author

    Posted 1 year ago #

    To remove blog description, use following code

    $pdf->SetHeaderData(PDF_HEADER_LOGO, $logowidth, html_entity_decode(get_bloginfo('name')), get_bloginfo('siteurl')));

    Its not good choice to have date in PDF as it can not be cached in that case.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.