@signiphi/page-assembly 0.2.0-beta.15 → 0.2.0-beta.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/styles/index.css +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1855,7 +1855,7 @@ async function addFormFieldsToPdf(pdfBytes, formFields, options = {}) {
|
|
|
1855
1855
|
} catch {
|
|
1856
1856
|
}
|
|
1857
1857
|
if (drawLabels) {
|
|
1858
|
-
const fontSize = Math.max(1,
|
|
1858
|
+
const fontSize = Math.max(1, field.position.height * 0.4);
|
|
1859
1859
|
const labelX = pdfX + field.position.width + 5;
|
|
1860
1860
|
const labelY = pdfY + (field.position.height - fontSize) / 2;
|
|
1861
1861
|
page.pushOperators(
|