Open andreaswimmer opened 2 years ago
Number.MIN_VALUE
is 5-384. Assuming you're using millimeters, this line would become the new smallest observable thing in the universe!?
That said, I would consider this a bug. Looks like numberToString would need to be looked at.
What were you trying to do?
Drawing a line as thin as possible.
How did you attempt to do it?
What actually happened?
Results depend heavily on the PDF viewer. Chrome, Firefox and SumatraPDF have no problem reading the file.
Adobe Acrobat Reader, Adobe Acrobat Pro DC and PDF-Xchange editor have varying degrees of problems parsing the file. Either giving up, or skipping the rest of the current page.
What did you expect to happen?
Interestingly, drawing a line with silly values of thickness like 0 or 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 does work fine. It is only Number.MIN_VALUE that corrupts the file.
How can we reproduce the issue?
Version
1.17.1
What environment are you running pdf-lib in?
Browser
Checklist
Additional Notes
Here is the resulting file from the code above. semi-corrupted.pdf