Skip to content
Work in progress, a Wordpress plugin for using paged.js
Branch: master
Clone or download
Pull request Compare This branch is 3 commits ahead of electricbookworks:master.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Initial set up Feb 4, 2019
templates Formatting for template Feb 21, 2019
tests Updates template to use custom actions for loading CSS and JavaScript Feb 20, 2019
.distignore Formatting for template Feb 21, 2019
.gitignore
.phpcs.xml.dist Updates template to use custom actions for loading CSS and JavaScript Feb 20, 2019
.travis.yml Updates template to use custom actions for loading CSS and JavaScript Feb 20, 2019
LICENSE Updates template to use custom actions for loading CSS and JavaScript Feb 20, 2019
README.md add info of gutenberg compatibility Jun 10, 2019
paged-wp.php Update to make the button a metabox Gutenberg compatible Jun 7, 2019
phpunit.xml.dist Updates template to use custom actions for loading CSS and JavaScript Feb 20, 2019

README.md

Paged WP: beautiful PDFs from Wordpress posts and pages

Paged WP is a very simple, proof-of-concept Wordpress plugin that adds a button to the admin view of Wordpress pages/posts.

Clicking that button opens a preview of the post in a new tab, in which we load only the page content, paged.js, and a custom Paged Media CSS file, so that you can get a rendered paged view and save it to PDF.

Usage

There is a lot still to improve here. For now:

  • Paged.js only works properly in Chrome, so you should use Chrome for this, too.
  • You must hard-code the link to your Paged Media CSS in the paged-wp.php file. By default, it loads the template styles from paged.design.
  • This fork work with the Classic or Gutenberg editor.

Roadmap

We'd like to make it easier to link to and/or add custom CSS, and to clean up the code to be more function-oriented and less procedural. That will depend on our finding time and funding to continue work on it.

You can’t perform that action at this time.