WordPress.org

Ready to get started?Download WordPress

Forums

WP Post to PDF Enhanced
[resolved] Suppress Header and Header Logo? (6 posts)

  1. DigHeal
    Member
    Posted 4 months ago #

    Hello. Thanks for writing such a great plugin. Is it possible to completely suppress the header text, header logo and the line across the top from the PDF?

    https://wordpress.org/plugins/wp-post-to-pdf-enhanced/

  2. Lewis Rosenthal
    Member
    Plugin Author

    Posted 4 months ago #

    Thanks for your kind words!

    Indeed, there are two ways to achieve what you want:

    1. If using version 1.0.4, edit line 345 of wp-post-to-pdf-enhanced.php to add:

      $pdf->setPrintHeader(false);

      or;

    2. Download the latest trunk (developer) build from here. I've just landed an enhancement which changes the admin UI to a dropdown for the header options: Suppressed, First Page Only, or All Pages (the default).

    I guess I should include such an option for the footer, and someone is likely to request the ability to add a custom header, so I'll put those on my to-do list, as well.

    Thanks for the great suggestion!

    Cheers

    Lewis

  3. DigHeal
    Member
    Posted 4 months ago #

    Lewis,

    Brilliant! I downloaded the dev branch and the new UI looks/works great. However, I think it may have inadvertently created an issue... I am using the URL Params plugin. Before I installed the new version, I had the 'process shortcodes' and 'other plugins' options enabled and when I passed URL parameters to a page, the resulting PDF included these values. After installing the new dev version, those values are omitted from the PDF despite appearing on the page.

    Unfortunately I don't have a public version of this I can send you because it's all in a development environment on my laptop and I am in a van driving towards Athens, GA. :)

    Does my description of the issue ring any bells for you?

  4. Lewis Rosenthal
    Member
    Plugin Author

    Posted 4 months ago #

    Glad we got the header thing straightened out to suit.

    Hmmm... Nothing has changed insofar as the processing of shortcodes options is concerned. Can you try toggling the settings in the admin panel, saving, and then toggling them back and see what you get? Maybe some changes in the options panel disrupted your settings. As you can see, much has changed there.

    Oh, and be sure to do this after you stop driving!

    LOL

    Seriously, drive carefully, give the above a shot when you have a moment, and let me know if the issue persists.

    Cheers

    Lewis

  5. heathermason20
    Member
    Posted 3 months ago #

    Greetings Lewis,

    Is it possible to edit the PDF header content? When I render a PDF, it appears the PDF header is sourcing from the Site Title, Tagline and URL from General Settings in my Theme UI. Can I add further text in the code or elsewhere?

    Thanks so much in advance, I love this plugin!
    :) Heather

  6. Lewis Rosenthal
    Member
    Plugin Author

    Posted 3 months ago #

    Thanks, Heather.

    Could you open a fresh thread for your enhancement request, please? This was a different issue.

    I'll be glad to follow up separately.

    Cheers

    Lewis

Reply

You must log in to post.

About this Plugin

About this Topic