Generate Customizable PDFs from Your Posts with WordPress PDF Templates
I have a client who needs to be able to create PDFs of his WordPress posts, including for custom post types that he specifies. I tried a few solutions, and WordPress PDF Templates is definitely the best I’ve found.
There’s a lot about this plugin I love: The /pdf/ endpoint it creates at the end of each post; the clean and easily extensible code (which, among other things, lets you dictate which post types are eligible for conversion into PDFs); and, most of all, the ability to specify how the PDFs themselves come out looking (and add special CSS styles, include post meta, etc.) within PHP templates using a template hierarchy that the plugin is built to respect.
WordPress PDF Templates is cleanly built and works great. It (plus ACF for custom data) is now my definite go-to for a client who needs on-demand PDFs built using WordPress site data.