多个pdf合并成单个操作
GitHub地址: https://github.com/wanghao0730/pdf-merge
npm i ahao-pdf-merge
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<!-- <script src="/dist/main.bundle.js?a=1" defer></script> -->
<script src="../dist/main.bundle.js"></script>
</head>
<body>
<pdf-view url='https://pdf-lib.js.org/assets/with_update_sections.pdf,https://pdf-lib.js.org/assets/with_update_sections.pdf,https://pdf-lib.js.org/assets/with_update_sections.pdf,https://pdf-lib.js.org/assets/dod_character.pdf' fileName="1"></pdf-view>
<button onclick="handlerDownload()">下载pdf1</button>
<script>
const pdfView = document.querySelector("pdf-view");
const video = document.querySelector("video");
function handlerDownload() {
pdfView.downLoad()
}
</script>
</body>
</html>