Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

basic drawLine feature missing #164

Closed
samezyane opened this issue Aug 21, 2019 · 2 comments · Fixed by #201
Closed

basic drawLine feature missing #164

samezyane opened this issue Aug 21, 2019 · 2 comments · Fixed by #201

Comments

@samezyane
Copy link

Basic functionality to draw a line is missing in the PDFPage object.
Can workaround it by using 'drawRect' but it should not be the normal way of doing it.

Great library though and very promising!
Many thanks.

@Hopding
Copy link
Owner

Hopding commented Aug 23, 2019

Hello @samezyane! I agree that it would be useful for the PDFPage class to have a drawLine method. If anybody would like to work on this, I'd be happy to accept a PR for it!

@Hopding
Copy link
Owner

Hopding commented Sep 25, 2019

Version 1.1.1 is now published. It contains the PDFPage.drawLine() method. The full release notes are available here.

You can install this new version with npm:

npm install pdf-lib@1.1.1

It's also available on unpkg:

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants