@ckeditor/ckeditor5-export-pdf 0.0.0-internal-20241017.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/LICENSE.md +18 -0
- package/README.md +44 -0
- package/build/export-pdf.js +5 -0
- package/build/translations/af.js +1 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/es-co.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/jv.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/ckeditor5-metadata.json +21 -0
- package/dist/augmentation.d.ts +25 -0
- package/dist/exportpdf.d.ts +242 -0
- package/dist/exportpdfcommand.d.ts +43 -0
- package/dist/exportpdfui.d.ts +35 -0
- package/dist/index-content.css +4 -0
- package/dist/index-editor.css +4 -0
- package/dist/index.css +4 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +23 -0
- package/dist/translations/af.d.ts +8 -0
- package/dist/translations/af.js +23 -0
- package/dist/translations/af.umd.js +23 -0
- package/dist/translations/ar.d.ts +8 -0
- package/dist/translations/ar.js +23 -0
- package/dist/translations/ar.umd.js +23 -0
- package/dist/translations/bg.d.ts +8 -0
- package/dist/translations/bg.js +23 -0
- package/dist/translations/bg.umd.js +23 -0
- package/dist/translations/bn.d.ts +8 -0
- package/dist/translations/bn.js +23 -0
- package/dist/translations/bn.umd.js +23 -0
- package/dist/translations/ca.d.ts +8 -0
- package/dist/translations/ca.js +23 -0
- package/dist/translations/ca.umd.js +23 -0
- package/dist/translations/cs.d.ts +8 -0
- package/dist/translations/cs.js +23 -0
- package/dist/translations/cs.umd.js +23 -0
- package/dist/translations/da.d.ts +8 -0
- package/dist/translations/da.js +23 -0
- package/dist/translations/da.umd.js +23 -0
- package/dist/translations/de.d.ts +8 -0
- package/dist/translations/de.js +23 -0
- package/dist/translations/de.umd.js +23 -0
- package/dist/translations/el.d.ts +8 -0
- package/dist/translations/el.js +23 -0
- package/dist/translations/el.umd.js +23 -0
- package/dist/translations/en-au.d.ts +8 -0
- package/dist/translations/en-au.js +23 -0
- package/dist/translations/en-au.umd.js +23 -0
- package/dist/translations/en.d.ts +8 -0
- package/dist/translations/en.js +23 -0
- package/dist/translations/en.umd.js +23 -0
- package/dist/translations/es-co.d.ts +8 -0
- package/dist/translations/es-co.js +23 -0
- package/dist/translations/es-co.umd.js +23 -0
- package/dist/translations/es.d.ts +8 -0
- package/dist/translations/es.js +23 -0
- package/dist/translations/es.umd.js +23 -0
- package/dist/translations/et.d.ts +8 -0
- package/dist/translations/et.js +23 -0
- package/dist/translations/et.umd.js +23 -0
- package/dist/translations/fi.d.ts +8 -0
- package/dist/translations/fi.js +23 -0
- package/dist/translations/fi.umd.js +23 -0
- package/dist/translations/fr.d.ts +8 -0
- package/dist/translations/fr.js +23 -0
- package/dist/translations/fr.umd.js +23 -0
- package/dist/translations/gl.d.ts +8 -0
- package/dist/translations/gl.js +23 -0
- package/dist/translations/gl.umd.js +23 -0
- package/dist/translations/he.d.ts +8 -0
- package/dist/translations/he.js +23 -0
- package/dist/translations/he.umd.js +23 -0
- package/dist/translations/hi.d.ts +8 -0
- package/dist/translations/hi.js +23 -0
- package/dist/translations/hi.umd.js +23 -0
- package/dist/translations/hr.d.ts +8 -0
- package/dist/translations/hr.js +23 -0
- package/dist/translations/hr.umd.js +23 -0
- package/dist/translations/hu.d.ts +8 -0
- package/dist/translations/hu.js +23 -0
- package/dist/translations/hu.umd.js +23 -0
- package/dist/translations/id.d.ts +8 -0
- package/dist/translations/id.js +23 -0
- package/dist/translations/id.umd.js +23 -0
- package/dist/translations/it.d.ts +8 -0
- package/dist/translations/it.js +23 -0
- package/dist/translations/it.umd.js +23 -0
- package/dist/translations/ja.d.ts +8 -0
- package/dist/translations/ja.js +23 -0
- package/dist/translations/ja.umd.js +23 -0
- package/dist/translations/jv.d.ts +8 -0
- package/dist/translations/jv.js +23 -0
- package/dist/translations/jv.umd.js +23 -0
- package/dist/translations/ko.d.ts +8 -0
- package/dist/translations/ko.js +23 -0
- package/dist/translations/ko.umd.js +23 -0
- package/dist/translations/lt.d.ts +8 -0
- package/dist/translations/lt.js +23 -0
- package/dist/translations/lt.umd.js +23 -0
- package/dist/translations/lv.d.ts +8 -0
- package/dist/translations/lv.js +23 -0
- package/dist/translations/lv.umd.js +23 -0
- package/dist/translations/ms.d.ts +8 -0
- package/dist/translations/ms.js +23 -0
- package/dist/translations/ms.umd.js +23 -0
- package/dist/translations/nl.d.ts +8 -0
- package/dist/translations/nl.js +23 -0
- package/dist/translations/nl.umd.js +23 -0
- package/dist/translations/no.d.ts +8 -0
- package/dist/translations/no.js +23 -0
- package/dist/translations/no.umd.js +23 -0
- package/dist/translations/pl.d.ts +8 -0
- package/dist/translations/pl.js +23 -0
- package/dist/translations/pl.umd.js +23 -0
- package/dist/translations/pt-br.d.ts +8 -0
- package/dist/translations/pt-br.js +23 -0
- package/dist/translations/pt-br.umd.js +23 -0
- package/dist/translations/pt.d.ts +8 -0
- package/dist/translations/pt.js +23 -0
- package/dist/translations/pt.umd.js +23 -0
- package/dist/translations/ro.d.ts +8 -0
- package/dist/translations/ro.js +23 -0
- package/dist/translations/ro.umd.js +23 -0
- package/dist/translations/ru.d.ts +8 -0
- package/dist/translations/ru.js +23 -0
- package/dist/translations/ru.umd.js +23 -0
- package/dist/translations/sk.d.ts +8 -0
- package/dist/translations/sk.js +23 -0
- package/dist/translations/sk.umd.js +23 -0
- package/dist/translations/sr-latn.d.ts +8 -0
- package/dist/translations/sr-latn.js +23 -0
- package/dist/translations/sr-latn.umd.js +23 -0
- package/dist/translations/sr.d.ts +8 -0
- package/dist/translations/sr.js +23 -0
- package/dist/translations/sr.umd.js +23 -0
- package/dist/translations/sv.d.ts +8 -0
- package/dist/translations/sv.js +23 -0
- package/dist/translations/sv.umd.js +23 -0
- package/dist/translations/th.d.ts +8 -0
- package/dist/translations/th.js +23 -0
- package/dist/translations/th.umd.js +23 -0
- package/dist/translations/tr.d.ts +8 -0
- package/dist/translations/tr.js +23 -0
- package/dist/translations/tr.umd.js +23 -0
- package/dist/translations/ug.d.ts +8 -0
- package/dist/translations/ug.js +23 -0
- package/dist/translations/ug.umd.js +23 -0
- package/dist/translations/uk.d.ts +8 -0
- package/dist/translations/uk.js +23 -0
- package/dist/translations/uk.umd.js +23 -0
- package/dist/translations/ur.d.ts +8 -0
- package/dist/translations/ur.js +23 -0
- package/dist/translations/ur.umd.js +23 -0
- package/dist/translations/vi.d.ts +8 -0
- package/dist/translations/vi.js +23 -0
- package/dist/translations/vi.umd.js +23 -0
- package/dist/translations/zh-cn.d.ts +8 -0
- package/dist/translations/zh-cn.js +23 -0
- package/dist/translations/zh-cn.umd.js +23 -0
- package/dist/translations/zh.d.ts +8 -0
- package/dist/translations/zh.js +23 -0
- package/dist/translations/zh.umd.js +23 -0
- package/dist/utils/common-translations.d.ts +13 -0
- package/dist/utils.d.ts +14 -0
- package/lang/contexts.json +8 -0
- package/lang/translations/af.po +42 -0
- package/lang/translations/ar.po +42 -0
- package/lang/translations/bg.po +42 -0
- package/lang/translations/bn.po +42 -0
- package/lang/translations/ca.po +42 -0
- package/lang/translations/cs.po +42 -0
- package/lang/translations/da.po +42 -0
- package/lang/translations/de.po +42 -0
- package/lang/translations/el.po +42 -0
- package/lang/translations/en-au.po +42 -0
- package/lang/translations/en.po +42 -0
- package/lang/translations/es-co.po +42 -0
- package/lang/translations/es.po +42 -0
- package/lang/translations/et.po +42 -0
- package/lang/translations/fi.po +42 -0
- package/lang/translations/fr.po +42 -0
- package/lang/translations/gl.po +42 -0
- package/lang/translations/he.po +42 -0
- package/lang/translations/hi.po +42 -0
- package/lang/translations/hr.po +42 -0
- package/lang/translations/hu.po +42 -0
- package/lang/translations/id.po +42 -0
- package/lang/translations/it.po +42 -0
- package/lang/translations/ja.po +42 -0
- package/lang/translations/jv.po +42 -0
- package/lang/translations/ko.po +42 -0
- package/lang/translations/lt.po +42 -0
- package/lang/translations/lv.po +42 -0
- package/lang/translations/ms.po +42 -0
- package/lang/translations/nl.po +42 -0
- package/lang/translations/no.po +42 -0
- package/lang/translations/pl.po +42 -0
- package/lang/translations/pt-br.po +42 -0
- package/lang/translations/pt.po +42 -0
- package/lang/translations/ro.po +42 -0
- package/lang/translations/ru.po +42 -0
- package/lang/translations/sk.po +42 -0
- package/lang/translations/sr-latn.po +42 -0
- package/lang/translations/sr.po +42 -0
- package/lang/translations/sv.po +42 -0
- package/lang/translations/th.po +42 -0
- package/lang/translations/tr.po +42 -0
- package/lang/translations/ug.po +42 -0
- package/lang/translations/uk.po +42 -0
- package/lang/translations/ur.po +42 -0
- package/lang/translations/vi.po +42 -0
- package/lang/translations/zh-cn.po +42 -0
- package/lang/translations/zh.po +42 -0
- package/package.json +53 -0
- package/src/augmentation.d.ts +21 -0
- package/src/augmentation.js +23 -0
- package/src/exportpdf.d.ts +238 -0
- package/src/exportpdf.js +23 -0
- package/src/exportpdfcommand.d.ts +39 -0
- package/src/exportpdfcommand.js +23 -0
- package/src/exportpdfui.d.ts +31 -0
- package/src/exportpdfui.js +23 -0
- package/src/index.d.ts +10 -0
- package/src/index.js +23 -0
- package/src/utils/common-translations.d.ts +9 -0
- package/src/utils/common-translations.js +23 -0
- package/src/utils.d.ts +10 -0
- package/src/utils.js +23 -0
- package/theme/icons/exportpdf.svg +1 -0
package/CHANGELOG.md
ADDED
package/LICENSE.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Software License Agreement
|
|
2
|
+
==========================
|
|
3
|
+
|
|
4
|
+
**CKEditor 5 export to PDF feature** (https://ckeditor.com/ckeditor-5/)<br>
|
|
5
|
+
Copyright (c) 2003–2024, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
|
|
6
|
+
|
|
7
|
+
CKEditor 5 export to PDF feature is licensed under a commercial license and is protected by copyright law.
|
|
8
|
+
For more details about available licensing options please contact us at sales@cksource.com.
|
|
9
|
+
|
|
10
|
+
Sources of Intellectual Property Included in CKEditor 5 export to PDF
|
|
11
|
+
--------------------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
Where not otherwise indicated, all CKEditor 5 export to PDF feature content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
14
|
+
|
|
15
|
+
Trademarks
|
|
16
|
+
----------
|
|
17
|
+
|
|
18
|
+
**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks, or service marks of their respective holders.
|
package/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
CKEditor 5 export to PDF feature
|
|
2
|
+
================================
|
|
3
|
+
|
|
4
|
+
[](https://www.npmjs.com/package/@ckeditor/ckeditor5-export-pdf)
|
|
5
|
+
|
|
6
|
+
This package contains an export to PDF feature for CKEditor 5. It allows you to generate a PDF file directly from the CKEditor 5 WYSIWYG editor content.
|
|
7
|
+
|
|
8
|
+
When enabled, this feature sends the content of your editor together with the styles used to display it to the CKEditor Cloud Services HTML to PDF converter service. The service then generates a PDF document that the user can download. This allows you to easily print your content to PDF.
|
|
9
|
+
|
|
10
|
+

|
|
11
|
+
|
|
12
|
+
This is a premium feature. [Contact us](https://ckeditor.com/contact/) if you would like to purchase a license. Let us know if you have any feedback or questions!
|
|
13
|
+
|
|
14
|
+
## Demo
|
|
15
|
+
|
|
16
|
+
Check out the [demo in the Export to PDF feature](https://ckeditor.com/docs/ckeditor5/latest/features/converters/export-pdf.html#demo) guide.
|
|
17
|
+
|
|
18
|
+
## Documentation
|
|
19
|
+
|
|
20
|
+
See the [`@ckeditor/ckeditor5-export-pdf` package](https://ckeditor.com/docs/ckeditor5/latest/api/export-pdf.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/) as well as the [Export to PDF](https://ckeditor.com/docs/ckeditor5/latest/features/converters/export-pdf.html) feature guide.
|
|
21
|
+
|
|
22
|
+
## Installation
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npm install ckeditor5-premium-features
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Getting support
|
|
29
|
+
|
|
30
|
+
CKEditor 5 export to PDF feature comes with outstanding support from a dedicated team of customer care specialists, QA engineers and CKEditor 5 developers. The team will gladly assist you in all aspects from setting up your account to integrating CKEditor 5 PDF export feature with your application.
|
|
31
|
+
|
|
32
|
+
As a licensed CKEditor 5 export to PDF feature user you can report bugs and request features directly through the CKEditor Ecosystem customer dashboard.
|
|
33
|
+
|
|
34
|
+
## License
|
|
35
|
+
|
|
36
|
+
**CKEditor 5 export to PDF** (https://ckeditor.com/ckeditor-5/)<br>
|
|
37
|
+
Copyright (c) 2003–2024, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
|
|
38
|
+
|
|
39
|
+
CKEditor 5 export to PDF feature is licensed under a commercial license and is protected by copyright law.
|
|
40
|
+
For more details about available licensing options please contact us at sales@cksource.com.
|
|
41
|
+
|
|
42
|
+
### Trademarks
|
|
43
|
+
|
|
44
|
+
**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks, or service marks of their respective holders.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
!function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"An error occurred while generating the PDF.":"An error occurred while generating the PDF.","Export to PDF":"Export to PDF","Exporting PDF document":"Exporting PDF document","PDF export failed":"PDF export failed","PDF export started":"PDF export started","PDF export successful":"PDF export successful"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
|
|
2
|
+
/*!
|
|
3
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
|
+
* For licensing, see LICENSE.md.
|
|
5
|
+
*/(()=>{var t={782:(t,e,n)=>{t.exports=n(237)("./src/core.js")},311:(t,e,n)=>{t.exports=n(237)("./src/ui.js")},237:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(r){var s=e[r];if(void 0!==s)return s.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{ExportPdf:()=>P});var t=n(782),e=n(311);function s(t,e){const n=o();return(s=function(t,e){return n[t-=235]})(t,e)}function o(){const t=["96WGpkhf","The editor stylesheet could not be found in the document. Check your webpack config – style-loader should use data-cke=true attribute for the editor stylesheet.","trim","76979hhmZgI","fetch","48mzMJYY","cssText","21215IiOqIx","825612XAKzkn","from","styleSheets","cssRules",".ck-content","text","ownerNode","warn","100WmHaaR","all","5544744DLLQjC","616xPjyvW","4056IhfaWx","492283IHrxtp","data-cke","EDITOR_STYLES","indexOf",":root","length","47043TWUffe","hasAttribute","then","78FlACSA","push","join"];return(o=function(){return t})()}function i(){const t=s,e=[],n=[];for(const r of Array[t(256)](document[t(257)]))if(r[t(261)][t(242)](t(236)))for(const s of Array[t(256)](r[t(258)]))-1!==s[t(253)][t(238)](t(259))?e[t(245)](s[t(253)]):-1!==s[t(253)][t(238)](t(239))&&n[t(245)](s[t(253)]);return e[t(240)]||console[t(262)](t(248)),[...n,...e][t(246)](" ")[t(249)]()}function c(t,e){const n=t.t;switch(e){case"Export to PDF":return n("Export to PDF");case"An error occurred while generating the PDF.":return n("An error occurred while generating the PDF.");case"PDF export started":return n("PDF export started");case"PDF export failed":return n("PDF export failed");case"PDF export successful":return n("PDF export successful");case"Exporting PDF document":return n("Exporting PDF document");default:return e}}function a(){const t=["POST","status","converterOptions","stylesheets","has","EDITOR_STYLES","811749tissrb","data","showWarning","entries","locale","refresh","get","$labels","config","converterUrl","2225fXslAG","plugins","application/json","mergeFields","announce","fileName","document.pdf","stringify","getDefaultValues","1081332EHssHc","URL","token","remove","PDF export started","function","execute","2220EZCCwm","merge_fields","14242420kudjRA","_downloadFile","createElement","cke5","9UXNVRh","MergeFieldsEditing","blob","getDataSetValues","getMergeFieldsIds","401699caIpfc","previewMode","application/pdf","ExportPdf","set","1818565boeAWQ","\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</body>\n\t\t\t\t\t</html>","_token","assertive","then","value","createObjectURL","158344zOCaON","isBusy","isEnabled",'">\n\t\t\t\t\t\t\t\t',"ariaLiveAnnouncer","download","$defaultValues","pending","click","https://pdf-converter.cke-cs.com/v1/convert/","affectsData","catch","MergeFields","PDF export successful","getLabel","appID","finally","An error occurred while generating the PDF.","editor","PDF export failed","Notification",'<html>\n\t\t\t\t\t\t<head>\n\t\t\t\t\t\t\t<title>CKEditor 5 PDF document</title>\n\t\t\t\t\t\t\t<meta charset="utf-8">\n\t\t\t\t\t\t</head>\n\t\t\t\t\t\t<body>\n\t\t\t\t\t\t\t<div class="ck-content" dir="',"2EXmuHe","contentLanguageDirection","href","fetch","dataCallback"];return(a=function(){return t})()}!function(t){const e=s,n=t();for(;;)try{if(467155===parseInt(e(255))/1+parseInt(e(266))/2*(-parseInt(e(267))/3)+-parseInt(e(247))/4*(parseInt(e(254))/5)+parseInt(e(244))/6*(parseInt(e(250))/7)+parseInt(e(252))/8*(parseInt(e(241))/9)+-parseInt(e(263))/10*(-parseInt(e(235))/11)+-parseInt(e(265))/12)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(o);const u=p;function p(t,e){const n=a();return(p=function(t,e){return n[t-=482]})(t,e)}!function(t){const e=p,n=t();for(;;)try{if(405619===parseInt(e(524))/1*(-parseInt(e(558))/2)+-parseInt(e(487))/3+parseInt(e(513))/4*(-parseInt(e(497))/5)+parseInt(e(506))/6+-parseInt(e(529))/7+-parseInt(e(536))/8+parseInt(e(519))/9*(parseInt(e(515))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(a);class f extends t.Command{constructor(t){const e=p;super(t),this[e(528)](e(537),!1),this[e(546)]=!1}[u(492)](){const t=u;this[t(538)]=!this[t(537)],this[t(534)]=this[t(537)]?t(543):void 0}[u(512)](t={}){const e=u,n=this[e(554)],r=t[e(496)]||e(545),o=t[e(562)]||(t=>t[e(488)][e(493)]()),a=n[e(498)][e(493)](e(527)),p=t[e(508)]||a[e(531)];return this[e(537)]=!0,this[e(492)](),function(t){const e=s;if(!t)return new Promise((t=>t("")));const n=[];for(const r of t)e(237)!==r?n[e(245)](window[e(251)](r)[e(243)]((t=>t[e(260)]()))):n[e(245)](i());return Promise[e(264)](n)[e(243)]((t=>t[e(246)](" ")[e(249)]()))}(t[e(484)]||[e(486)])[e(533)]((async s=>{const i=e;if(n.ui[i(540)][i(501)](c(n[i(491)],i(510))),n[i(498)][i(485)](i(548))){t[i(483)]||(t[i(483)]={});const e=n[i(498)][i(493)](i(520)),r=e[i(525)],{prefix:s,suffix:o}=n[i(495)][i(493)](i(500)),c={prefix:s,suffix:o,data:{}};if(i(494)===r)for(const t of e[i(523)]())c[i(488)][t]=s+e[i(550)](t)+o;else{const t=i(542)===r?e[i(505)]():e[i(522)](r,!0);for(const n of Object[i(490)](t)){const[t,r]=n;c[i(488)][t]=null!==r?r:e[i(550)](t)}}t[i(483)][i(514)]=c}const a={html:i(557)+n[i(491)][i(559)]+i(539)+await o(n)+i(530),css:s,options:t[i(483)]},u={method:i(563),headers:{"Content-Type":i(499),Accept:i(526),...p?{Authorization:p[i(534)]}:null,"x-cs-app-id":t[i(551)]||i(518)},body:JSON[i(504)](a)};return window[i(561)](r,u)[i(533)]((t=>{const e=i;if(200!==t[e(482)])throw t;return t[e(521)]()}))[i(533)]((e=>{const r=i;n.ui[r(540)][r(501)](c(n[r(491)],r(549)));const s=r(511)==typeof t[r(502)]?t[r(502)]():t[r(502)];this[r(516)](e,s||r(503))}))}))[e(547)]((t=>{const r=e,s=n[r(498)][r(493)](r(556));throw n.ui[r(540)][r(501)](c(n[r(491)],r(555)),{politeness:r(532)}),s[r(489)](c(n[r(491)],r(553))),t}))[e(552)]((()=>{const t=e;this[t(537)]=!1,this[t(492)]()}))}[u(516)](t,e){const n=u,r=document[n(517)]("a");r[n(560)]=window[n(507)][n(535)](t),r[n(541)]=e,r[n(544)](),r[n(509)]()}}const d=l;function l(t,e){const n=h();return(l=function(t,e){return n[t-=385]})(t,e)}function h(){const t=["children","isOfficialPlugin","config","isOn","922005uUUpSn","componentFactory","get","pluginName","exportPdf","add","740lZANgL","_createButton","ExportPdfUI","Export to PDF","menuBar:exportPdf","352EtANIW","bind","init","isPremiumPlugin","13684GVLQmc","isBusy","799808oufdJA","isEnabled","330BjGpTa","label","commands","focus","isVisible","iconView","1016kIzCsw","listenTo","99063MPXPXV","set","editing","5mVvWYG","locale","execute","view","Exporting PDF document","editor","149864ceiorc","42FZPLvJ"];return(h=function(){return t})()}!function(t){const e=l,n=t();for(;;)try{if(136205===parseInt(e(412))/1*(-parseInt(e(398))/2)+parseInt(e(414))/3+parseInt(e(404))/4+parseInt(e(417))/5*(-parseInt(e(406))/6)+parseInt(e(424))/7*(-parseInt(e(423))/8)+parseInt(e(387))/9+parseInt(e(393))/10*(parseInt(e(402))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(h);class I extends t.Plugin{static get[d(390)](){return d(395)}static get[d(426)](){return!0}static get[d(401)](){return!0}[d(400)](){const t=d,n=this[t(422)];n.ui[t(388)][t(392)](t(391),(()=>{const r=t,s=this[r(394)](e.ButtonView),o=n[r(408)][r(389)](r(391));return s[r(415)]({tooltip:!0}),s[r(399)](r(386)).to(o,r(403)),s})),n.ui[t(388)][t(392)](t(397),(()=>this[t(394)](e.MenuBarMenuListItemButtonView)))}[d(394)](t){const n=d,r=this[n(422)],s=r[n(385)][n(389)](n(391))||{},o=r[n(408)][n(389)](n(391)),i=new t(r[n(418)]),a=new e.SpinnerView;return i[n(425)][n(392)](a),a[n(399)](n(410)).to(o,n(403)),i[n(411)][n(399)](n(410)).to(o,n(403),(t=>!t)),i[n(415)]({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M19 4.5 14 0H3v6.5h1.5v-5h8v5h5V11H19V4.5ZM14 2l3.3 3H14V2Z"/><path d="m12.452 18.5 1.25 1.5H3v-3h1.5v1.5h7.952Z"/><path d="M19.826 16.843a.75.75 0 1 0-1.152-.96L17.5 17.29V13H16v4.29l-1.174-1.408a.75.75 0 1 0-1.152.96l2.346 2.816a.95.95 0 0 0 1.46 0l2.346-2.815Z"/><path d="M1.63 14.24V12.3h.88c.66 0 1.14-.15 1.46-.45.32-.3.48-.71.48-1.24 0-.52-.15-.91-.44-1.2C3.7 9.15 3.28 9 2.69 9H0v5.24h1.63Zm.4-3h-.4v-1.17h.46c.3 0 .5.05.62.17.1.11.16.25.16.42 0 .16-.06.3-.19.41-.13.11-.34.16-.66.16l.01.01Zm5.7 3c.28 0 .6-.05.96-.14.26-.07.5-.21.73-.42.22-.2.4-.47.53-.77.12-.31.19-.75.19-1.3 0-.37-.04-.7-.13-1.02a2.3 2.3 0 0 0-.42-.84c-.19-.24-.43-.43-.72-.56C8.57 9.06 8.2 9 7.72 9h-2.4v5.24H7.73Zm-.4-1.19h-.4v-2.86h.4c.43 0 .73.1.91.3.18.2.27.59.27 1.14 0 .42-.04.73-.12.91a.76.76 0 0 1-.34.4c-.14.07-.38.11-.72.11Zm5.3 1.2V12.1h2.02v-1.06h-2.03v-.91H15V9h-4v5.24h1.62l.01.01Z"/></svg>\n'}),i[n(399)](n(405)).to(o,n(405)),i[n(399)](n(407)).to(o,n(403),(t=>c(r[n(418)],n(t?421:396)))),this[n(413)](i,n(419),(()=>{const t=n;r[t(419)](t(391),s),r[t(416)][t(420)][t(409)]()})),i}}const g=x;function x(t,e){const n=m();return(x=function(t,e){return n[t-=421]})(t,e)}function m(){const t=["CloudServices","isOfficialPlugin","plugins","init","exportPdf","5818465akQqIk","pluginName","4976904odlyTF","3WeXKdY","1231386yKkcTk","ExportPdf","1039880ANlvmJ","get","then","registerTokenUrl","editor","10010296gODtdH","isPremiumPlugin","371IseBsf","_token","72228MYxasI","token","23142700MADuxc","9FJmItr","add","config","commands","requires","tokenUrl"];return(m=function(){return t})()}!function(t){const e=x,n=t();for(;;)try{if(943811===parseInt(e(445))/1+-parseInt(e(443))/2*(parseInt(e(442))/3)+-parseInt(e(441))/4+-parseInt(e(439))/5+parseInt(e(425))/6*(-parseInt(e(423))/7)+parseInt(e(421))/8*(parseInt(e(428))/9)+parseInt(e(427))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(m);class P extends t.Plugin{static get[g(440)](){return g(444)}static get[g(435)](){return!0}static get[g(422)](){return!0}static get[g(432)](){return[g(434),e.Notification,I]}[g(437)](){const t=g,e=this[t(449)],n=e[t(430)][t(446)](t(438))||{};e[t(431)][t(429)](t(438),new f(e));const r=e[t(436)][t(446)](t(434));!1===n[t(433)]?this[t(424)]=null:n[t(433)]?r[t(448)](n[t(433)])[t(447)]((e=>{this[t(424)]=e})):this[t(424)]=r[t(426)]}}function v(t,e){var n=w();return(v=function(t,e){return n[t-=339]})(t,e)}function w(){var t=["8aeBIme","3333794PDCGCM","4972744xOvDdG","10900467lBVeaC","4234000ibEbvM","81966SsyCQs","1539147ztfHGn","9552820ChBGcp","609kJGMHb","1ObhDpe"];return(w=function(){return t})()}!function(t){for(var e=v,n=t();;)try{if(850934===-parseInt(e(339))/1*(-parseInt(e(341))/2)+parseInt(e(346))/3+-parseInt(e(342))/4+parseInt(e(344))/5+-parseInt(e(345))/6*(parseInt(e(348))/7)+-parseInt(e(340))/8*(-parseInt(e(343))/9)+-parseInt(e(347))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(w)})(),(window.CKEditor5=window.CKEditor5||{}).exportPdf=r})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e){const o=e.af=e.af||{};o.dictionary=Object.assign(o.dictionary||{},{"An error occurred while generating the PDF.":"'n Fout het voorgekom tydens die skep van die PDF.","Export to PDF":"Voer uit na PDF","Exporting PDF document":"","PDF export failed":"","PDF export started":"","PDF export successful":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(r){const t=r.ar=r.ar||{};t.dictionary=Object.assign(t.dictionary||{},{"An error occurred while generating the PDF.":"حدث خطأ ما، أثناء استخراج ملف PDF.","Export to PDF":"تصدير إلى ملف PDF","Exporting PDF document":"تصدير مستند PDF","PDF export failed":"فشل تصدير PDF","PDF export started":"بدأ تصدير PDF","PDF export successful":"تم تصدير مستند PDF بنجاح"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t){const o=t.bg=t.bg||{};o.dictionary=Object.assign(o.dictionary||{},{"An error occurred while generating the PDF.":"Възникна грешка при генериране на PDF.","Export to PDF":"Експорт към PDF","Exporting PDF document":"Прехвърляне на документ в PDF","PDF export failed":"Неуспешно прехвърляне на документ в PDF","PDF export started":"Започнато прехвърляне в PDF","PDF export successful":"Успешно прехвърляне на документ в PDF"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t){const n=t.bn=t.bn||{};n.dictionary=Object.assign(n.dictionary||{},{"An error occurred while generating the PDF.":"PDF তৈরি করার সময় একটি ত্রুটি হয়েছে।","Export to PDF":"PDF এ রপ্তানি করুন","Exporting PDF document":"PDF ডকুমেন্ট এক্সপোর্ট করা হচ্ছে","PDF export failed":"PDF এক্সপোর্ট ব্যর্থ হয়েছে৷","PDF export started":"PDF এক্সপোর্ট শুরু হয়েছে","PDF export successful":"PDF এক্সপোর্ট সফল হয়েছে"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t){const a=t.ca=t.ca||{};a.dictionary=Object.assign(a.dictionary||{},{"An error occurred while generating the PDF.":"S'ha produït un error en generar el PDF.","Export to PDF":"Exportar a PDF","Exporting PDF document":"S'està exportant un document a PDF","PDF export failed":"Ha fallat l'exportació a PDF","PDF export started":"S'ha iniciat l'exportació a PDF","PDF export successful":"L'exportació a PDF s'ha realitzat correctament"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const t=o.cs=o.cs||{};t.dictionary=Object.assign(t.dictionary||{},{"An error occurred while generating the PDF.":"Při generování PDF souboru se vyskytla chyba.","Export to PDF":"Exportovat do PDF","Exporting PDF document":"Export dokumentu PDF","PDF export failed":"Export PDF se nezdařil","PDF export started":"Export PDF byl zahájen","PDF export successful":"Export PDF byl úspěšný"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e){const t=e.da=e.da||{};t.dictionary=Object.assign(t.dictionary||{},{"An error occurred while generating the PDF.":"Der opstod en fejl under oprettelse af PDF'en.","Export to PDF":"Eksporter til PDF","Exporting PDF document":"Eksporterer PDF-dokument","PDF export failed":"PDF-eksport mislykkedes","PDF export started":"PDF-eksport er startet","PDF export successful":"PDF-eksport lykkedes"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e){const t=e.de=e.de||{};t.dictionary=Object.assign(t.dictionary||{},{"An error occurred while generating the PDF.":"Beim Erstellen der PDF ist ein Fehler aufgetreten.","Export to PDF":"Als PDF exportieren","Exporting PDF document":"PDF-Dokument exportieren","PDF export failed":"PDF-Export fehlgeschlagen","PDF export started":"PDF-Export gestartet","PDF export successful":"PDF-Export erfolgreich"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e){const t=e.el=e.el||{};t.dictionary=Object.assign(t.dictionary||{},{"An error occurred while generating the PDF.":"Παρουσιάστηκε σφάλμα κατά τη δημιουργία του PDF.","Export to PDF":"Εξαγωγή σε PDF","Exporting PDF document":"Εξαγωγή εγγράφου σε μορφή PDF","PDF export failed":"Αποτυχία εξαγωγής αρχείου PDF","PDF export started":"Εκκίνηση εξαγωγής αρχείου PDF","PDF export successful":"Επιτυχής εξαγωγή αρχείου PDF"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e){const r=e["en-au"]=e["en-au"]||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while generating the PDF.":"An error occurred while generating the PDF.","Export to PDF":"Export to PDF","Exporting PDF document":"","PDF export failed":"","PDF export started":"","PDF export successful":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(r){const o=r["es-co"]=r["es-co"]||{};o.dictionary=Object.assign(o.dictionary||{},{"An error occurred while generating the PDF.":"Se ha producido un error al generar el archivo PDF.","Export to PDF":"Exportar a PDF","Exporting PDF document":"","PDF export failed":"","PDF export started":"","PDF export successful":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const e=o.es=o.es||{};e.dictionary=Object.assign(e.dictionary||{},{"An error occurred while generating the PDF.":"Se ha producido un error al generar el archivo PDF.","Export to PDF":"Exportar a PDF","Exporting PDF document":"Exportando documento PDF","PDF export failed":"La exportación del PDF ha fallado","PDF export started":"La exportación del PDF ha comenzado","PDF export successful":"Se ha exportado el PDF"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(i){const e=i.et=i.et||{};e.dictionary=Object.assign(e.dictionary||{},{"An error occurred while generating the PDF.":"PDF-i loomisel tekkis viga.","Export to PDF":"Ekspordi PDF-ina","Exporting PDF document":"PDF dokumendi eksportimine","PDF export failed":"PDF-i eksportimine nurjus","PDF export started":"Alustati PDF-i eksportimist","PDF export successful":"PDF-i eksportimine õnnestus"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(i){const t=i.fi=i.fi||{};t.dictionary=Object.assign(t.dictionary||{},{"An error occurred while generating the PDF.":"Kohtasimme häiriön PDF:n luonnin yhteydessä.","Export to PDF":"Siirrä PDF-tiedostoon","Exporting PDF document":"Viedään PDF-asiakirjaa","PDF export failed":"PDF-vienti epäonnistui","PDF export started":"PDF-vienti aloitettu","PDF export successful":"PDF-vienti onnistui"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(r){const e=r.fr=r.fr||{};e.dictionary=Object.assign(e.dictionary||{},{"An error occurred while generating the PDF.":"Une erreur est survenue lors de la génération du fichier PDF.","Export to PDF":"Exporter en PDF","Exporting PDF document":"Exportation d'un document PDF","PDF export failed":"L'exportation du PDF a échoué","PDF export started":"L'exportation du PDF a démarré","PDF export successful":"Exportation du PDF réussie"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.gl=o.gl||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while generating the PDF.":"Produciuse un erro ao xerar o PDF.","Export to PDF":"Exportar a PDF","Exporting PDF document":"Exportando un documento PDF","PDF export failed":"Produciuse un fallo na exportación do PDF","PDF export started":"Comezou a exportación do PDF","PDF export successful":"A exportación do PDF foi satisfactoria"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e){const t=e.he=e.he||{};t.dictionary=Object.assign(t.dictionary||{},{"An error occurred while generating the PDF.":"אירעה שגיאה בעת יצירת ה-PDF.","Export to PDF":"ייצוא ל-PDF","Exporting PDF document":"מייצא מסמך PDF","PDF export failed":"ייצוא PDF נכשל","PDF export started":"ייצוא PDF החל","PDF export successful":"ייצוא PDF הצליח"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t){const o=t.hi=t.hi||{};o.dictionary=Object.assign(o.dictionary||{},{"An error occurred while generating the PDF.":"पीडीएफ जनरेट करते समय एक एरर हो गयी.","Export to PDF":"पीडीएफ में एक्सपोर्ट करें","Exporting PDF document":"PDF डॉक्यूमेंट को एक्सपोर्ट किया जा रहा ह","PDF export failed":"PDF का एक्सपोर्ट विफल रहा","PDF export started":"PDF का एक्सपोर्ट शुरू हुआ","PDF export successful":"PDF का एक्सपोर्ट सफल हुआ"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.hr=o.hr||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while generating the PDF.":"Došlo je do greške prilikom generiranja PDF-a.","Export to PDF":"Izvoz u PDF","Exporting PDF document":"","PDF export failed":"","PDF export started":"","PDF export successful":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e){const t=e.hu=e.hu||{};t.dictionary=Object.assign(t.dictionary||{},{"An error occurred while generating the PDF.":"Hiba lépett fel a PDF fájl generálásakor.","Export to PDF":"Exportálás PDF-be","Exporting PDF document":"PDF dokumentum exportálása","PDF export failed":"PDF exportálása sikertelen","PDF export started":"PDF exportálása megkezdődött","PDF export successful":"PDF exportálása sikerült"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e){const r=e.id=e.id||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while generating the PDF.":"Terjadi kesalahan ketika membuat berkas PDF.","Export to PDF":"Ekspor ke PDF","Exporting PDF document":"mengekspor dokumen PDF","PDF export failed":"ekspor PDF gagal","PDF export started":"ekspor PDF dimulai","PDF export successful":"ekspor PDF berhasil"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const t=o.it=o.it||{};t.dictionary=Object.assign(t.dictionary||{},{"An error occurred while generating the PDF.":"Si è verificato un errore durante la generazione del PDF.","Export to PDF":"Esporta come PDF","Exporting PDF document":"Esporta documento PDF","PDF export failed":"Esportazione PDF non riuscita","PDF export started":"Esportazione PDF iniziata","PDF export successful":"Esportazione PDF riuscita"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t){const o=t.ja=t.ja||{};o.dictionary=Object.assign(o.dictionary||{},{"An error occurred while generating the PDF.":"PDFを出力中にエラーが発生しました。","Export to PDF":"PDFへ書き出す","Exporting PDF document":"PDF文書をエクスポート中","PDF export failed":"PDFのエクスポートに失敗","PDF export started":"PDFのエクスポート開始","PDF export successful":"PDFのエクスポートに成功"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e){const t=e.jv=e.jv||{};t.dictionary=Object.assign(t.dictionary||{},{"An error occurred while generating the PDF.":"Wonten kelepatan kala ngekspor dhateng PDF.","Export to PDF":"Ekspor datheng PDF","Exporting PDF document":"","PDF export failed":"","PDF export started":"","PDF export successful":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const t=o.ko=o.ko||{};t.dictionary=Object.assign(t.dictionary||{},{"An error occurred while generating the PDF.":"PDF를 생성하는 도중에 오류가 발생했습니다.","Export to PDF":"PDF로 내보내기","Exporting PDF document":"PDF 문서 내보내는 중","PDF export failed":"PDF 내보내기가 실패했습니다.","PDF export started":"PDF 내보내기가 시작되었습니다.","PDF export successful":"PDF 내보내기가 완료되었습니다."})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e){const o=e.lt=e.lt||{};o.dictionary=Object.assign(o.dictionary||{},{"An error occurred while generating the PDF.":"Nutiko klaida generuojant PDF.","Export to PDF":"Eksportuoti į PDF","Exporting PDF document":"Perkeliamas PDF dokumentas","PDF export failed":"PDF perkėlimas nepavyko","PDF export started":"Prasidėjo PDF perkėlimas","PDF export successful":"PDF perkėlimas buvo sėkmingas"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t){const o=t.lv=t.lv||{};o.dictionary=Object.assign(o.dictionary||{},{"An error occurred while generating the PDF.":"Notika kļūda veidojot PDF failu.","Export to PDF":"Eksportēt uz PDF","Exporting PDF document":'Eksportē "PDF" dokumentu',"PDF export failed":'"PDF" eksportēšana neizdevās',"PDF export started":'Sākta "PDF" eksportēšana',"PDF export successful":'"PDF" eksportēšana ir pabeigta'})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e){const r=e.ms=e.ms||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while generating the PDF.":"Berlaku ralat semasa mencipta PDF.","Export to PDF":"Eksport ke PDF","Exporting PDF document":"Mengeksport dokumen PDF","PDF export failed":"Eksport PDF gagal","PDF export started":"Eksport PDF bermula","PDF export successful":"Eksport PDF berjaya"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e){const t=e.nl=e.nl||{};t.dictionary=Object.assign(t.dictionary||{},{"An error occurred while generating the PDF.":"Er is een fout opgetreden bij het genereren van het pdf-bestand.","Export to PDF":"Naar pdf exporteren","Exporting PDF document":"PDF-document exporteren","PDF export failed":"Exporteren PDF mislukt","PDF export started":"Exporteren PDF gestart","PDF export successful":"PDF met succes geëxporteerd"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e){const t=e.no=e.no||{};t.dictionary=Object.assign(t.dictionary||{},{"An error occurred while generating the PDF.":"Det oppstod en feil under opprettelse av PDF-en.","Export to PDF":"Eksporter til PDF","Exporting PDF document":"Eksporterer PDF-dokument","PDF export failed":"PDF-eksport mislyktes","PDF export started":"PDF-eksport startet","PDF export successful":"PDF-eksport var vellykket"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const t=o.pl=o.pl||{};t.dictionary=Object.assign(t.dictionary||{},{"An error occurred while generating the PDF.":"Wystąpił błąd podczas generowania dokumentu PDF.","Export to PDF":"Eksport do formatu PDF","Exporting PDF document":"Eksportowanie dokumentu PDF","PDF export failed":"Eksport dokumentu PDF nieudany","PDF export started":"Rozpoczęto eksport dokumentu PDF","PDF export successful":"Eksport dokumentu PDF zakończony pomyślnie"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o["pt-br"]=o["pt-br"]||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while generating the PDF.":"Um erro ocorreu ao gerar o arquivo PDF.","Export to PDF":"Exportar para PDF","Exporting PDF document":"Exportação de documento em PDF","PDF export failed":"Falha na exportação de PDF","PDF export started":"Exportação de PDF iniciada","PDF export successful":"Exportação de PDF bem-sucedida"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const r=o.pt=o.pt||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while generating the PDF.":"Ocorreu um erro ao gerar o PDF.","Export to PDF":"Exportar para PDF","Exporting PDF document":"A exportar documento em formato PDF","PDF export failed":"Falha na exportação de PDF","PDF export started":"Exportação de PDF iniciada","PDF export successful":"Exportação de PDF concluída com êxito"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(r){const t=r.ro=r.ro||{};t.dictionary=Object.assign(t.dictionary||{},{"An error occurred while generating the PDF.":"A avut loc o eroare în timpul generării fișierului PDF.","Export to PDF":"Exportare în PDF","Exporting PDF document":"Exportare document PDF","PDF export failed":"Exportarea PDF-ului nu a reușit","PDF export started":"Exportarea PDF-ului a fost inițiată","PDF export successful":"Exportul PDF-ului a reușit"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(r){const t=r.ru=r.ru||{};t.dictionary=Object.assign(t.dictionary||{},{"An error occurred while generating the PDF.":"При создании PDF-файла произошла ошибка.","Export to PDF":"Экспорт в PDF","Exporting PDF document":"Экспорт PDF-документа","PDF export failed":"Экспорт PDF не удался","PDF export started":"Экспорт PDF начат","PDF export successful":"Экспорт PDF успешно выполнен"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const t=o.sk=o.sk||{};t.dictionary=Object.assign(t.dictionary||{},{"An error occurred while generating the PDF.":"Pri generovaní PDF súboru nastala chyba.","Export to PDF":"Exportovať do PDF","Exporting PDF document":"Prebieha export dokumentu vo formáte PDF","PDF export failed":"Export dokumentu vo formáte PDF zlyhal","PDF export started":"Export dokumentu vo formáte PDF začal","PDF export successful":"Export dokumentu vo formáte bol úspešný"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const e=o["sr-latn"]=o["sr-latn"]||{};e.dictionary=Object.assign(e.dictionary||{},{"An error occurred while generating the PDF.":"Došlo je do greške pri generisanju PDF-a.","Export to PDF":"Eksportuj u PDF","Exporting PDF document":"Izvoz PDF dokumenta","PDF export failed":"Izvoz PDF-a nije uspeo","PDF export started":"Izvoz u PDF je počeo","PDF export successful":"PDF izvoz nije uspeo"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(o){const e=o.sr=o.sr||{};e.dictionary=Object.assign(e.dictionary||{},{"An error occurred while generating the PDF.":"Дошло је до грешке при генерисању ПДФ-а","Export to PDF":"Експортуј у ПДФ","Exporting PDF document":"Izvoz PDF dokumenta","PDF export failed":"Izvoz PDF-a nije uspeo","PDF export started":"Izvoz PDF-a je počeo","PDF export successful":"Izvoz PDF-a je uspeo"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t){const e=t.sv=t.sv||{};e.dictionary=Object.assign(e.dictionary||{},{"An error occurred while generating the PDF.":"Ett fel uppstod medan PDF:en skapades.","Export to PDF":"Exportera till PDF","Exporting PDF document":"Exporterar PDF-dokument","PDF export failed":"Export av PDF-dokument misslyckades","PDF export started":"Export av PDF-dokument påbörjad","PDF export successful":"Export av PDF-dokument klar"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t){const o=t.th=t.th||{};o.dictionary=Object.assign(o.dictionary||{},{"An error occurred while generating the PDF.":"เกิดข้อผิดพลาดขณะสร้าง PDF","Export to PDF":"ส่งออกเป็น PDF","Exporting PDF document":"กำลังส่งออกไฟล์ PDF","PDF export failed":"ส่งออกไฟล์ PDF ไม่สำเร็จ","PDF export started":"เริ่มการส่งออกไฟล์ PDF แล้ว","PDF export successful":"ส่งออกไฟล์ PDF สำเร็จ"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(a){const r=a.tr=a.tr||{};r.dictionary=Object.assign(r.dictionary||{},{"An error occurred while generating the PDF.":"PDF'i oluşturulurken bir hata oluştu.","Export to PDF":"PDF'ye çıkar","Exporting PDF document":"PDF belgesi dışa aktarılıyor","PDF export failed":"PDF dışa aktarılamadı","PDF export started":"PDF dışa aktarımı başladı","PDF export successful":"PDF dışa aktarımı başarılı"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t){const o=t.ug=t.ug||{};o.dictionary=Object.assign(o.dictionary||{},{"An error occurred while generating the PDF.":"PDF كە چىقىرىۋاتقاندا بىر خاتالىق كۆرۈلدى.","Export to PDF":"PDF كە چىقار","Exporting PDF document":"","PDF export failed":"","PDF export started":"","PDF export successful":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t){const o=t.uk=t.uk||{};o.dictionary=Object.assign(o.dictionary||{},{"An error occurred while generating the PDF.":"Під час створення PDF-файлу сталася помилка.","Export to PDF":"Експортувати в PDF","Exporting PDF document":"Експорт PDF-документа","PDF export failed":"Не вдалось експортувати PDF-файл","PDF export started":"Розпочато експорт PDF-файла","PDF export successful":"Успішно експортовано PDF-файл"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(r){const t=r.ur=r.ur||{};t.dictionary=Object.assign(t.dictionary||{},{"An error occurred while generating the PDF.":"پی ڈی ایف بنانے میں نقص واقع ہوا۔","Export to PDF":"پی ڈی ایف برآمد","Exporting PDF document":"","PDF export failed":"","PDF export started":"","PDF export successful":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t){const i=t.vi=t.vi||{};i.dictionary=Object.assign(i.dictionary||{},{"An error occurred while generating the PDF.":"Đã xảy ra lỗi khi tạo tệp PDF.","Export to PDF":"Xuất ra định dạng PDF","Exporting PDF document":"Đang xuất tài liệu PDF","PDF export failed":"Không xuất được tài liệu PDF","PDF export started":"Đã bắt đầu xuất tài liệu PDF","PDF export successful":"Đã xuất tài liệu PDF thành công"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t){const n=t["zh-cn"]=t["zh-cn"]||{};n.dictionary=Object.assign(n.dictionary||{},{"An error occurred while generating the PDF.":"生成PDF时发生了异常。","Export to PDF":"导出为PDF","Exporting PDF document":"正在导出 PDF 文档","PDF export failed":"PDF 导出失败","PDF export started":"PDF 导出开始","PDF export successful":"PDF 导出成功"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t){const o=t.zh=t.zh||{};o.dictionary=Object.assign(o.dictionary||{},{"An error occurred while generating the PDF.":"產生 PDF 時發生錯誤。","Export to PDF":"匯出為 PDF","Exporting PDF document":"正在匯出 PDF 文件","PDF export failed":"PDF 匯出失敗","PDF export started":"PDF 匯出開始","PDF export successful":"PDF 匯出成功"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"plugins": [
|
|
3
|
+
{
|
|
4
|
+
"name": "Export to PDF",
|
|
5
|
+
"className": "ExportPdf",
|
|
6
|
+
"description": "Allows for generating a PDF file directly from the editor content (printing content to the PDF format).",
|
|
7
|
+
"docs": "features/converters/export-pdf.html",
|
|
8
|
+
"path": "src/exportpdf.js",
|
|
9
|
+
"requires": [
|
|
10
|
+
"CloudServices"
|
|
11
|
+
],
|
|
12
|
+
"uiComponents": [
|
|
13
|
+
{
|
|
14
|
+
"type": "Button",
|
|
15
|
+
"name": "exportPdf",
|
|
16
|
+
"iconPath": "theme/icons/exportpdf.svg"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
import type { ExportPdfConfig, ExportPdf, ExportPdfCommand } from './index.js';
|
|
10
|
+
declare module '@ckeditor/ckeditor5-core' {
|
|
11
|
+
interface EditorConfig {
|
|
12
|
+
/**
|
|
13
|
+
* The configuration of the {@link module:export-pdf/exportpdf~ExportPdf export to PDF feature}.
|
|
14
|
+
*
|
|
15
|
+
* Read more in {@link module:export-pdf/exportpdf~ExportPdfConfig}.
|
|
16
|
+
*/
|
|
17
|
+
exportPdf?: ExportPdfConfig;
|
|
18
|
+
}
|
|
19
|
+
interface PluginsMap {
|
|
20
|
+
[ExportPdf.pluginName]: ExportPdf;
|
|
21
|
+
}
|
|
22
|
+
interface CommandsMap {
|
|
23
|
+
exportPdf: ExportPdfCommand;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module export-pdf/exportpdf
|
|
11
|
+
* @publicApi
|
|
12
|
+
*/
|
|
13
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
14
|
+
import { Notification } from 'ckeditor5/src/ui.js';
|
|
15
|
+
import type { InitializedToken, TokenUrl } from '@ckeditor/ckeditor5-cloud-services';
|
|
16
|
+
import ExportPdfUI from './exportpdfui.js';
|
|
17
|
+
/**
|
|
18
|
+
* The export to PDF feature.
|
|
19
|
+
*
|
|
20
|
+
* It allows you to generate a PDF file directly from the editor content.
|
|
21
|
+
*
|
|
22
|
+
* For a detailed overview, check the {@glink features/converters/export-pdf export to PDF} feature documentation.
|
|
23
|
+
*/
|
|
24
|
+
export default class ExportPdf extends Plugin {
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
static get pluginName(): "ExportPdf";
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
static get isOfficialPlugin(): true;
|
|
33
|
+
/**
|
|
34
|
+
* @inheritDoc
|
|
35
|
+
*/
|
|
36
|
+
static get isPremiumPlugin(): true;
|
|
37
|
+
/**
|
|
38
|
+
* @inheritDoc
|
|
39
|
+
*/
|
|
40
|
+
static get requires(): readonly ["CloudServices", typeof Notification, typeof ExportPdfUI];
|
|
41
|
+
/**
|
|
42
|
+
* @inheritDoc
|
|
43
|
+
*/
|
|
44
|
+
init(): void;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The configuration of the export to PDF feature. It is used by the PDF export features from the `@ckeditor/ckeditor5-export-pdf` package.
|
|
48
|
+
*
|
|
49
|
+
* ```ts
|
|
50
|
+
* ClassicEditor
|
|
51
|
+
* .create( editorElement, {
|
|
52
|
+
* exportPdf: ... // Export to PDF feature options.
|
|
53
|
+
* } )
|
|
54
|
+
* .then( ... )
|
|
55
|
+
* .catch( ... );
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
59
|
+
*/
|
|
60
|
+
export interface ExportPdfConfig {
|
|
61
|
+
/**
|
|
62
|
+
* Paths to the `.css` files containing additional styling for the editor's content (**the order of provided items matters**).
|
|
63
|
+
*
|
|
64
|
+
* ```ts
|
|
65
|
+
* const exportPdfConfig = {
|
|
66
|
+
* stylesheets: [ './path/to/custom-style.css' ]
|
|
67
|
+
* }
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* **NOTE:** If `stylesheets` are not provided, the plugin will sent only
|
|
71
|
+
* {@glink getting-started/setup/css the default editor content styles}
|
|
72
|
+
* to the converter.
|
|
73
|
+
*
|
|
74
|
+
* **Default editor's content styles**:
|
|
75
|
+
* {@glink getting-started/setup/css The default editor content styles}
|
|
76
|
+
* are applied to the generated PDF thanks to the `'EDITOR_STYLES'` token, which is provided to the `stylesheets` by default.
|
|
77
|
+
* If you don't want them to be applied, you have to omit the token:
|
|
78
|
+
*
|
|
79
|
+
* **NOTE:** The `'EDITOR_STYLES'` string is only supported in legacy custom builds with webpack or DLLs.
|
|
80
|
+
* In other setups you always need to pass the stylesheets.
|
|
81
|
+
*
|
|
82
|
+
* ```ts
|
|
83
|
+
* const exportPdfConfig = {
|
|
84
|
+
* stylesheets: [ './path/to/custom-editor-styles.css' ]
|
|
85
|
+
* }
|
|
86
|
+
* ```
|
|
87
|
+
*
|
|
88
|
+
* **Web fonts:** If you want to {@glink features/converters/export-pdf#providing-web-font-styles use web fonts} in your PDF document,
|
|
89
|
+
* you should provide a path to the file containing the web font declaration before the `'EDITOR_STYLES'` token and other style sheets:
|
|
90
|
+
*
|
|
91
|
+
* ```ts
|
|
92
|
+
* const exportPdfConfig = {
|
|
93
|
+
* stylesheets: [
|
|
94
|
+
* './path/to/fonts.css'
|
|
95
|
+
* './path/to/editor-styles.css',
|
|
96
|
+
* ]
|
|
97
|
+
* }
|
|
98
|
+
* ```
|
|
99
|
+
*
|
|
100
|
+
* **Web fonts and custom styling:** For more advanced styling, your configuration should look like this:
|
|
101
|
+
*
|
|
102
|
+
* ```ts
|
|
103
|
+
* const exportPdfConfig = {
|
|
104
|
+
* stylesheets: [
|
|
105
|
+
* './path/to/fonts.css',
|
|
106
|
+
* './path/to/editor-styles.css',
|
|
107
|
+
* './path/to/custom-styles.css'
|
|
108
|
+
* ]
|
|
109
|
+
* }
|
|
110
|
+
* ```
|
|
111
|
+
*
|
|
112
|
+
* @default `[ 'EDITOR_STYLES' ]`
|
|
113
|
+
*/
|
|
114
|
+
stylesheets?: Array<string>;
|
|
115
|
+
/**
|
|
116
|
+
* The name of the generated PDF file.
|
|
117
|
+
*
|
|
118
|
+
* ```ts
|
|
119
|
+
* // Static file name.
|
|
120
|
+
* const exportPdfConfig = {
|
|
121
|
+
* fileName: 'my-document.pdf'
|
|
122
|
+
* }
|
|
123
|
+
*
|
|
124
|
+
* // Dynamic file name.
|
|
125
|
+
* const exportPdfConfig = {
|
|
126
|
+
* fileName: () => {
|
|
127
|
+
* const articleTitle = document.querySelector( '#title' );
|
|
128
|
+
*
|
|
129
|
+
* return `${ articleTitle.value }.pdf`;
|
|
130
|
+
* }
|
|
131
|
+
* }
|
|
132
|
+
* ```
|
|
133
|
+
*
|
|
134
|
+
* **NOTE:** The file name must contain the `.pdf` extension.
|
|
135
|
+
* Otherwise your operating system or device may have trouble identifying the file type.
|
|
136
|
+
*
|
|
137
|
+
* @default 'document.pdf'
|
|
138
|
+
*/
|
|
139
|
+
fileName?: string | (() => string);
|
|
140
|
+
/**
|
|
141
|
+
* A URL to the HTML to PDF converter.
|
|
142
|
+
*
|
|
143
|
+
* ```ts
|
|
144
|
+
* const exportPdfConfig = {
|
|
145
|
+
* converterUrl: 'https://myconverter.com/v1/'
|
|
146
|
+
* }
|
|
147
|
+
* ```
|
|
148
|
+
*
|
|
149
|
+
* **NOTE:** The plugin uses the default HTML to PDF converter delivered by CKEditor Cloud Services.
|
|
150
|
+
* You can provide a URL to an on-premises converter instead.
|
|
151
|
+
*
|
|
152
|
+
* @default 'https://pdf-converter.cke-cs.com/v1/convert'
|
|
153
|
+
*/
|
|
154
|
+
converterUrl?: string;
|
|
155
|
+
/**
|
|
156
|
+
* The HTML to PDF converter options.
|
|
157
|
+
*
|
|
158
|
+
* **NOTE:** Configuring the plugin is not mandatory but it is highly recommended,
|
|
159
|
+
* especially if you want to get the most accurate results when generating the PDF file.
|
|
160
|
+
* To learn more, please check the [HTML to PDF converter configuration](https://pdf-converter.cke-cs.com/docs).
|
|
161
|
+
*
|
|
162
|
+
* ```ts
|
|
163
|
+
* const exportPdfConfig = {
|
|
164
|
+
* converterOptions: {
|
|
165
|
+
* ...
|
|
166
|
+
* }
|
|
167
|
+
* }
|
|
168
|
+
* ```
|
|
169
|
+
*
|
|
170
|
+
* @default `{
|
|
171
|
+
* format: 'A4',
|
|
172
|
+
* margin_top: '0',
|
|
173
|
+
* margin_bottom: '0',
|
|
174
|
+
* margin_right: '0',
|
|
175
|
+
* margin_left: '0',
|
|
176
|
+
* page_orientation: 'portrait',
|
|
177
|
+
* header_html: undefined,
|
|
178
|
+
* footer_html: undefined,
|
|
179
|
+
* header_and_footer_css: undefined,
|
|
180
|
+
* wait_for_network: true,
|
|
181
|
+
* wait_time: 0
|
|
182
|
+
* }`
|
|
183
|
+
*/
|
|
184
|
+
converterOptions?: ExportPdfConverterOptions;
|
|
185
|
+
/**
|
|
186
|
+
* A function to gather the HTML to be converted to PDF.
|
|
187
|
+
*
|
|
188
|
+
* **NOTE:** This option may be useful when the editor does not have `getData()` method,
|
|
189
|
+
* or if the HTML to be converted should be different than the edited one.
|
|
190
|
+
*
|
|
191
|
+
* ```ts
|
|
192
|
+
* const exportPdfConfig = {
|
|
193
|
+
* dataCallback: ( editor: Editor ) => {
|
|
194
|
+
* return `
|
|
195
|
+
* <header id="header">${ editor.data.get( { rootName: 'header' } ) }</header>
|
|
196
|
+
* <div id="content">${ editor.data.get( { rootName: 'content' } ) }</div>
|
|
197
|
+
* `;
|
|
198
|
+
* }
|
|
199
|
+
* }
|
|
200
|
+
* ```
|
|
201
|
+
*
|
|
202
|
+
* @default `( editor: Editor ) => editor.getData()`
|
|
203
|
+
*/
|
|
204
|
+
dataCallback?: (editor: Editor) => string;
|
|
205
|
+
/**
|
|
206
|
+
* A token URL or a token request function. This field is optional and should be used only when a different `tokenUrl` is required for
|
|
207
|
+
* the export to PDF feature.
|
|
208
|
+
*
|
|
209
|
+
* **Note:** The token can be disabled with the `false` value provided.
|
|
210
|
+
*
|
|
211
|
+
* See: {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig#tokenUrl}
|
|
212
|
+
*/
|
|
213
|
+
tokenUrl?: TokenUrl | false;
|
|
214
|
+
/**
|
|
215
|
+
* The authentication token.
|
|
216
|
+
*
|
|
217
|
+
* See: {@link module:cloud-services/cloudservices~CloudServices#token}
|
|
218
|
+
*/
|
|
219
|
+
token?: InitializedToken;
|
|
220
|
+
/**
|
|
221
|
+
* The application unique identifier.
|
|
222
|
+
*/
|
|
223
|
+
appID?: string;
|
|
224
|
+
}
|
|
225
|
+
export type ExportPdfConverterOptions = {
|
|
226
|
+
format?: 'Letter' | 'Legal' | 'Tabloid' | 'Ledger' | 'A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6' | string & Record<never, never>;
|
|
227
|
+
margin_top?: string;
|
|
228
|
+
margin_bottom?: string;
|
|
229
|
+
margin_right?: string;
|
|
230
|
+
margin_left?: string;
|
|
231
|
+
header_html?: string;
|
|
232
|
+
footer_html?: string;
|
|
233
|
+
header_and_footer_css?: string;
|
|
234
|
+
page_orientation?: 'portrait' | 'landscape' | string & Record<never, never>;
|
|
235
|
+
wait_for_network?: boolean;
|
|
236
|
+
wait_time?: number;
|
|
237
|
+
merge_fields?: {
|
|
238
|
+
prefix: string;
|
|
239
|
+
suffix: string;
|
|
240
|
+
data: Record<string, string>;
|
|
241
|
+
};
|
|
242
|
+
};
|