• Resolved Juha Mets?kallas

    (@juhametsakallas)


    1) On the top of the PDF page I get a line with the name of the author and a date, e.g.

    John Smith · Thursday, April 25th, 2019

    Where can I localise this date format?

    2) On the footer it shows the “printing” date, e.g. today as 02.05.2019. Where can I localise this date format?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author fkrauthan

    (@fkrauthan)

    For both of this you need to create a copy of the wp-mpdf template you are using. You can find the Dates in the “$pdf_header” and “$pdf_footer” footer section.

    After that make sure to select your custom template as the main template in the wp-mpdf settings page.

    • This reply was modified 5 years, 7 months ago by fkrauthan.
    Thread Starter Juha Mets?kallas

    (@juhametsakallas)

    Eh, it took me a couple of minutes to realise, that by template you’re referring to, what in the admin side and in the folder structure is labelled as theme. I think, I got the idea [= now I have something to do during the weekend ?? ].

    Thread Starter Juha Mets?kallas

    (@juhametsakallas)

    I didn’t have the patience, so I customised already now. It all went more or less smoothly, but I need one piece of information. How can get the creation date of the PDF version? I want to put into the info box at the end two dates: the publishing date of the post (this already works) and the creation date of the cached PDF.

    Plugin Author fkrauthan

    (@fkrauthan)

    You can’t at the moment. You probably could look up the actual file creation on the filesystem but this is nothing the plugin official supports.

    Thread Starter Juha Mets?kallas

    (@juhametsakallas)

    Ok, not a show stopper. Thanks for the info.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to localise the date formats on the PDF?’ is closed to new replies.