@@ -1453,7 +1453,6 @@ export const multiSignEmbed = async (widgets, pdfDoc, signyourself, scale) => {
1453
1453
if ( position ?. options ?. values . length > 0 ) {
1454
1454
position ?. options ?. values . forEach ( ( item , ind ) => {
1455
1455
const checkboxRandomId = "checkbox" + randomId ( ) ;
1456
-
1457
1456
if (
1458
1457
position ?. options ?. response &&
1459
1458
position ?. options ?. response ?. length > 0
@@ -1505,8 +1504,6 @@ export const multiSignEmbed = async (widgets, pdfDoc, signyourself, scale) => {
1505
1504
} ) ;
1506
1505
}
1507
1506
} else if ( widgetTypeExist ) {
1508
- const fontSize = position ?. options ?. fontSize || 12 ;
1509
- parseInt ( fontSize ) ;
1510
1507
let textContent ;
1511
1508
if ( position ?. options ?. response ) {
1512
1509
textContent = position . options ?. response ;
@@ -1541,7 +1538,6 @@ export const multiSignEmbed = async (widgets, pdfDoc, signyourself, scale) => {
1541
1538
// Function to break text into lines based on when user go next line on press enter button
1542
1539
const breakTextIntoLines = ( textContent , width ) => {
1543
1540
const lines = [ ] ;
1544
-
1545
1541
for ( const word of textContent . split ( "\n" ) ) {
1546
1542
const lineWidth = font . widthOfTextAtSize ( `${ word } ` , fontSize ) ;
1547
1543
//checking string length to container width
@@ -1583,7 +1579,6 @@ export const multiSignEmbed = async (widgets, pdfDoc, signyourself, scale) => {
1583
1579
y += 18 ; // Adjust the line height as needed
1584
1580
}
1585
1581
} else if ( position . type === "dropdown" ) {
1586
- const fontsize = parseInt ( position ?. options ?. fontSize ) || 12 ;
1587
1582
const dropdownRandomId = "dropdown" + randomId ( ) ;
1588
1583
const dropdown = form . createDropdown ( dropdownRandomId ) ;
1589
1584
dropdown . addOptions ( position ?. options ?. values ) ;
@@ -1598,10 +1593,10 @@ export const multiSignEmbed = async (widgets, pdfDoc, signyourself, scale) => {
1598
1593
// - `FontSize` is the size you want to set (e.g., 12)
1599
1594
// - `Tf` specifies the font and size
1600
1595
// - `0 g` sets the text color to black
1601
- const defaultAppearance = `/Helv ${ fontsize } Tf 0 g` ;
1596
+ const defaultAppearance = `/Helv ${ fontSize } Tf 0 g` ;
1602
1597
// Set the default appearance for the dropdown field
1603
1598
dropdown . acroField . setDefaultAppearance ( defaultAppearance ) ;
1604
- dropdown . setFontSize ( fontsize ) ;
1599
+ dropdown . setFontSize ( fontSize ) ;
1605
1600
const dropdownObj = {
1606
1601
x : xPos ( position ) ,
1607
1602
y : yPos ( position ) ,
0 commit comments