# CKEditor 4 Export to PDF Plugin
The **Export to PDF** CKEditor 4 plugin allows you to easily print the WYSIWYG editor content to a PDF file. When enabled, this feature sends the content of your editor together with the styles that are used to display it to the CKEditor Cloud Services HTML to PDF converter service. The service then generates a PDF document that can be downloaded by the user.
Thanks to this plugin, it takes exactly one button click to get a PDF file with content formatted in the same way as the one visible in CKEditor 4.
CKEditor 4 **Export to PDF** also allows various customizations like changing the page size and margin, setting additional styling, adding custom headers and footers and pre-processing content. This gives great flexibility and control over the PDF output and allows to keep all the PDF documents consistent when it comes to styling.
This is a premium feature. Please [contact us](https://ckeditor.com/contact/) if you would like to purchase a license. Let us know if you have any feedback or questions! You can also sign up for the [CKEditor Premium Features 30-day Free Trial](https://orders.ckeditor.com/trial/premium-features).
If this feature is used without authorization, the resulting documents will be watermarked.

## Getting Started
### Using with official CKEditor 4 presets
Starting with CKEditor 4 version `4.15.0`, **Export to PDF** plugin is included in `standard-all`, `full` and `full-all` official presets. The `full` and `full-all` presets have the plugin active by default while for `standard-all` it needs to be enabled with the [`config.extraPlugins`](https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-extraPlugins) configuration option:
```js
CKEDITOR.replace( 'editor', {
extraPlugins: 'exportpdf'
} );
```
### Installation from npm
To instal the plugin via npm, simply run:
```bash
npm i ckeditor4-plugin-exportpdf
```
Then add the plugin to your CKEditor 4 instance with the [`addExternal()` method](https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_plugins.html#method-addExternal):
```js
CKEDITOR.plugins.addExternal( 'exportpdf', './node_modules/ckeditor4-plugin-exportpdf/' );
```
If you prefer not to link to the `node_modules` folder directly, you may simply copy the entire `./node_modules/ckeditor4-plugin-exportpdf/` directory as `ckeditor/plugins/exportpdf/` and add it with the [`config.extraPlugins`](https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-extraPlugins) configuration option:
```js
CKEDITOR.replace( 'editor', {
extraPlugins: 'exportpdf'
} );
```
### Other Installation Methods
You can also use the [CKEditor 4 Add-ons repository](https://ckeditor.com/cke4/addons/plugins/all) to obtain the plugin via:
* [Custom build with online builder](https://ckeditor.com/cke4/builder)
* [Manual download](https://ckeditor.com/cke4/addon/exportpdf)
Refer to [Export to PDF installation documentation](https://ckeditor.com/docs/ckeditor4/latest/features/exporttopdf.html#installation) for more details. If you are having trouble setting up the Export to PDF plugin, please [contact us](https://ckeditor.com/contact/).
### Setting up a license key
If you have a commercial license for **Export to PDF** plugin, [exportPdf_tokenUrl](https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-exportPdf_tokenUrl) configuration option should be set to remove watermark from generated documents:
```js
CKEDITOR.replace( 'editor', {
exportPdf_tokenUrl: 'https://example.com/cs-token-endpoint'
} );
```
This value is unique for each customer and can be found in the [CKEditor Ecosystem dashboard](https://dashboard.ckeditor.com).
This is all. If you are having trouble in setting up Export to PDF plugin, please [contact us](https://ckeditor.com/contact/).
## Features
The CKEditor 4 Export to PDF plugin is really simple to use and works out-of-the-box. It does not require any additional configuration and due to its flexible nature, it covers a lot of cases internally while also providing an easy way to [customize output PDF files](https://ckeditor.com/docs/ckeditor4/latest/features/exporttopdf.html#configuration).
The most important features are:
* Exporting HTML content from CKEditor 4 WYSIWYG editor to PDF with a single click.
* [Setting a custom name](https://ckeditor.com/docs/ckeditor4/latest/features/exporttopdf.html#setting-dynamic-file-name) for the generated PDF file.
* [Handling relative image paths](https://ckeditor.com/docs/ckeditor4/latest/features/exporttopdf.html#relative-vs-absolute-urls).
* [Changing the appearance of the PDF document](https://ckeditor.com/docs/ckeditor4/latest/features/exporttopdf.html#custom-css-rules) (like margins, text styling, custom headers and footers etc.) with custom CSS styles.
* [Pre-processing HTML content](https://ckeditor.com/docs/ckeditor4/latest/features/exporttopdf.html#data-preprocessing) via synchronous and asynchronous code before the generation of the PDF file.
## Browser and CKEditor 4 Support
The CKEditor 4 Export to PDF plugin works in all the browsers [supported by CKEditor 4](https://ckeditor.com/docs/ckeditor4/latest/guide/dev_browsers.html) except for Internet Explorer versions older than version 11. The plugin is compatible with CKEditor 4 versions starting from `4.6.1`.
## Demo
See the working ["Exporting editor content to PDF"](https://ckeditor.com/docs/ckeditor4/latest/examples/exporttopdf.html) sample that showcases printing your HTML content to a PDF file.
## License
**CKEditor 4 Export to PDF plugin** (https://ckeditor.com/ckeditor-4/)<br>
Copyright (c) 2003-2022, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.
CKEditor 4 export to PDF plugin is licensed under a commercial license and is protected by copyright law.
For more details about available licensing options please contact us at [email protected].
### Trademarks
**CKEditor** is a trademark of [CKSource](http://cksource.com) Holding sp. z o.o. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
没有合适的资源?快使用搜索试试~ 我知道了~
ckeditor4(4.22.1-含上传图片、快速表格、首行缩进等插件)

共868个文件
js:608个
png:79个
html:49个

1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉

温馨提示
1. ckeditor4上传图片增强图片上传插件,以及配置; 2. ckeditor4 快速创建表格插件以及配置; 3. 含解决粘贴word解决首行缩进的问题; 4. creditor4 简单使用,拿来即用,上面插件已包含; 5. 上传图片接口,请看:https://download.csdn.net/download/suixinfeixiangfei/88794851 6. 如果首行缩进没有开启插件,下载之后记得配置开启; 7. 各种插件的使用博客里均有对应的详细讲解,需要的可去我的博客去搜索; 8. 参考官网: https://ckeditor.com/ckeditor-4/
资源推荐
资源详情
资源评论


















收起资源包目录





































































































共 868 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9
资源评论

- sezvboyrul2024-07-16老弹出升级提示,这不是破解版吗
- 机灵鹤2025-01-24总算找到了想要的资源,搞定遇到的大问题,赞赞赞!
- demiinfo2024-07-07支持这个资源,内容详细,主要是能解决当下的问题,感谢大佬分享~

@素素~
- 粉丝: 1w+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 中小学作文素材:网络给我们的好处.doc
- 数据库第一章绪论.pptx
- Oracle数据库中LIKE与INSTR模糊查询性能深度对比
- 基于plc自动货机.doc
- 在Excel中生成某个范围内的随机整数[会计实务-会计实操].doc
- 教师网络培训心得体会精选三篇.doc
- 网络营销部组建计划书.doc
- 美菱冰箱网络营销策划案.doc
- 基于A系列三菱PLC控制的电子束焊机改造系统.doc
- 云计算虚拟化hadoop实验报告.doc
- “多媒体与网络技术应用于中小学英语教学的研究”结题报告.doc
- 2023年青少年计算机竞赛实施方案2.doc
- 网络营销价格策略新知助业营销策划机构推荐阅.pptx
- 软件系统整体设计方案.docx
- 软件工程实习报告.doc
- 综合布线技术与施工第2章网络传输介质.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
