Title: PDF 2 Post
Author: termel
Published: <strong>2017 年 2 月 20 日</strong>
Last modified: 2020 年 7 月 7 日

---

搜索插件

![](https://ps.w.org/pdf2post/assets/banner-772x250.png?rev=1601141)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/pdf2post/assets/icon-256x256.png?rev=1601132)

# PDF 2 Post

 作者：[termel](https://profiles.wordpress.org/munger41/)

[下载](https://downloads.wordpress.org/plugin/pdf2post.zip)

 * [详情](https://cn.wordpress.org/plugins/pdf2post/#description)
 * [评价](https://cn.wordpress.org/plugins/pdf2post/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/pdf2post/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/pdf2post/#developers)

 [支持](https://wordpress.org/support/plugin/pdf2post/)

## 描述

Mass convert PDF documents to WP posts, by:

 * extracting all text data and adding it to post content
 * extract all images included in PDF and attach them to post
 * automatically add featured image
 * create gallery inside post content from all images extracted

Be carefull, you NEED to have installed on your server the following:

 * [ZipArchive](http://php.net/manual/fr/class.ziparchive.php)
 * [PDFMiner](http://www.unixuser.org/~euske/python/pdfminer/)
 * [pdfimages](https://en.wikipedia.org/wiki/Pdfimages)

Works on multisite installs.

[>> Test your document here <<](https://www.indesign2wordpress.com/pdf-wp-post/)

If you need a more professional solution, we now have a premium InDesign to WordPress
plugin:
 [>> InDesign to WordPress <<](https://www.indesign2wordpress.com/convert-html-document-to-wordpress-post/)

### ToDo

Will need to be upgraded with : https://github.com/pdfminer/pdfminer.six

## 安装

### Easy

 1. Search via plugins > add new.
 2. Find the plugin listed and click activate.
 3. Use the Shortcode

### Usage

 1. Go to Posts>New Post From PDF
 2. Choose file to upload :

 * single .pdf
 * .zip containing a main folder with multiple .pdf files inside)

 1. Clic “Create Post” and wait for post creation 🙂

[>> Test your document here <<](https://www.indesign2wordpress.com/pdf-wp-post/)

If you need a more professional solution, we now have a premium InDesign to WordPress
plugin:
 [>> InDesign to WordPress <<](https://www.indesign2wordpress.com/convert-html-document-to-wordpress-post/)

## 评价

![](https://secure.gravatar.com/avatar/1c52c3cbe85b6f60d76fd3e833a37ca19d6649b131f0cc3f6fcfa54c62e96e91?
s=60&d=retro&r=g)

### 󠀁[A good try…](https://wordpress.org/support/topic/a-good-try/)󠁿

 [glenstewart](https://profiles.wordpress.org/glenstewart/) 2024 年 4 月 29 日 1
回复

This is the “wordpress” way of loading a PDF, but doesn’t preserve original formatting(
your editing burden will increase). If you load a lot of PDFs this way, it will 
make quite a mess of your Media collection. To make this compatible with modern 
Python, one line needs to be changed in the pdf2post.php file: old: python -c ‘import
sys; print sys.version’ new: python -c ‘import sys; print(sys.version)’

![](https://secure.gravatar.com/avatar/093c8be4afd47720874b27ad73c689601ec426873a40b1048154d8f84823d5ea?
s=60&d=retro&r=g)

### 󠀁[Awesome plugin that does exactly what it needs to do](https://wordpress.org/support/topic/awesome-plugin-that-does-exactly-what-it-needs-to-do/)󠁿

 [ExecuServices](https://profiles.wordpress.org/mpratt62/) 2020 年 7 月 7 日

For something to just work, and be simple to use, and for free to the community,
is amazing. The only thing I struggled with was adding the scripts (I manage my 
own server) and use Plesk, which is uncommon still, and wasnt sure if just installing
the modules on the server would work like I wanted it to. But I logged into sudo
and installed as per instructions on the links the developer provided, and it worked.
No restart of Apache necessary either, at least for me. Great job on this plugin.
The only thing that COULD be improved is translating paragraphs and images into 
blocks in Gutenberg. Right now it imports in in as one block and mashed all the 
images together at the bottom in a gallery. So I had to have the editor change the
block manually, then reorganize. Still saved a ton of time just bringing in the 
images. My suggestion might be moot though, as I am using custom content types instead
of default posts, and now it doesnt utilize blocks, so make sure it still works 
the other way as well. Thanks for your hard work on this, you deserve 5 stars for
sure.

![](https://secure.gravatar.com/avatar/009af8dec4b767dad4b65f699891d501f73b351d5d54ee43f20d6e11073f11bf?
s=60&d=retro&r=g)

### 󠀁[Cool plugin, works as advertised and quite well.](https://wordpress.org/support/topic/cool-plugin-works-as-advertised-and-quite-well/)󠁿

 [effgee](https://profiles.wordpress.org/andreastyrosvoutis/) 2019 年 2 月 7 日 
1 回复

Looking forward to the continual development of this. This could be an amazing resource
for researchers.

![](https://secure.gravatar.com/avatar/2c4d57c67039beceb6ae2c882f6dd6aab0accade24d2b4dd92239083c782fb5f?
s=60&d=retro&r=g)

### 󠀁[Works, but needs improvements](https://wordpress.org/support/topic/works-but-needs-improvements/)󠁿

 [termel](https://profiles.wordpress.org/munger41/) 2017 年 2 月 22 日

The plugin works as expected, but i would need to map pdf fields to wp post ones.
Bulk function is cool

 [ 阅读所有4条评价 ](https://wordpress.org/support/plugin/pdf2post/reviews/)

## 贡献者及开发者

「PDF 2 Post」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ termel ](https://profiles.wordpress.org/munger41/)

[帮助将「PDF 2 Post」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/pdf2post)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/pdf2post/)，查看[SVN仓库](https://plugins.svn.wordpress.org/pdf2post/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/pdf2post/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/pdf2post/)。

## 更新日志

2.4.0 – trying to work on bounding boxes

2.3.1 – better processing method first

2.3.0 – new demo shortcode and several bugfixes

2.2.3 – select type of post created among any of the site

2.2.2 – access given to editors and added for pages as well

2.2.1 – xml pdf2txt with paragraphs extraction

2.2.0 – others pdf2txt types added : html, xml, tag

2.1.4 – more debug to help users

2.1.1 – more checks on softs installed

2.0.0 – Totally refactored code because of bug uploading zip files

1.3.1 – few more check for more robustness

1.3 – check if zip installed

1.2 – check if python installed

1.1 – Automatically create gallery with all images of PDF file

1.0 – First stable release.

## 额外信息

 *  版本 **2.4.0**
 *  最后更新：**6 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **5.2.24**
 *  语言
 * [English (US)](https://wordpress.org/plugins/pdf2post/)
 * 标签
 * [2](https://cn.wordpress.org/plugins/tags/2/)[bulk](https://cn.wordpress.org/plugins/tags/bulk/)
   [pdf](https://cn.wordpress.org/plugins/tags/pdf/)[post](https://cn.wordpress.org/plugins/tags/post/)
   [to](https://cn.wordpress.org/plugins/tags/to/)
 *  [高级视图](https://cn.wordpress.org/plugins/pdf2post/advanced/)

## 评级

 4.5 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/pdf2post/reviews/?filter=5)
 *  [  2 条 4 星评价     ](https://wordpress.org/support/plugin/pdf2post/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/pdf2post/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/pdf2post/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/pdf2post/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/pdf2post/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/pdf2post/reviews/)

## 贡献者

 *   [ termel ](https://profiles.wordpress.org/munger41/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/pdf2post/)