Did you even test the code/feature out? This is actually a commit with very minimal intrusive code in addition to a separate class module that fulfills a highly demanded feature(I actually consider it a bug to not be able to include multi-page pdfs in the report, which this code fixes).
Additionally,
The benefit of not needing to convert pdf’s to images (which don’t print out anyways if more than one page) is a huge performance improvement.
-brady
I never really responded to Kevin’s observation that “the webpage in general wastes a lot of paper when printed.” That’s not much different from the old report. Anyway I’d like to point out that it will be common to produce these PDFs without ever printing them, but instead putting them on a CD or memory stick for the patient to take with them. This was a primary need for my client, and for these cases paper is not an issue - the important thing is to easily dump the data in a convenient format.
I’d like to finalize(ie. ensure the community is ok with it) this commit/feature by Rod that provides the following improvements:
1. Allows inclusion of multi-page pdfs in the Patient Report.
2. Doesn’t require conversion of pdfs to images in the Patient Report(can literally take hours).
3. Doesn’t require ImageMagick dependence (huge pain for windows users).
I review/committed this code and it seemed to be a no-brainer commit, so I suggested it was ready for commit after some minor changes. The comments in this thread before Rod posted the link to his code seemed rather non-specific and did not address the above 3 improvements. Is there a reason why we should not be offering these 3 improvements to the community?
It would be difficult for a user to install them otherwise.
Is there more to it than simply copying the packages files into an appropriate directory? Have you made any changes to the distributed files? What is your maintenance strategy for keeping current?
Then for a PDF the features of the FPDI class (which I integrated into HTML2PDF)
Making changes directly to third party libraries is something that should generally be discouraged.
Made another observation right now…
The download pdf works nicely when there are no documents involved in the patient report like - I have patient lab reports and radiographs attached to the encounter. They appear automatically in the report section and if I do check all, and then download PDF, there is this error as stated in my previous post. But, when I donot select the documents, everything works fine…
NB. The documents in the patient records are pdf records and a single photograph…
Hi Kevin, The changes to the HTML2PDF and FPDI packages are here. Basically adding one line and changing two. Neither of these is available through standard Linux repositories, you have to get them from their respective project sites.
Hi arnabnaha - or if that’s too difficult, there’s probably one report component (checkbox) that’s the problem, so try to narrow it down to find out which one.
Hi Rod…
Pointed it out….
Everything works fine if I dont select “Scanned Notes” in the encounter & Forms section….
Even the documents are showing fine….
Scanned Notes comes from the contrib area, so you have to copy it over from there to get the one that’s distributed with OpenEMR. I did make a minor change to that and have tested it successfully… however it kinda sounds like the one you have is customized? If so it will need to be fixed to not generate iframes from its report.php.