Closed alexbrazier closed 6 months ago
Added more text rendering options to add text stroke
page5.drawText('This text is outlined', { x: 30, y: 80, font: helveticaFont, color: hotPink, strokeColor: blue, strokeWidth: 1.5, renderMode: TextRenderingMode.FillAndOutline, }); page5.drawText('Outline only', { x: 30, y: 10, font: helveticaFont, strokeColor: hotPink, strokeWidth: 1.5, renderMode: TextRenderingMode.Outline, });
Issues like this: https://github.com/Hopding/pdf-lib/issues/763
Used manually on https://github.com/squareda/pdf-print-marks/blob/main/src/addMetadata.ts#L16 to add outlined text so it's more visible on unknown backgrounds
Added test to render some outlined text
No
Yes
Released in v1.21.1
Thanks a lot for your contribution!
What?
Added more text rendering options to add text stroke
Why?
Issues like this: https://github.com/Hopding/pdf-lib/issues/763
Used manually on https://github.com/squareda/pdf-print-marks/blob/main/src/addMetadata.ts#L16 to add outlined text so it's more visible on unknown backgrounds
How?
Testing?
Added test to render some outlined text
New Dependencies?
No
Screenshots
Suggested Reading?
Yes
Anything Else?
Checklist