Pdfkit: Previously working, now not so much doc.text(string, x, y, {width: 10});

Created on 2 Nov 2017  路  5Comments  路  Source: foliojs/pdfkit

I've done some testing, and whenever the width: num, option is used, pdfkit crashes, (after a while of nothing). I'm currently using it on a node.js server.

bug word wrapping

Most helpful comment

I've a crash if text width < 13

All 5 comments

Trying to manually set the width in the interactive demo is also crashing the browser. Setting it to a higher number (in the thousands) is fine, but trying to set it to something lower than the default seems trigger a crash.

I've a crash if text width < 13

Looks like it fails into infinity loop if available width is less than 1 glyph. Any news on it?

I think this is solved with latest merge

Should be fixed by #987

Was this page helpful?
0 / 5 - 0 ratings

Related issues

balsamiqMichele picture balsamiqMichele  路  4Comments

cam-intel picture cam-intel  路  6Comments

oknoorap picture oknoorap  路  4Comments

michapixel picture michapixel  路  4Comments

alFReD-NSH picture alFReD-NSH  路  4Comments