'; const $title = $('.pdf-title'); let largeTitle = $title[0] == undefined ? "Belden" : $title[0].innerText; largeTitle = largeTitle.toString(); const htmlString = headersStyle + '

' + '

' + largeTitle + '

' + '

' + '

' + '
' + html + '
'; const formattedTitle = largeTitle.replace("'", "-"); jQuery.ajax({ url: '/api/Belden/ConvertToPDF/ConvertToPDF/DownloadPDF', type: 'POST', contentType: "application/json; charset=utf-8", data: JSON.stringify({ Html: htmlString, FileName: formattedTitle }), cache: false, success: function (data) { window.location = data; $('.pdf-converter').text('Convert To PDF'); }, error: function (jqXHR, status, err) { console.log("error in ajax call"); } }); } }); })(jQuery); });

Solutions

Global Leader in End-to-End Networking, Security & Connectivity Infrastructure Solutions

With a global network of distribution, installation & integration partners, Belden offers the resources & expertise to effectively meet customer deployment needs.