Git Product home page Git Product logo

pdf-shortcode's Introduction

WP 2 PDF Shortcode

Export Formidable Forms Views or Wordpress Pages to PDF with a Shortcode.

A simpler up-to-date replacement for Formidable Pro PDF Extended.

NB: This is currently an early alpha plugin and should only be used for testing.

Requirements

  1. PHP 7.4
  2. Formidable Forms Pro
  3. Formidable Forms Visual Views addon

Installation

  1. Clone or download.
  2. Install dependencies with Composer:
$ cd ff-views-pdf
$ composer install
  1. Upload to plugins directory and activate.
  2. Set your default options via options-general.php?page=options-ffviewpdf.
  3. Set inline options in shortcodes (see below).

Usage

  • Export Formidable View as PDF [wp2pdf viewid=X type=view]
  • Export current page as PDF [wp2pdf type=page]

Other options

Page orientation

  1. Landscape
[wp2pdf orientation=L]
  1. Portrait
[wp2pdf orientation=P]

Direction

  1. Left-to-Right
[wp2pdf direction=ltr]
  1. Right-to-Left
[wp2pdf direction=rtl]

Custom filename

Filename without .pdf file extension.

[wp2pdf filename=newfile]

Note

Advanced configuration options are available by following the mPDF documentation.

pdf-shortcode's People

Contributors

jvarn avatar

Watchers

 avatar

pdf-shortcode's Issues

Call to undefined function wp_verify_nonce()

Although this is working on a couple of live sites, when trying it on localhost using MAMP or Bitnami WP, it throws an error
Call to undefined function wp_verify_nonce();

A suggested workaround involves making sure the required functions are loaded using require_once( ABSPATH .'wp-includes/pluggable.php' );or by hooking into admin_init, which doesn't make sense to me since this runs on the front-end.

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.