GithubHelp home page GithubHelp logo

jasonphillips / pdffiller-stream Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pdffillerjs/pdffiller

20.0 20.0 9.0 1.17 MB

Take an existing PDF Form and data and PDF Filler will create a new PDF with all given fields populated.

License: Other

JavaScript 100.00%

pdffiller-stream's People

Contributors

anperez78 avatar g3k0 avatar jaakkol avatar jasonphillips avatar johntayl avatar kevitan avatar madsnedergaard avatar mnort9 avatar msteinerweb avatar rhaseven7h avatar scotato avatar somombo avatar webtaculars avatar whitef0x0 avatar yoz avatar ztzven avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pdffiller-stream's Issues

UTF-8 NOT WORKING

Seems like UTF-8 (thai characters) not working well .. Is there anything missing from me

image

TypeError (Mac)

When i run in window ... its working fine ... but in mac its not working ...

I had already installed pdftk

pdfFiller.generateFDFTemplate(sourcePDF,` nameRegex).then((fdfData) => {
            console.log(fdfData);
        }).catch((err) => {
            console.log('error : '+err)
        });

Result = error : TypeError: spawn is not a function

Unable to fill form when using with aws lambda

I have having trouble using pdffiller with AWS lambda.

 Error: spawn EACCES
    at _errnoException (util.js:1022:11)
    at ChildProcess.spawn (internal/child_process.js:323:11)
    at exports.spawn (child_process.js:502:9)
    at exports.execFile (child_process.js:212:15)
    at Object.fillFormWithOptions (/var/task/node_modules/pdffiller-aws-lambda/index.js:129:13)
    at Promise (/var/task/handler.js:574:21)
    at new Promise (<anonymous>)
    at fillDocument (/var/task/handler.js:573:16)
    at module.exports.processDocument (/var/task/handler.js:626:27) code: 'EACCES', errno: 'EACCES', syscall: 'spawn' }

I am simply using fillFormWithOptions or fillForm function. The issue is with both of them.


pdfFiller.fillFormWithOptions(
            `https://unlockd-static-files.s3.us-east-2.amazonaws.com/${documentId}.pdf`,
            `/tmp/${listingId}_${documentId}.pdf`,
            values,
            false,
            "/tmp/",
            error => {
              if (!error) {
                resolve("Success. Pdf document is been process");
              } else {
                reject(error);
              }
            }
          );
        });

Any Help will be much appreciated.

Using it in AWS Lambda

Hi. I am trying to use the module to fill pdf from template in a Lambda function on AWS.

my template is located in /tmp as /tmp/template.pdf. and I verified with fs the file is there. But When I run pdffiller-stream.fillForm( tmpFile, filldata); I am getting an error

pdftk exec error: Error: Unable to find file.

Is this something you can help?

pdftk is loaded as part of my lambda as per this blog

https://lob.com/blog/aws-lambda-pdftk

Thanks.

Colin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.