# ie-pdf

> support IE Preview

Latest version **1.0.1** (published 2021-09-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install ie-pdf
pnpm add ie-pdf
yarn add ie-pdf
bun add ie-pdf
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; large bundle.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-09-30 |
| First published | 2021-09-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ankeji |
| Maintainers | ankeji |

## Links

- npm: https://www.npmjs.com/package/ie-pdf
- npm.io page: https://npm.io/package/ie-pdf

## Recent versions

- 1.0.1 (latest) — 2021-09-30
- 1.0.0 — 2021-09-30

## README

# 兼容ie的pdf预览（因为vue-pdf不支持ie浏览器）
###此方法结合iframe实现
### 下载包
```$xslt
npm install ie-pdf
```

### 适用方式
#### 先引入
```$xslt
const {pdfViewUrl} = require('ie-pdf')
```

### 在页面写载体
```$xslt
<iframe :src="src" frameborder="0" width="100%" height="600px"></iframe>
```

### 包装iframe的src
```$xslt
let src = pdfViewUrl('自己的url链接')
```

---
_Source: https://npm.io/package/ie-pdf · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
