-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing gradient stop (regression) #1045
Labels
Comments
alafr
changed the title
Missing label stop (regression)
Missing gradient stop (regression)
Nov 2, 2019
blikblum
added a commit
that referenced
this issue
Nov 16, 2019
Fixed by 4d8de91 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
The last gradient stop is missing in PDF files produced with PDFKIT v0.10.0, in gradients with more than 2 stops. It was working fine before the coffeescript to javascript conversion.
Description of the problem
Version 0.10.0 (wrong)
Version 0.8.3 (correct)
Code sample
let doc = new PDFDocument({compress:false});
// Create a linear gradient
let grad1 = doc.linearGradient(0, 0, 300, 0);
grad1.stop(0, 'green')
.stop(0.5, 'red')
.stop(1, 'green');
doc.rect(0, 0, 300, 300)
.fill(grad1);
Your environment
The text was updated successfully, but these errors were encountered: