File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 13
13
## Install
14
14
15
15
``` bash
16
+ wget -N https://github.com/pdf2htmlEX/pdf2htmlEX/releases/download/v0.18.8.rc1/pdf2htmlEX-0.18.8.rc1-master-20200630-Ubuntu-bionic-x86_64.deb -O pdf2htmlEX.deb
17
+ sudo apt install ./pdf2htmlEX.deb
16
18
npm install hexo-renderer-pdf
17
19
```
18
20
19
21
## Usage
20
22
21
23
``` yaml
22
24
render_pdf :
23
- args : [] # pdf2htmlEX additional arguments
25
+ args : ['--process-outline', '0' ] # pdf2htmlEX additional arguments
24
26
wrapWithIframe : true # Whether to wrap the pdf with an iframe
27
+ wrapHtml : |
28
+ <html>
29
+ <head>
30
+ <style>body{margin:0;overflow:hidden;}</style>
31
+ <style>::-webkit-scrollbar{display:none;}</style>
32
+ <title>%s</title>
33
+ <meta charset='utf-8'>
34
+ <meta name="description" content="%s">
35
+ <meta name="keywords" content="%s">
36
+ <meta name="author" content="%s">
37
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
38
+ </head>
39
+ <body>
40
+ <iframe scrolling="no" style='overflow:hidden; display:block; border:none; height:100vh; width:100%;' srcdoc='%s'></iframe>
41
+ </body>
42
+ </html>
25
43
` ` `
26
44
27
45
[build-img]:https://github.com/34j/hexo-renderer-pdf/actions/workflows/release.yml/badge.svg
You can’t perform that action at this time.
0 commit comments