• Resolved JSin

    (@jsin)


    I have a client who has this plugin installed. When you click to download a PDF from one of the pages, what’s happening is that it’s assigning the same default filename to the page’s generated PDF, leading to overwrites from someone trying to download more than one PDF.
    I don’t see any options where this setting is controlled. Is there a way for me to make whatever the download filename is be the page name instead?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Michael Nelson

    (@mnelson4)

    Hmmm that’s a good point, I hadn’t considered that.
    I’ve made a modified version of Print My Blog that should do what you’re wanting: if you’re just making a PDF from a single post, it will put that post’s name into the HTML page’s title.
    Eg if you’re on the site “My Cool Blog”, reading the post “My Cool Post”, the PDF file generated should be “My Cool Post – My Cool Blog.pdf”.

    Would you mind giving it a try before I officially release it to everybody? If so, please:

    1. Download the new version from here: https://github.com/mnelson4/printmyblog/tree/FET/update-html-page-title
    2. Go to your WordPress dashboard, click plugins, then “add new”, then “upload” and select the zip file you just downloaded
    3. Deactivate the previous version Print My Blog
    4. Activate the new version of Print My Blog

    It’s best to try this on a test site, just in case there’s an error in it.

    Thread Starter JSin

    (@jsin)

    Hi, Michael – thanks for the quick reply and new iteration of the plugin! I just tried it and it’s working exactly as intended! Woohoo!

    Plugin Author Michael Nelson

    (@mnelson4)

    Super thanks for giving it a spin. I’ll release that version today or tomorrow then.
    If you could leave a review that would be a big favor.
    Take care!

    Thread Starter JSin

    (@jsin)

    Absolutely will do. Thanks again for your expediency.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Every PDF file download has same filename, leading to overwrites’ is closed to new replies.