Update to WordPress Posts to PDF – Final Version

I have just pushed what will be the last version of my script to export your WordPress posts to a nicely formatted PDF file to my GitHub page.

Firstly, the good news. This version now supports BLOCKQUOTEs which means that the WordPress quote block is rendered in a way that it is more obviously a quote. There has also been an improvement in the output of code blocks but support for this is still pretty basic but does now work.

Now the bad news. While looking at the output from my own sites I found that some posts weren’t being exported at all, just the header was there. After a bit of investigation, I found that these were posts that included emojis. This led me to discover that FDPF only supports character set Windows-1215 which is pretty limited and certainly doesn’t support emojis!

I could convert the code to UTF-8 but that’s more work than I need right now and wouldn’t add much for my usage. Therefore, this will be the last version until I get time for a complete re-write but I wouldn’t hold your breath!

Leave a Reply

Your email address will not be published. Required fields are marked *