Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9105183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T02:02:35+00:00 2026-06-17T02:02:35+00:00

I am doing a website using php , i need create a pdf doc

  • 0

I am doing a website using php , i need create a pdf doc from html page and attach that pdf doc in email. i have tried dompdf , but it didn’t works , it won’t shows the checkboxes and images, I am attaching my html pageenter image description here

The form contains a lot of checkboxes, selectionbox ,textarea, images. Is their any way to create the pdf doc ? I don’t want to change the form just need to convert it to pdf. Please help.

Dompdf

$html=$this->load->view('controller/viewfile', $data, true);
   $this->load->helper(array('dompdf','file'));
     pdf_create($html, 'designdaytona.com');
    $data = pdf_create($html, '', false);
   write_file('name', $data);

dompdf helper

if (!defined('BASEPATH')) exit('No direct script access allowed');
function pdf_create($html, $filename='', $stream=TRUE) 
{
    require_once("dompdf/dompdf_config.inc.php");

    $dompdf = new DOMPDF();
    $dompdf->load_html($html);
    $dompdf->render();

    if ($stream) {
        $dompdf->stream($filename.".pdf");
    } else {
        return $dompdf->output();
    }

    /*$var=$dompdf->get_canvas();
   $var->new_page('bonjour', '2');*/

  }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T02:02:36+00:00Added an answer on June 17, 2026 at 2:02 am

    why don’t you try tcpdf library i found it very useful.
    You can create form inside pdf take a look at http://www.tcpdf.org/examples/example_014.pdf

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple html page that only uses PHP in two places <?php
I am doing a PHP web site, without using any framework. I need that
I am using PHP's DOM object to create HTML pages for my website. This
I am currently doing a website in php, we are using a Session variable
I have recently changed my website format to php (rather than html), i.e. I
Hello, I am doing a website using drupal 7 and I do the registration
i am doing a mobile version of a website using JQuery Mobile and JSON
I'm doing the migration of a site, from MovableType to WordPress. The website contain
I am creating a service that allows my website visitors to create content (text)
I have a client, whose website has 108 different php static pages, and we

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.