Skip to content

Made stream parameter optional in create method#2

Open
rhwilr wants to merge 1 commit intoTynesideGroup:masterfrom
rhwilrForks:master
Open

Made stream parameter optional in create method#2
rhwilr wants to merge 1 commit intoTynesideGroup:masterfrom
rhwilrForks:master

Conversation

@rhwilr
Copy link

@rhwilr rhwilr commented Sep 11, 2018

I made a change to the create method and made the stream parameter optional.
This allows me to create a pdf and get the rendered pdf as a return. This way I can pass it to the put method on the Drive and store it for later use.

const pdf = PDF.create(content)
await Drive.put('hello.pdf', pdf)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant