This plugin converts your post/page to PDF for visitors and visitors can download it easily.
This plugin converts your post/page to PDF for visitors and visitors can download it easily.
You can add a download link above/below every posts/pages.
Note: This plugin requires PHP 5.
You can use POST2PDF Converter with following code syntaxhighlighter plugins and convert posts/pages with sourcecodes to PDF.
You can use POST2PDF Converter with following LaTex plugins and convert posts/pages with mathematical formulas, chemical formulae and charts to PDF.
You can use POST2PDF Converter with following translation plugins and generate translated PDF.
This list is only one example.
/wp-content/plugins/
directory.This plugin includes following Japanese fonts.
Font name: cid0jp, kozgopromedium, kozminproregular
This plugin can’t quite convert contents which include Japanese characters to PDF file using bundled fonts.
However, you can download better Japanese fonts and use them.
If your contents are written in Japanese, please install one of these fonts. You have only to upload font files without converting and configure some setting options.
/wp-content/plugins/post2pdf-converter/tcpdf/fonts
directory.You can also use following fonts.
If you want to use your own TrueType font, you can convert TrueType font to a font for TCPDF using “Font converter” in setting panel.
This plugin includes following Latin fonts.
Font name: courier, helvetica, times
You can also use following fonts. However, If you allow visitors who receive a PDF to make changes to it even if they don’t have the same font, you had better disable “Font subsetting” option.
Font name: pdfacourier, pdfahelvetica, pdfatimes
You can also use “FreeFont” or “DejaVu fonts”. However, If you allow visitors who receive a PDF to make changes to it even if they don’t have the same font, you had better disable “Font subsetting” option.
This plugin includes following Simplified Chinese fonts.
Font name: cid0cs, stsongstdlight
This plugin includes following Traditional Chinese fonts.
Font name: cid0ct, msungstdlight
This plugin includes following Korean fonts.
Font name: cid0kr, hysmyeongjostdmedium
You can use “FreeFont” or “DejaVu fonts”. However, If you allow visitors who receive a PDF to make changes to it even if they don’t have the same font, you had better disable “Font subsetting” option.
This plugin includes following Arabic fonts.
Font name: aealarabiya, aefurat
You can also use “FreeFont”. However, If you allow visitors who receive a PDF to make changes to it even if they don’t have the same font, you had better disable “Font subsetting” option.
You can use “FreeFont”. However, If you allow visitors who receive a PDF to make changes to it even if they don’t have the same font, you had better disable “Font subsetting” option.
This plugin inclues “DejaVu fonts”. However, If you allow visitors who receive a PDF to make changes to it even if they don’t have the same font, you had better disable “Font subsetting” option.
Font name: dejavusans, dejavusanscondensed, dejavusansextralight, dejavusansmono, dejavuserif, dejavuserifcondensed
Note: “dejavusansmono” is a monospaced font.
“DejaVu fonts” support Latin, Greek and Cyrillic characters.
This plugin inclues “FreeFont”. However, If you allow visitors who receive a PDF to make changes to it even if they don’t have the same font, you had better disable “Font subsetting” option.
Font name: freemono, freesans, freeserif
Note: “freemono” is a monospaced font.
“FreeFont” supports Latin, Greek, Cyrillic, Arabic, Hebrew, Armenian, Georgian, Ethiopian and Thai characters.
You can add new fonts for TCPDF.
How to convert a font
Convert a TrueType font(*.ttf) to font files for TCPDF.
You can download utilities to convert a font.
How to install a font
/wp-content/plugins/post2pdf-converter/tcpdf/fonts
directory.How to use the added font
After automatic updating, your added fonts will be removed.
If you enable “Safe fonts directory” option in the setting panel, your fonts will never be removed.
Before you enable “Safe fonts directory”, you must make /wp-content/tcpdf-fonts/
directory on your server manually. And upload/move bundled fonts and your fonts to new directory and enable “Safe fonts directory”.
Now you can remove original fonts directory.
/post2pdf-converter/tcpdf/fonts
./YOUR PLUGIN DIRECTORY/post2pdf-converter/tcpdf/fonts
However, after automatic updating, fonts in the new directory will never be updated. You must maintain the new fonts directory by yourself.
You can insert the download link to your posts/pages using shortcode.
Note: Before you use shortcode, go to the setting panel and ebable “Shortcode” option.
[pdf]Click here to get a PDF[/pdf]
This plugin allows you to set some attributes.
[pdf id="1643" lang="jpn" file="id" font="cid0jp" monospaced="cid0jp" fontsize="11" subsetting="1" ratio="1.35" header="1" logo="1" logo_file="my_logo.png" logo_width="45" wrap_title="1" footer="1" filters="1" shortcode="parse" ffamily="0"]Click here to get a PDF[/pdf]
You can apply different font, image ratio, header logo on each posts/pages.
You can also make the download link for other posts/pages using “id” attribute.
Available attributes
title
or id
.1
or 0
to enable/disable Font subsetting.1
or 0
to show/hide header.1
or 0
to show/hide logo image.1
or 0
to show/hide title.1
or 0
. When set to 1
, long title will be wrapped.1
or 0
. When set to 1
, WordPress default filtes will be applied to the title/content.1
or 0
to show/hide footer.parse
or remove
to parse/remove shortcode.1
.Note: When id
is omitted, current post id will be set to. When other attribures are omitted, current setting value will be set to.
Available languages
A. Go to the setting panel and enter following font names to “Font” and “Monospaced font” option.
freesans
, Monospaced font: freemono
(For Latin, Greek, Cyrillic, Hebrew, Armenian, Georgian, Ethiopian and Thai etc.)dejavusans
, Monospaced font: dejavusansmono
(For Latin, Greek and Cyrillic etc.)aefurat
, Monospaced font: aefurat
(For Arabic)stsongstdlight
, Monospaced font: stsongstdlight
(For Simplified Chinese)msungstdlight
, Monospaced font: msungstdlight
(For Traditional Chinese)hysmyeongjostdmedium
, Monospaced font: hysmyeongjostdmedium
(For Korean)You can also add new font for your language. For details, read “Add new fonts” section in this document.
If you still can’t solve the problem, Go to the setting panel and enable “Add default font to font-family” option.
For detailed information about Japanese font, read “Fonts for Japanese” section in this document.
A. Go to the setting panel and set “File name” option to “Post id” in “2. PDF Settings” section.
A. Adjust width and height attributes in <img>
tag or width and height properties in style attribute in <img>
tag or other elements.
A. If large size images are placed in same row, the images may disappear in PDF.
Adjust width and height attributes in <img>
tag or width and height properties in style attribute in <img>
tag or other elements.
Or place <br />
tags after each image blocks.
When “Safe fonts directory” option is enabled, there must be some bundled fonts in new font directory. Upload helvetica.php, helveticab.php, helveticabi.php, helveticai.php to new font directory at least. You can find these fonts in /YOUR PLUGIN DIRECTORY/post2pdf-converter/tcpdf/fonts
directory.
<blockquote>
tag.