简体   繁体   中英

How to create popup window inside in pdf also place textbox fields in this pdf using itextsharp

We have crating pdf dynamically with the help of itextsharp.Now I want to show popup window on button click with the help of JavaScript fuction.How we can create this window in pdf.

You can use the window.open() method to create a popup in javascript, including a link in the url parameter, along with the name and any optional parameters.

<button class="popup" onclick="createPopup()"/>

function createPopup(url, name) {
  let popup = open(url, name, 'width=500,height=500')
  popup.focus();
}

You can then use window.opener() to return values from the popup to the parent.

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM