From 0ba557162e577ef8648764e26d2ee70eb94354f9 Mon Sep 17 00:00:00 2001 From: Rod Roark Date: Fri, 5 Oct 2012 09:42:40 -0700 Subject: [PATCH] Some assorted fixes for html2pdf (converted line endings) and the patient report. --- interface/patient_file/report/custom_report.php | 1 + interface/super/edit_globals.php | 5 +- interface/themes/style_pdf.css | 22 +- library/html2pdf/_LGPL.txt | 330 +- library/html2pdf/_changelog.txt | 432 +- library/html2pdf/_fpdf/FAQ.htm | 682 +- library/html2pdf/_fpdf/doc/read_me.txt | 4 +- library/html2pdf/_fpdf/font/courier.php | 14 +- library/html2pdf/_fpdf/font/helvetica.php | 30 +- library/html2pdf/_fpdf/font/helveticab.php | 30 +- library/html2pdf/_fpdf/font/helveticabi.php | 30 +- library/html2pdf/_fpdf/font/helveticai.php | 30 +- library/html2pdf/_fpdf/font/makefont/makefont.php | 838 +- library/html2pdf/_fpdf/font/symbol.php | 30 +- library/html2pdf/_fpdf/font/times.php | 30 +- library/html2pdf/_fpdf/font/timesb.php | 30 +- library/html2pdf/_fpdf/font/timesbi.php | 30 +- library/html2pdf/_fpdf/font/timesi.php | 30 +- library/html2pdf/_fpdf/font/zapfdingbats.php | 30 +- library/html2pdf/_fpdf/fpdf.php | 3464 +++--- library/html2pdf/_fpdf/histo.htm | 256 +- library/html2pdf/_fpdf/install.txt | 52 +- library/html2pdf/_fpdf/license.txt | 10 +- library/html2pdf/_fpdf/tutorial/read_me.txt | 4 +- library/html2pdf/_lisez_moi.txt | 216 +- library/html2pdf/_mypdf/00_fpdf_codebar.class.php | 496 +- .../html2pdf/_mypdf/99_fpdf_protection.class.php | 456 +- library/html2pdf/_mypdf/htmlcolors.php | 420 +- library/html2pdf/_mypdf/mypdf.class.php | 1900 +-- library/html2pdf/_read_me.txt | 212 +- .../html2pdf/fpdi/filters/FilterASCII85_FPDI.php | 64 +- library/html2pdf/fpdi/filters/FilterLZW_FPDI.php | 64 +- library/html2pdf/fpdi/fpdf_tpl.php | 898 +- library/html2pdf/fpdi/fpdi.php | 1140 +- library/html2pdf/fpdi/fpdi_pdf_parser.php | 814 +- library/html2pdf/fpdi/pdf_context.php | 206 +- library/html2pdf/fpdi/pdf_parser.php | 1438 +-- library/html2pdf/html2pdf.class.php | 12218 +++++++++---------- library/html2pdf/langues/ca.txt | 42 +- library/html2pdf/langues/cs.txt | 42 +- library/html2pdf/langues/da.txt | 42 +- library/html2pdf/langues/de.txt | 42 +- library/html2pdf/langues/en.txt | 42 +- library/html2pdf/langues/es.txt | 42 +- library/html2pdf/langues/fr.txt | 42 +- library/html2pdf/langues/it.txt | 42 +- library/html2pdf/langues/nl.txt | 42 +- library/html2pdf/langues/pt.txt | 42 +- library/html2pdf/langues/tr.txt | 42 +- library/html2pdf/parsingHTML.class.php | 924 +- library/html2pdf/styleHTML.class.php | 3148 ++--- 51 files changed, 15749 insertions(+), 15741 deletions(-) diff --git a/interface/patient_file/report/custom_report.php b/interface/patient_file/report/custom_report.php index effcf2ba9..52765eb2f 100644 --- a/interface/patient_file/report/custom_report.php +++ b/interface/patient_file/report/custom_report.php @@ -167,6 +167,7 @@ while($result = sqlFetchArray($inclookupres)) { // For each form field from patient_report.php... // foreach ($ar as $key => $val) { + if ($key == 'pdf') continue; // These are the top checkboxes (demographics, allergies, etc.). // diff --git a/interface/super/edit_globals.php b/interface/super/edit_globals.php index b694ce495..62aa5f2f1 100644 --- a/interface/super/edit_globals.php +++ b/interface/super/edit_globals.php @@ -348,7 +348,10 @@ foreach ($GLOBALS_METADATA as $grpname => $grparr) { // Only show files that contain style_ as options // Skip style_blue.css since this is used for // lone scripts such as setup.php - if (!preg_match("/^style_.*\.css$/", $tfname) || $tfname == 'style_blue.css') { continue; } + // Also skip style_pdf.css which is for PDFs and not screen output + if (!preg_match("/^style_.*\.css$/", $tfname) || + $tfname == 'style_blue.css' || $tfname == 'style_pdf.css') + continue; echo "