Project: Remove and replace html2pdf with a more up to date tool

Background

The system currently uses html2pdf to generate pdf reports . This needs to be migrated to a better model for printing the PDF documents. This could be an opensource project like MPDF or just changes to the code base to use native PHP calls .

Technical requirements

  1. Mysql
  2. PHP

Mentors: @tony @aethelwulffe @teryhill

3 Likes

HTML2pdf as well as another tool I think.

This task suggestion is very closely related to issues with the patient record reports and export. The coding of the HTML output of those greatly affect the output quality of a PDF.

1 Like

I think the way pdf is formatted is very directly dependent on the way HTML is formatted . I have a plan to use PHP pdf tools to provide proper indentation and formatting to pdf generated.

1 Like

I think we should remove the dependency on HTML2pdf and work with PHP built in tools

1 Like

One of the things that should be added is Patient Identifiers on each printed page. The ability to “turn these on or off”. Consistent reports that look good as a PDF.

1 Like

Yes that would be Ideal

Sir can you please send the detailed know hows of this project on my email abhinavsingh22@hotmail.com so that I could understand it well and work on the format of pdf. That would be helpfull :slight_smile:

All conversations needs to be public here on the forums or on Github.

It is up to the GSoC participant to formulate the proposal based on the project. You will choose the tools, and out line a time line and scope of work.

1 Like

Could you please upload the sample of generated pdf, that would be very helpful if its possible

Have you loaded the code to your local system?

report (2).pdf (16.5 KB)

1 Like

Yes I just did it, now I am a look at the code base, this will be perfect

Thank you for the pdf :slight_smile:

You will need to setup the software and add some fictitious data so you can test your changes.

1 Like

Yes and I also looked at the pdf I think it just need some better formatting , what do you say sir ?

1 Like

All instances where the data is presented to the customer as a report needs to be consistent and made to look nice.

1 Like

@Abhinav Completely correct on the HTML being the primary factor. Also correct on http://php.net/manual/en/ref.pdf.php being the best way to get quality results.

1 Like

Thank you sir and I am just viewing the code base presently.

I also found that when we click on Download Pdf button nothing happens.

Look for the error in the php error log. That was fixed but may not be in the code base yet.

1 Like

Thank You I will have a look.