Hi @sweetu ve ,
According to my research and testing, unfortunately, it is currently not possible to parse file ( pdf or doc or docx ) and populate the data into the corresponding control using jquery . We only can use the following code to get .docx file content.
function loadFile(url, callback) {
PizZipUtils.getBinaryContent(url, callback);
}
function gettext( ) {
loadFile(
"https://xxxxx/xxxx.docx",
function (error, content) {
if (error) {
throw error;
}
var zip = new PizZip(content);
var doc = new window.docxtemplater(zip);
var text = doc.getFullText();
console.log(text);
alert("Text is " + text);
}
);
}
More information for reference: https://stackoverflow.com/questions/28440170/get-docx-file-contents-using-javascript-jquery
Thanks for your understanding.
Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.