Este plugin no se ha probado con las últimas 3 versiones mayores de WordPress. Puede que ya no tenga soporte ni lo mantenga nadie, o puede que tenga problemas de compatibilidad cuando se usa con las versiones más recientes de WordPress.

Printable PDF Newspaper

Descripción

Genera un periódico PDF imprimible con el contenido de las entradas. Estupendo para distribuir tus artículos y entradas en un formato impreso para audiencias offline.

Para usarlo, desde el área de administración de tu sitio, selecciona qué contenido quieres incluir (entradas, páginas o tipos de contenido personalizados, pudiendo filtrar por etiqueta o categoría), cuántos elementos, si se corta el cuerpo del contenido (o el extracto) en un determinado número de caracteres, cuántas columnas para el formato y qué campos mostrar. Incluso puedes subir una imagen para la cabecera para un aspecto más real de periódico y el plugin puede generar automáticamente códigos QR para permitir su enlace con la exploración con la cámara de un teléfono móvil.

Descarga el PDF resultante o guárdalo en tu biblioteca de medios para enlazarlo y compartirlo fácilmente.

Este plugin no necesita ningún servicio remoto de generación de PDF o suscripciones para crear el archivo PDF imprimible, todo se lleva a cabo dentro del propio plugin.

Agradecimiento a TCPDF por la biblioteca de generación de PDF y a Freepik por el icono del plugin.

Colaborar

Sugerencias sobre características, informes de fallos y otras solicitudes son bienvenidas en GitHub.

Capturas

  • Ejemplo de un archivo PDF generado.
  • Pantalla de administración de la configuración PDF

Instalación

Printable PDF Newspaper se instala más fácilmente a través de la pestaña «Plugins» de tu escritorio de administración.

FAQ

How can I customize the PDF content styles?

You can customize the PDF newspaper layout and styles using limited CSS definitions, in two different ways:

  1. Enter your custom style definitions in the «Custom CSS» input field when generating the PDF.
  2. In your theme, filter the output of ppn_pdf_template_css_file_path to specify the full filesystem path to a file containing CSS styles.

When specifying custom styles, do not enclose them in a <style> tag or any other HTML. Invalid CSS may break the PDF generation process.

Here are the CSS classes you may wish to adjust:

  • ppn-article-title: Headlines / post titles
  • ppn-article-wrapper: Wrapper around the loop of all included articles
  • ppn-author: Author byline and display name (if included)
  • ppn-date: Article date (if included)
  • ppn-content and ppn-excerpt: article body content
  • ppn-permalink-text: the «Continue Reading» permalink introductory text
  • ppn-permalink-qr-code-image: image class for the QR Code (if included)
  • ppn-article-bottom-border: horizontal line dividing articles

You can view the default style definitions in the plugin file assets/admin/css/pdf-template-styles.css or in Trac.

Note that TCPDF only supports a limited subset of the full CSS specification. Also note that any fonts referenced must be available in the TCPDF library used to generate the PDF. You can view the TCPDF core font list.
There’s also an experimental filter, ppn_font_file_paths, that allows you to add to or change the array of TTF font file paths being loaded.

Currently the header image size/position and subheading styles are not easily customizable, but will be in the future.

What filters and hooks are available?

These filters are available to further customize the plugin functionality:

  • ppn_post_query_args: override the array of arguments to WP_Query to control which posts are included
  • ppn_pdf_configuration: override the array of PDF configuration values specified by the admin user
  • ppn_pdf_template_css_file_path: override the full filesystem path to a CSS file for PDF content styling
  • ppn_font_file_paths: override the array of filesystem paths to TTF font files to include in the PDF

For example, to customize the number of posts included in the PDF, add something like this to your theme:

add_filter( 'ppn_pdf_configuration', function( $config ) { $config['number'] = 2; return $config; }, 10, 1 );

¿Qué características se añadirán en el futuro?

  • Permitir guardar la configuración PDF para facilitar su reutilización en futuras ejecuciones
  • Tamaño y diseño de la cabecera más personalizable
  • Generar códigos QR en el propio plugin en lugar de en la API de Google Chart
  • Capacidad de generar automáticamente el PDF según una programación
  • Mejores controles para limitar el número de páginas generadas y los saltos de columna.

¿Por qué alguien imprimiría alguna cosa?

Algunas personas todavía encuentran cosas e ideas a través del contacto con objetos del mundo físico. Si estás buscando atraer lectores a tus escritos en WordPress, la distribución de una versión impresa puede ser de gran ayuda.

Reseñas

10 de diciembre de 2021 1 respuesta
I Love your work! – i've added a polish translation for you 🙂 Waiting for styling options (i have problems with polish national characters)
12 de octubre de 2019 1 respuesta
Nice tool to print the complete blog or parts of the blog filtered by catogories or sites. But headlines lower than h1 have the same font size like the font size of the textbody. It's very helpful to print out some blog posts together. I use footnotes plug-in. The footnote are printed inline with shortcodes (()) and not at the bottom of a page or at the end of a post with footnote marks.
11 de octubre de 2019 2 respuestas
This is what we were looking for! Looking forward to get more style options. How can we support you?
Leer todas las 4 reseñas

Colaboradores y desarrolladores

«Printable PDF Newspaper» es un software de código abierto. Las siguientes personas han colaborado con este plugin.

Colaboradores

«Printable PDF Newspaper» está traducido en 5 idiomas. Gracias a los traductores por sus contribuciones.

Traduce «Printable PDF Newspaper» a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios

1.1.2

  • Enhancement: initial support for RTL text
  • Maintenance: Tested against WordPress 5.9

1.1.1

  • Tested against WordPress 5.7
  • Fix: display more useful error message when TCPDF cannot retrieve post images

1.1.0

  • Feature: users can specify custom CSS to control PDF appearance
  • Feature: add WordPress filters so developers can customize functionality
  • Maintenance: upgrade Select2 Javascript library
  • Maintenance: improve internationalization in Javascript UI elements
  • Maintenance: other minor improvements for code standards

1.0.2

  • Mantenimiento: Probado en WordPress 5.4
  • Mantenimiento: Actualizada la biblioteca TCPDF a la última versión

1.0.1

  • Probado en WordPress 5.3
  • Corrección: Solucionada una advertencia menor del índice PHP con una marca vacía

1.0.0

  • Versión inicial.