PDF view in browser and export as file - PHP

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 22

  • @sahali1448
    @sahali1448 Рік тому

    Osam vidio

  • @PanosAnas7
    @PanosAnas7 4 роки тому

    Hi, nice video. Can the opposite be done? I have a pdf fillable file, already filled, and i want to extract the text fields from the pdf to a mySQL database.
    Thank you

    • @AdnanAfzal565
      @AdnanAfzal565  4 роки тому

      Hi. Thanks for liking.
      There is already a library created for this. You can use this:
      github.com/spatie/pdf-to-text

  • @mdniloy6582
    @mdniloy6582 Рік тому

    Nc

  • @SamanWithanage
    @SamanWithanage 3 роки тому

    This is very helpful thank you very much.. Please do many videos. How I can make different pages for each employee in single PDF file? Can you please explain ....

    • @AdnanAfzal565
      @AdnanAfzal565  3 роки тому

      You can use this to create a new page:
      $pdf->AddPage();

  • @jimabd3928
    @jimabd3928 5 років тому

    very useful video, thanks

  • @anatya
    @anatya 4 роки тому

    thank you

  • @phyothiha4187
    @phyothiha4187 4 роки тому

    It is showing for me like that Warning: Cannot modify header information - headers already sent by .

    • @AdnanAfzal565
      @AdnanAfzal565  4 роки тому

      Are you already using header() function ?

  • @maroamatiko2718
    @maroamatiko2718 2 роки тому

    How can I fetch students images from database and display on student grades report card?

    • @AdnanAfzal565
      @AdnanAfzal565  2 роки тому

      Its very easy. You can follow this:
      ua-cam.com/video/crtwSmleWMA/v-deo.html

  • @shahindomar3958
    @shahindomar3958 4 роки тому

    Sir, Can You Tell Me ,How i can used Change Language Bangla,

    • @AdnanAfzal565
      @AdnanAfzal565  4 роки тому +1

      If you are asking for Bangladeshi language, then it will work fine.

    • @shahindomar3958
      @shahindomar3958 4 роки тому +1

      @@AdnanAfzal565 Can You Know How it Work Fine?

    • @AdnanAfzal565
      @AdnanAfzal565  4 роки тому +1

      @@shahindomar3958 Yes, because there is no such limitation in the FPDF library.

  • @hilleleddineelhakim9493
    @hilleleddineelhakim9493 5 років тому

    Webslosson

  • @sigmasystems2755
    @sigmasystems2755 4 роки тому

    For me everything works until I have to download to the user's computer (Downloads Folder)
    Error Message
    Warning: file_put_contents(Invoice.pdf): failed to open stream: Resource temporarily unavailable in C:\xampp\htdocs\flex2\Libraries\fpdf181\fpdf.php on line 1021
    Fatal error: Uncaught Exception: FPDF error: Unable to create output file: Invoice.pdf in C:\xampp\htdocs\flex2\Libraries\fpdf181\fpdf.php:271 Stack trace: #0 C:\xampp\htdocs\flex2\Libraries\fpdf181\fpdf.php(1022): FPDF->Error('Unable to creat...') #1 C:\xampp\htdocs\flex2\pdf\index.php(84): FPDF->Output('F', 'Invoice.pdf') #2 {main} thrown in C:\xampp\htdocs\flex2\Libraries\fpdf181\fpdf.php on line 271
    I THINK THE ISSUE IS ON THE BELOW CODE ::::
    header("Content-type: application/pdf");
    header("Content-disposition: attachment; filename = Invoice.pdf");
    readFile("Invoice.pdf");
    unlink("Invoice.pdf");
    Please Help