galkahana / HummusJS

Node.js module for high performance creation, modification and parsing of PDF files and streams
http://www.pdfhummus.com
Other
1.14k stars 169 forks source link

Crash when used in electron #274

Open hl-a-k opened 6 years ago

hl-a-k commented 6 years ago

My electron App run well by use: yarn dev

but it crash after I built the app, and run it.

code cause crash:

 const HummusRecipe = require('hummus-recipe')
 const pdfDoc = new HummusRecipe('new', '/Users/zhouwenhan/workspace/yunmao/yunmao-kit/output4.pdf')
 pdfDoc
          // edit 1st page
 .createPage()
            // .text('Add some texts to an existing pdf file', 150, 300)
 .image(img, 150, 300)
 .overlay(pdf, 0, 0)
 .endPage()
 .endPDF()

I have use humus-recipe

 "rebuild": "electron-rebuild -f -w hummus-recipe"

 "dependencies": {
    "axios": "^0.16.1",
    "hummus-recipe": "^1.6.9",
    "vue": "^2.3.3",
    "vue-electron": "^1.0.6",
    "vue-router": "^2.5.3",
    "vuex": "^2.3.1"
  },

the crash log from MAC system:

yunmao-kit_2018-04-30-195058_zhoudeMacBook-Pro.crash.log

and my project is: https://github.com/hl-a-k/yunmao-kit

hl-a-k commented 6 years ago

This issue is cause by https://github.com/chunyenHuang/hummusRecipe I have create a new issue in that project. https://github.com/chunyenHuang/hummusRecipe/issues/33

can be close here.