WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. tribun
    Member
    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

    tribun

    http://wordpress.org/extend/plugins/wp-post-to-pdf/

  2. Neerav Dobaria
    Member
    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

Tags

No tags yet.