Post PDF Export Plugin

Are you using wordpress? Do your site has a large number of post where it’s too many you find it hard to check or monitor all of it? Here is a plugin that can help you with this kind of concerns. Post PDF Export plugin is a simple plugin that gives instant post download in PDF format. You can apply post download both front-end and back-end of your site with this plugin. With it’s great features, you can easily manage the PDF report and display post information the way you want it.

This plugin uses DOMPDF library. DOMPDF is an HTML to PDF converter, you can check this library here: http://code.google.com/p/dompdf/

Description

PDF plugin that gives instant post download( PDF format ) functionality.

Installation

Upload the plugin to your site plugin folder and activate it. You can configure it by clicking “Post PDF Export” nav on admin menu.

Check it on wordpress.org:

Documentation

  • I. Post Download

    There are three ways this plugin can implement/perform post download.

    I.1. Backend download – From wordpress admin, navigate to “Post PDF Export > Download PDF” to see the download form. Using this form you can specify date span, category, author, status, and visibility of the post you want to include in the download. You can also set parameters to the pdf like paper size, paper orientation and template.

    Backend download Screenshot:

    I.2. Download shortcodes – Using the shortcode ‘[pdfex]‘, you can apply a instant post download front-end. This shortcode automatically display download a download link when apply to page or post content.

    Shortcode Parmeters:

    text – The label of the link.
    from – The start date of the post to download ( Use format: dd-mm-yyy )
    to – The sned date of the post to download ( Use format: dd-mm-yyy )
    cat – The category of post to download.
    user – The author of post to download.
    template – The PDF tempalte to use.
    paper_size – The paper size of the PDF download.
    paper_orientation – The paper orientation of the PDF download.

    Shortcode Usage:

    [pdfex text='Download' from='25-11-2012' to='25-11-2012' cat='1' template='1']

    I.3. Individual post download – The plugin can automatically display download icon in each post on front-end for the users to download them.

    PHP Function:

    <?php echo pdfex_post_download(); ?>
  • II. Template

    Another special feature of this plugin that it allows you to create and manage PDF template. You can customize what the pdf download will look like. You need to custruct template in admin area and choose what template you want to apply during the download.

    Template Manager Screenshot:

    The template has two part, The loop and the body.

    Loop – The template of each post queried in the export process.

    Body – The main layout where the loop can be placed.

    Template screenshot:

    II.1 Template shortcode – These are special shortcode that can only be use in the template. These shortcodes can be use to display post and site information in pdf export. With this, you can construct to display info the way you want it.

    Body part and loop part has different set of shortcodes.

    Body shortcodes:

    [site_title] – Display the site title
    [site_tagline] – Display the site tagline
    [site_url] – Display the site url
    [date_today] – Display the export/download date

    Parameters:

    format – The display format of the date.

    Ex usage: [from_date size="F d,Y'" ]

    [from_date] – Display start date being queried

    Parameters:

    format – The display format of the date.

    Ex usage: [from_date size="F d,Y'" ]

    [to_date] – Display end date being queried

    Parameters:

    format – The display format of the date.

    Ex usage: [to_date size="F d,Y'" ]

    [categories] – Display all active categories

    Parameters:

    label – The string text before the category list.

    delimiter – The string separator of each categories.

    Ex usage: [categories delimiter="," ]

    Ex output: food,lifestyle,entertainment

    [post_count] – Display post count in export/download query

    Loop shortcodes:

    [title] – Display post title
    [excerpt] – Display post excerpt
    [content] – Display post content
    [permalink] – Display post url
    [date] – Display post publish date

    Parameters:

    format – The display format of the date.

    Ex usage: [date size="F d,Y'" ]

    [author] – Display post author
    [author_photo] – Display post author’s photo

    Parameters:

    size – The size of the photo.

    sizes: thumbnail,medium,large,full

    Ex usage: [author_photo size="thumbnail" ]

    [author_description] – Display post author’s description
    [status] – Display post status
    [featured_image] – Display featured image

    Parameters:

    size – The size of the photo.

    sizes: thumbnail,medium,large,full

    Ex usage: [featured_image size="thumbnail" ]

    [category] – Display post categoty list

    Parameters:

    label – The string text before the category list.

    delimiter – The string separator of each category.

    Ex usage: [category label="Post Categories:" delimiter="," ]

    Ex output: Post Categories: food,lifestyle,entertainment

    [tags] – Display post tag list

    Parameters:

    label – The string text before the tag list.

    delimiter – The string separator of each tags.

    Ex usage: [tags label="Post Tags:" delimiter="," ]

    Ex output: Post Tags: food,lifestyle,entertainment

    [comments_count] – Display number of comments in the post