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

fix of svg pattern filling on pdfkit/pdfmake at minified version #159

Closed

Conversation

rafaeelneto
Copy link

the problem

The svg pattern filling isn't correctly draw when a pdf is created at production. The problem seems to be related to the if statement on docFillColor and docFillColor functions. The color parameter, when in production, has a different strutucture. The problem is reported at pdfMake/issue#1832

before

the conditional statement on docFillColor and docFillColor functions is currently like

if (color[0].constructor.name === 'PDFPattern')

after

i`ve added another condition to both if statements

if (color[0].constructor.name === 'PDFPattern' || color[0].dx)

@alafr
Copy link
Owner

alafr commented Aug 30, 2022

Close #159 as the issue #137 is fixed more cleanly with PR #168

@alafr alafr closed this Aug 30, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants