Giter Club home page Giter Club logo

printable-pdf-newspaper's Introduction

Printable PDF Newspaper

Generates a printable PDF newspaper from post content.

Support Level Release Version WordPress tested up to version GPLv2 License Follow @ChrisHardie

Description

Generates a printable PDF newspaper from post content. Great for distributing your articles and posts in a print format for offline audiences.

To use, from the admin area of your site, select what content you want to include (supports posts, pages or custom post types and you can filter by tag or category), how many items, whether to truncate the body content (or excerpt) at a certain character length, how many columns to format with, and which fields to display. You can even upload a "masthead" header image for a more authentic newspaper feel, and the plugin can automatically generate QR codes to allow link scanning with a mobile phone camera.

Download the resulting PDF or save it to your media library for easy public linking and sharing.

This plugin does not require any remote PDF generation services or subscriptions to create the printable PDF file, everything is done within the plugin itself.

Credit to TCPDF for the PDF generation library and Freepik for the plugin icon.

Example generated PDF file

Example generated PDF file

Admin PDF configuration screen

Admin PDF configuration screen

Requirements

Installation

Printable PDF Newspaper is most easily installed automatically via the Plugins tab in your dashboard.

Support Level

Active: I actively maintain this project, and expect to continue work for the foreseeable future including keeping tested up to the most recent version of WordPress. Bug reports, feature requests, questions, and pull requests are welcome.

Contributing

Pull requests and issues on GitHub are welcome.

printable-pdf-newspaper's People

Contributors

chrishardie avatar

Stargazers

 avatar Jared Bennett avatar smithart avatar Jens avatar  avatar Casey Strouse avatar

Watchers

 avatar James Cloos avatar Haeme Ulrich // morntag avatar

printable-pdf-newspaper's Issues

Feature Request: Color Transformation to CMYK

I don't know if this is possible with actual PDF library. Otherwise this transformation could also be made later in a workflow (Acrobat Pro or output workflow in the printing house).

Feature Request: Widget

Hello Chris,
would it be possible to add a widget for printable-pdf-newsletter so that a reader could select which content he wants to become as pdf?

Regards
Franz-Georg

Feature Request: Multilingual

Would be great to have the built in strings in other languages. Or implement the possibility to translate/change the strings.

TCPDF error: "Unable to get the size of the image"

A user reported that when trying to generate the PDF, they get this error:

TCPDF ERROR: [Image] Unable to get the size of the image

The image in question was a valid JPG file and it worked fine in my local testing.

Some similar reports elsewhere about this tcpdf error indicate an issue with relative vs absolute file path names.

Report of activation error with WordPress 5.2.4

In https://www.publishingblog.ch/aus-wordpress-ein-druckbares-zeitungslayout-exportieren/ a user reported that activating the plugin triggers a fatal error. Related images:

https://www.dropbox.com/s/96dqkkzz39boxn2/MOLIRI1.png?dl=0
https://www.dropbox.com/s/43ddxuwm6wfjgva/MOLIRI2.png?dl=0
https://www.dropbox.com/s/sbtmcsjnyfttdo8/MOLIRI3.png?dl=0

I asked for more details about the environment. It's WP 5.2.4 and other active plugins include:

  • Add post thumbnail image to RSS feed
  • Akismet
  • AntiVirus
  • Auto Image Attributes From Filename With Bulk Updater
  • Auto Image Attributes Pro
  • Cachify
  • Cornerstone
  • Duplicate Post
  • EWWW Image Optimizer
  • Huge IT Forms
  • Intagrate
  • Massenverschieben
  • MC4WP
  • Media File Renamer Pro
  • Medien-Assistent
  • Meta Tag Manager
  • NextGEN Gallery
  • Pinterest Verify
  • Quotes Collection
  • UpdraftPlus
  • WP Google Maps
  • WP Media folder

The user also mentioned that sometimes strange characters appear in titles or excerpt text, likely character set conversion issues.

So far I have not been able to reproduce and have not received any other reports of activation errors.

Feature: Post Sort

Hi

It would be great if you could sort the pages and posts.

Example: In a travelogue, it doesn't make sense if the latest post comes first. You want to start the journey all over again.

But otherwise cool plugin, greetings Lukas

Prep for v1.1 release

  • Help link next to custom CSS box
  • Regenerate POT file
  • Add Upgrade Notice section
  • Update version
  • Changelog
  • Maybe screenshot
  • GitHub donate link/badge?
  • Validate readme

Feature: cron schedule for PDF generation to media library

Depends on #1

Rough plan:

  • Have users confirm that the settings saved in #1 are what they want, or allow override via filtering
  • Add a setting to "Automatically generate a PDF in the media library every day at _____" with a checkbox to enable/disable.
  • Add a cron job to run the PDF creation function and store the PDF
  • Consider adding some filters/hooks to alter the behavior.

Bug: PHP Notice re undefined index

PHP Notice: Undefined index: q in /srv/www/releasetest/public_html/wp-content/plugins/printable-pdf-newspaper/classes/class-admin-ajax.php on line 95

Feature: allow custom CSS for PDF template

  1. A well-documented list of the HTML classes/IDs that the PDF generation uses
  2. A place to paste in custom CSS or maybe to specify a CSS file that should be loaded as a part of the PDF generation process

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.