You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I tryed to draw a text with the x position was bigger than the width of the doc's page, a infinit loop occured.
In fact, the width of the text is compute but it's negative.
An exemple of code:
var doc = new PDFDocument({ size: [200, 200]});
var stream = doc.pipe(blobStream());
doc.save();
doc.scale(0.5,0.5);//doc size must be 400x400, not necessary even without the bug occured
doc.fontSize(10)
.text('Test', 300, 80);//x position is bigger than the width of the page (300 > 200)
doc.end();
stream.on('finish', function() {
iframe.src = stream.toBlobURL('application/pdf');
});
The text was updated successfully, but these errors were encountered:
When I tryed to draw a text with the x position was bigger than the width of the doc's page, a infinit loop occured.
In fact, the width of the text is compute but it's negative.
An exemple of code:
The text was updated successfully, but these errors were encountered: