I have the following code that partially matches my HTML page.
<script> function close() { MainJavaScript(); } function MainJavaScript() { </script> <a href="javascript:close()">Submit</a> <table> <tr> <td width="55%"> <div class="first"> <div class="contact-info"> <h3><img id="displayPic" src="" alt=""></h3> </div> </div> </td> <td width="40%"> <div> <h1><font color="#003893" face="Georgia">Cu Vi</font></h1> <h2><span id="FullName"></span></h2> </div> </td> </tr> </table>
When I click the Submit button, displayPic and FullName are replaced with the corresponding values ββusing the MainJavascript function. What I want to do is create a PDF file from the output, but unfortunately all the DLLs and the method I found require me to output the HTML file and then convert it to PDF, but since it uses JavaScript, the source always empty, but the display changes after pressing a button.
How can I achieve what I am looking for, converts output to PDF?
javascript html css pdf
SearchForKnowledge Aug 01 '14 at 14:24 2014-08-01 14:24
source share