When a sales order is created if the item contains a personalized image then the item’s personalized image pdf format should be saved in the sales order.
Create a transaction line field in the sales order item line for saving the image in pdf format.
here created a new transaction field called IMAGE PDF URL.

for this requirement need to update the script to getting the pdf url in sales order
var pdfimageUrl;
var pdfimageUrlArray = [];
var parentItemIdArr = [];
for (var i = 0; i < itemLineCount; i++) {
if(checkPersonalizedArray[i] == "T")
pdfimageUrl = 'https://formsfulfillment.liquifire.com/formsfulfillment?set=tempDevPath[artinagroup/]&set=CheckLayoutID[' + newLogoLayout[i] + '],prodID[' + parentItemIdArrnew[i] + '],checkColor[' + newcheckcolorArr[i] + '],version[print],view[single],panto[True],fontColor[' + newcompPerscolorArray[i] + '],defaultColor[%23000000],vectorizeLogo[False]&set=B1color1['
+ newcompPerscolorArray[i] + '],B1color2[' + newcompPerscolorArray[i] + '],B1color3[' + newcompPerscolorArray[i] + '],B1color4[' + newcompPerscolorArray[i] + '],B1color5[' + newcompPerscolorArray[i] + '],B1font1[' + newCompanyFontArr[i] + '],B1font2[' + newCompanyFontArr[i] + '],B1font3[' + newCompanyFontArr[i] + '],B1font4[' + newCompanyFontArr[i] + '],B1font5[' + newCompanyFontArr[i] +
'],B1linesize1[10],B1linesize2[8],B1linesize3[8],B1linesize4[8],B1linesize5[8],B1line1[' + companyNameArray[i] + '],B1line2[' + companyName2Array[i] + '],B1line3[' + companyName3Array[i] + '],B1line4[' + Addressline1Array[i] + '],B1line5[' + Addressline2Array[i] + '],B1logo1[' + checkImageArray[i] + '],block1[container1]&set=B2color1['
+ newbankPerscolorArray[i] + '],B2color2[' + newbankPerscolorArray[i] + '],B2color3[' + newbankPerscolorArray[i] + '],B2color4[' + newbankPerscolorArray[i] + '],B2font1[' + newBankFontArr[i] + '],B2font2[' + newBankFontArr[i] + '],B2font3[' + newBankFontArr[i] + '],B2font4[' + newBankFontArr[i] + '],B2linesize1[8],B2linesize2[8],B2linesize3[8],B2line1[' + banknameArray[i] + '],B2line2[' + bankadress1Array[i] + '],B2line3[' + bankadress2Array[i] + '],B2line4[' + bankadress3Array[i] +
'],block2[container2]&set=B3line1[' + checkStartNumArray[i] + '],block3[container3]&set=B4logo1[' + newezShieldArray[i] + '],block4[container4]&set=B5logo1[' + newnumSigLinesArray[i] + '],B5line1[' + impSigLinesArray[i] + '],block5[container5]&set=B6line1[' + titleSigLinesArray[i] + '],B6line2[' + sectitleSigLinesArray[i] + '],block6[container6],&set=Amount[' + '],AuxiliaryOnUS[C000' + checkStartNumArray[i] + 'C],OnUS[' + bankaccNumArray[i] + 'C],TransitNumber['
+ routNumArray[i] + '],block7[container7]&set=B8logo1[' + '],B8trackingvalue1[-19],B8line1[MP],block8[container8]&set=B104font1[' + newLogoFontArr[i] + '],B103font1[' + newLogoFontArr[i] + '],B104color1[' + newLogoPerscolorArray[i] + '],B103color1[' + newLogoPerscolorArray[i] + '],CSline1[' + checkBoxSubtabArray[i] + '],block104[container104]&set=tables[file:(%27global.tempDevPath%27)tables/]&set=apps[file:(%27global.tempDevPath%27)foundation/]&call=url[file:(%27global.tempDevPath%27)main]&sink=format[pdf],options[notrim]'
pdfimageUrlArray.push(pdfimageUrl);
}
else if ((checkPersonalizedArray[i] == "F")||(!checkPersonalizedArray[i])){
pdfimageUrlArray.push("null");
}
}
soRecord.setCurrentSublistValue({ //get item committed count
sublistId: 'item',
fieldId: 'custcol_jj_imgpdf_url',
value: pdfimageUrlArray[i],
ignoreFieldChange: true,
forceSyncSourcing: true
});
