Skip to content
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

Handle line width of zero in SVG #10330

Merged
merged 1 commit into from
Dec 7, 2018

Conversation

janpe2
Copy link
Contributor

@janpe2 janpe2 commented Dec 4, 2018

Fixes #10282

In issue #10282, the SVG back-end doesn't draw stroked paths because the PDF file specifies a line width of 0. In PDF, zero denotes "the thinnest line that can be rendered" but in SVG the attribute stroke-width="0" causes no stroke to be painted. My patch makes the SVG back-end work in the same way as the canvas back-end, in which setting ctx.lineWidth to zero or a negative value is ignored.

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Dec 7, 2018

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/07087eb910fb967/output.txt

@timvandermeij timvandermeij merged commit 45c0197 into mozilla:master Dec 7, 2018
@timvandermeij
Copy link
Contributor

Looks good; thank you!

@janpe2 janpe2 deleted the svg-line-width-zero branch March 10, 2020 16:55
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.

3 participants