foliojs / pdfkit

A JavaScript PDF generation library for Node and the browser
http://pdfkit.org/
MIT License
9.95k stars 1.16k forks source link

heightOfString renders the text #1284

Open vanoorschot opened 3 years ago

vanoorschot commented 3 years ago

Bug Report

The string within heightOfString is rendered on page if the previous doc.text has continued:true

Description of the problem

This should not happen.

Code sample

doc.text('abc', 0, 0, {continued: true});
doc.heightOfString('X')

https://replit.com/@Bobvan5/pdfkit-heightofstring-bug

Your environment

MohammedLahkime commented 1 year ago

I still have the same problem

gilad905 commented 3 months ago

me too