Jump to content

Search the Community

Showing results for tags 'PDF'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








Found 13 results

  1. <button type="button" class="buttonvid" data-bs-toggle="tooltip" data-bs-placement="right" data-toggle="modal" data-target="#videoModal" data-video="https://drive.google.com/file/d/14Fqgvu07CIAkSp_IP_42e53rRh2Lxv_6/view?usp=sharing"> Watch&nbsp;<i class="fa fa-file-pdf-o" aria-hidden="true"></i></button> <!-- Modal --> <div class="modal fade" id="videoModal" tabindex="-1" role="dialog"> <div class="modal-dialog modal-dialog-centered modal-lg" role="document"> <div class="modal-content"> <div class="modal-header bg-dark border-dark"> <button type="button" class="close text-white" data-dismiss="modal">&times;</button> </div> <div class="modal-body bg-dark p-0"> <div class="embed-responsive embed-responsive-16by9"> <iframe class="embed-responsive-item" allowfullscreen></iframe> </div> </div> </div> </div> </div> <script> $(document).ready(function() { // Set iframe attributes when the show instance method is called $("#videoModal").on("show.bs.modal", function(event) { let button = $(event.relatedTarget); // Button that triggered the modal let url = button.data("video"); // Extract url from data-video attribute console.log(url) $(this).find("iframe").attr({ src : url, allow : "accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" }); }); // Remove iframe attributes when the modal has finished being hidden from the user $("#videoModal").on("hidden.bs.modal", function() { $("#videoModal iframe").removeAttr("src allow"); }); }); </script> The link "https://drive.google.com/file/d/14Fqgvu07CIAkSp_IP_42e53rRh2Lxv_6/view?usp=sharing" is opening via browser but shows "Forbidden Error 403" when opened via modal
  2. Hey guys, EDIT: I have been looking on the web to find a way to automatically download a pdf when a page opens, without user having to click a link. However, no solution found (at least which i can get to work...) Help is much appreciated!! Thanks guys!
  3. Hi! I've been learning HTML with w3schools and I really like it! Is there a version of w3schools in pdf format? Thank you!
  4. How can I display my PDF file via my web site and make clearly readable to the users
  5. Hello, for the longest time we were using FPDF to generate our pdf invoices. We recently upgraded to TCPDF and noticed we lost the bold font style. Our system admin says the font files are where they should be, in fact we can call $pdf->SetFont( 'Arial', 'BI', 10 ); and it is bold italic. Pass in 'I' and it is Italic but if we only pass in 'B' for bold, it display as normal font, no style. In the older FPDF, bold worked fine. Is there something we might be missing? We really need headers, certain labels and info to stand out in bold. Thank you for any help with this. Running the latest version of TCPDF on a Linux server. Thank you for any help with this.
  6. Hi, I need help. (for those who don't know how does Indian Numbering System work.. the basic idea is this: 10,00,00,000... first comma comes after three zeros which is a thousand and then after two zeros.. so there is no Hundred Thousand, a hundred thousand is called One Lakh... for more details, please read the wiki article on "Indian Numbering System") I managed to look around on internet and found myself a code which suited my need which was to convert a Number into Words with indian numbering sytem in a PDF form. It worked greatly until one day when I encountered a strange problem: After a particular calculation which gives the result 170080.00 and when I convert it to words.. the following conversion happens: "One Lakh Seventy Thousand and Seventy-Nine Rupees and One Hundred Paise Only"... instead of "One Lakh Seventy Thousand and Eighty Rupees only" (Actual result was 170080.27, from which I substracted 0.27 to round it off to 170080.00) =========== code is: function number2text(value) { var fraction = Math.round(frac(value)*100); var f_text = ""; if(fraction == 1) { f_text = " and "+convert_number(fraction)+" Paisa"; } if(fraction > 1) { f_text = " and "+convert_number(fraction)+" Paise"; } if (Math.floor(value) == 1) { return convert_number(value)+" Rupee"+f_text+" Only"; } else { return convert_number(value)+" Rupees"+f_text+" Only"; } } function frac(f) { return f % 1; } function convert_number(number) { if ((number < 0) || (number > 999999999)) { return "NUMBER TOO LARGE TO CONVERT!"; } var Gn = Math.floor(number / 10000000); /* Crore */ number -= Gn * 10000000; var kn = Math.floor(number / 100000); /* lakhs */ number -= kn * 100000; var Hn = Math.floor(number / 1000); /* thousand */ number -= Hn * 1000; var Dn = Math.floor(number / 100); /* Tens (deca) */ number = number % 100; /* Ones */ var tn= Math.floor(number / 10); var one=Math.floor(number % 10); var res = ""; if (Gn>0) { res += (convert_number(Gn) + " Crore"); } if (kn>0) { res += (((res=="") ? "" : " ") + convert_number(kn) + " Lakh"); } if (Hn>0) { res += (((res=="") ? "" : " ") + convert_number(Hn) + " Thousand"); } if (Dn) { res += (((res=="") ? "" : " ") + convert_number(Dn) + " Hundred"); } var ones = Array("", "One", "Two", "Three", "Four", "Five", "Six","Seven", "Eight", "Nine", "Ten", "Eleven", "Twelve", "Thirteen","Fourteen", "Fifteen", "Sixteen", "Seventeen", "Eighteen","Nineteen"); var tens = Array("", "", "Twenty", "Thirty", "Fourty", "Fifty", "Sixty","Seventy", "Eighty", "Ninety"); if (tn>0 || one>0) { if (!(res=="")) { res += " and "; } if (tn < 2) { res += ones[tn * 10 + one]; } else { res += tens[tn]; if (one>0) { res += ("-" + ones[one]); } } } if (res=="") { res = "Zero"; } return res; } ========================= Thanks!
  7. Hello all, I was experimenting with the <object> tag, putting one webpage inside another HTML document. I found that if I put a PDF in it appear just under 70% of its original size, .....even if I specify the height and width. <object src="folder/thumbnail.pdf" type="application/pdf" width="100" height="100"/> But if I put a PNG (of the same image, size unaltered) in another HTML document and call that in, it appears at 100%. <object data="page2.html" type="text/html"> alt : <a href="page2.html">page2.html</a> </object> ....WHY is this?
  8. Hello internet. My next task is to try and pull data from mysql using PHP and place that information into a table in a PDF file format. Everything I have found when I searched on the topic leads me to believe this is an extremely advanced form of coding and I am certainly not on that level. Is there software or something out there that you can point me to, to help create these PDF files from data in mysql?
  9. I've created a simple application (CGI) to display a .PDF document on a web page (using iframe) and an input field (or two). The PDFs are scanned documents that need a number assigned to them based on what is hand written on the document. The annoyance is: When I display this on the web page, the only way for the user to be able to access the input field is to click on it with the mouse. I know this might sound really simplistic, but is there any way to force the cursor to the input field so the user doesn't have to click it? The really annoying part of this is that you can't even use the tab key to get to the input field (because of adobe). The user typically has to do 100 or more at a time and bouncing back and forth between the mouse and keyboard gets old really fast. -Rick
  10. Hi W3Schools - Team, One Month ago, I decided to create my own homepage. During my studies at w3schools.com I sit in front of my laptop and read, change window, type, change window, read, change window, type... After one day I wish to have all references as pdf-document for printing, but I can't found anyone. So my suggestion:All refernces as PDF-document for printing.
  11. Hello everybody Im wondering how can you make page that displays every .jpg, .gif & .pdf files from directories on website table. Im not sure what coding language i have to use, but i think its mostly html. PHP & javascript code will be accepted too. Found solution after some research: http://www.brightcherry.co.uk/scribbles/php-list-all-files-in-a-directory/
  12. On the folder where i upload the pdf, the code to view it is this however i believe the code to view it on the other folder on the serve would be but it is not working can someone help please
  13. I have a question, we are creating a form that is currently a PDF document found on our website. We are creating a web based version of the form. I would like to know if the ability to print the form as a PDF once it is filled in by a user is a JavaScript command. If so if anyone can help with the scripting that makes that happen would be great, as well as any pointers as to how to control any formatting in the printed PDF that will be rendered. Thank you in advance for any assistance you can offer. For reference as to what we would like the form to resemble when printed a copy of the current form can be found at: http://spo.usu.edu/files/uploads/SP-01.pdf
  • Create New...