Skip to content

Commit 74d8d1d

Browse files
committed
docs(readme): update docs
1 parent 928140d commit 74d8d1d

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,33 @@
1313
## Install
1414

1515
```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
1618
npm install hexo-renderer-pdf
1719
```
1820

1921
## Usage
2022

2123
```yaml
2224
render_pdf:
23-
args: [] # pdf2htmlEX additional arguments
25+
args: ['--process-outline', '0'] # pdf2htmlEX additional arguments
2426
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>
2543
```
2644
2745
[build-img]:https://github.com/34j/hexo-renderer-pdf/actions/workflows/release.yml/badge.svg

0 commit comments

Comments
 (0)