How to use pdfh5 - 1 common examples

To help you get started, we’ve selected a few pdfh5 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gjTool / pdfh5 / example / pdfh5-vue / src / App.vue View on Github external
mounted() {
    //实例化
    this.pdfh5 = new Pdfh5("#demo", {
      pdfurl: "//www.gjtool.cn/pdfh5/git.pdf",
      renderType:"canvas",
      lazy:true
    });
    //监听完成事件
    this.pdfh5.on("complete", function(status, msg, time) {
      console.log(
        "状态:" +
          status +
          ",信息:" +
          msg +
          ",耗时:" +
          time +
          "毫秒,总页数:" +
          this.totalNum
      );

pdfh5

JS plugin of preview PDF for mobile. web/h5/移动端PDF预览手势缩放插件

MIT
Latest version published 10 months ago

Package Health Score

58 / 100
Full package analysis

Popular pdfh5 functions