PDF of patient Summary getting cropped

arnabnaha wrote on Friday, July 22, 2016:

Hi,

The PDF generated from patient summary->reports->Download PDF button, has started again to get cropped automatically. We cannot print out using the pdf and thus causing huge issues. It was fixed last time by Rod but has again started to show the same things may be due to recent code changes.

PIC attached

arnabnaha wrote on Monday, July 25, 2016:

Please help in this…

visolveemr wrote on Tuesday, July 26, 2016:

Hi Arnab,
Give us more details on the OpenEMR version your currently using.

Is the shared screenshot from a customized EMR or a General OpenEMR, as we are finding it hard to look up on the ‘present history’ that you have highlighted.

Thanks,
ViSolve OpenEMR Support Team
ViSolve

arnabnaha wrote on Tuesday, July 26, 2016:

Hi Visolve
Its the general community version of openEMR 4.3.1 (development version). The form that is shown in the pic is the history form made from the xmlformgen. The xml of the history form is present in the contrib/forms/xmlformgen folder. You can create it using xmlformgen and put it to test if you want. The pdf certainly gets cropped and very distressing for us. Please help

arnabnaha wrote on Saturday, July 30, 2016:

Please help me in this…it was solved previously too…I dont why it keeps creeping in…

arnabnaha wrote on Tuesday, August 02, 2016:

Hello…
Somebody please help me on this…Not able to print pdfs…please help

bradymiller wrote on Wednesday, August 03, 2016:

Hi Arnab,

Sorry that nobody has been able to help you. I’m also a bit busy with other things. Is this related to this code that seems to be needed but not needed at that same time:
https://sourceforge.net/p/openemr/discussion/202505/thread/7fba7698/#9c67

-brady
OpenEMR

arnabnaha wrote on Wednesday, August 03, 2016:

I have tried commenting out the line as stated in the thread. Not much help…the issue still persists.

sunsetsystems wrote on Wednesday, August 03, 2016:

I don’t recall offhand what previous fix of mine you are referring to, but I have not worked with xmlformgen. Might help to see your previous satisfactory output, preferably with the same data.

Rod
http://www.sunsetsystems.com/

mdsupport wrote on Wednesday, August 03, 2016:

Do the ‘recent code changes’ include use of new themes? To narrow down the offending code, go back to standard theme and try the same data.

Also, how is the ‘Printable Version’ of the report looking in the browser? Are you able to print from browser to a pdf printer?

visolveemr wrote on Thursday, August 04, 2016:

Hello Arnab,

We have reproduced the issue and resolved the same by adding following css to ,

interface/themes/style_pdf.css

#report_custom .demographics td{
  width:20%; 
}

#report_custom .encounter_form td{
   width:30%;
}

Please let us know if this helps.

Thanks
OpenEMR Customization/Support Team,
ViSolve Inc
services@visolve.com | Phone: 408-850-2243
Demo’s @ ViSolve Demo Library

arnabnaha wrote on Friday, August 05, 2016:

I am sorry Visolve, the things got worse…Please see the attachment

arnabnaha wrote on Friday, August 05, 2016:

may be I am pasting the css styles in a wrong location within the file style_pdf.css. Can you please tell me after which line should I insert these two changes?

visolveemr wrote on Friday, August 05, 2016:

Hi Arnab,
We validated the fix and only then we progressed to you.

Attached the pdf of the same data that worked good after the fix in our environment. The same change we processed is been shared to you.

The lines that you have asked should not be a problem from our view.

May be something else is missing at your end.

Thanks,
ViSolve OpenEMR Support Team
ViSolve

arnabnaha wrote on Friday, August 05, 2016:

can you do a team viewer session for this issue to look into my system…your pdf looks absolutely perfect. Thanks and regards
Arnab