2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 /*********************************************************************************
4 * SugarCRM Community Edition is a customer relationship management program developed by
5 * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
7 * This program is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU Affero General Public License version 3 as published by the
9 * Free Software Foundation with the addition of the following permission added
10 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
11 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
12 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
14 * This program is distributed in the hope that it will be useful, but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
19 * You should have received a copy of the GNU Affero General Public License along with
20 * this program; if not, see http://www.gnu.org/licenses or write to the Free
21 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
25 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
27 * The interactive user interfaces in modified source and object code versions
28 * of this program must display Appropriate Legal Notices, as required under
29 * Section 5 of the GNU Affero General Public License version 3.
31 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
32 * these Appropriate Legal Notices must retain the display of the "Powered by
33 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
34 * technical reasons, the Appropriate Legal Notices must display the words
35 * "Powered by SugarCRM".
36 ********************************************************************************/
39 * This array define the default value to use for the sugarpdf settings.
40 * The order is DB (user or system) -> custom sugarpdf_default -> OOB sugarpdf_default
42 $sugarpdf_default = array(
43 "K_PATH_MAIN"=>"include/tcpdf/",
44 "K_PATH_URL"=>"include/tcpdf/",
45 "K_PATH_FONTS"=>"include/tcpdf/fonts/",
46 "K_PATH_CUSTOM_FONTS"=>"custom/include/tcpdf/fonts/",
47 "K_PATH_CACHE"=> sugar_cached("include/tcpdf/"),
48 "K_PATH_URL_CACHE"=> sugar_cached("include/tcpdf/"),
49 "K_PATH_CUSTOM_IMAGES"=>"custom/themes/default/images/",
50 "K_PATH_IMAGES"=>"themes/default/images/",
51 "K_BLANK_IMAGE"=>"themes/default/images/_blank.png",
52 "PDF_PAGE_FORMAT"=>"LETTER",
53 "PDF_PAGE_FORMAT_LIST"=>implode(",",array("4A0", "2A0", "A0", "A1", "A2", "A3", "A4", "A5", "A6", "A7", "A8", "A9", "A10",
54 "B0", "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "B10",
55 "C0", "C1", "C2", "C3", "C4", "C5", "C6", "C7", "C8", "C9", "C10",
56 "RA0", "RA1", "RA2", "RA3", "RA4", "SRA0", "SRA1", "SRA2", "SRA3", "SRA4",
57 "LETTER", "LEGAL", "EXECUTIVE", "FOLIO")),
58 "PDF_PAGE_ORIENTATION"=>"P",
59 "PDF_PAGE_ORIENTATION_LIST"=>implode(",",array("P"=>"P", "L"=>"L")),
60 "PDF_CREATOR"=>"SugarCRM",
61 "PDF_AUTHOR"=>"SugarCRM",
62 "PDF_HEADER_TITLE"=>"SugarCRM",
63 "PDF_HEADER_STRING"=>"TCPDF for SugarCRM",
64 "PDF_HEADER_LOGO"=>"pdf_logo.jpg",
65 "PDF_HEADER_LOGO_WIDTH"=>120,
66 "PDF_SMALL_HEADER_LOGO"=>"pdf_logo_small.jpg",
67 "PDF_SMALL_HEADER_LOGO_WIDTH"=>60,
69 'PDF_MARGIN_HEADER'=>5,
70 'PDF_MARGIN_FOOTER'=>10,
72 'PDF_MARGIN_BOTTOM'=>25,
73 'PDF_MARGIN_LEFT'=>15,
74 'PDF_MARGIN_RIGHT'=>15,
75 'PDF_FONT_NAME_MAIN'=>'helvetica',
76 "PDF_FONT_SIZE_MAIN"=>8,
77 'PDF_FONT_NAME_DATA'=>'helvetica',
78 'PDF_FONT_SIZE_DATA'=>8,
79 'PDF_IMAGE_SCALE_RATIO'=>3,
80 'HEAD_MAGNIFICATION'=>1.1,
81 'K_CELL_HEIGHT_RATIO'=>1.25,
82 'K_TITLE_MAGNIFICATION'=>1.3,
85 "PDF_ENABLE_EZPDF"=>"0",
86 "PDF_FILENAME"=>"output.pdf",
87 "PDF_TITLE"=>"SugarCRM",
88 "PDF_KEYWORDS"=>"SugarCRM",
89 "PDF_SUBJECT"=>"SugarCRM",
90 "PDF_COMPRESSION"=>"true",
91 "PDF_JPEG_QUALITY"=>"75",
92 "PDF_PDF_VERSION"=>"1.7",
93 "PDF_PROTECTION"=>implode(",",array("print","copy")),
94 "PDF_USER_PASSWORD"=>"",
95 "PDF_OWNER_PASSWORD"=>"",
96 "PDF_ACL_ACCESS"=>"detail",
97 "PDF_ENCODING_TABLE_LIST"=>implode(",",array("cp1250","cp1251","cp1252","cp1253","cp1254","cp1255","cp1257",
98 "cp1258","cp874","iso-8859-1","iso-8859-2","iso-8859-4","iso-8859-5",
99 "iso-8859-7","iso-8859-9","iso-8859-11","iso-8859-15","iso-8859-16",
101 "PDF_ENCODING_TABLE_LABEL_LIST"=>implode(",",array("cp1250 (Central Europe)","cp1251 (Cyrillic)","cp1252 (Western Europe)",
102 "cp1253 (Greek)","cp1254 (Turkish)","cp1255 (Hebrew)","cp1257 (Baltic)",
103 "cp1258 (Vietnamese)","cp874 (Thai)","iso-8859-1 (Western Europe)",
104 "iso-8859-2 (Central Europe)","iso-8859-4 (Baltic)","iso-8859-5 (Cyrillic)",
105 "iso-8859-7 (Greek)","iso-8859-9 (Turkish)","iso-8859-11 (Thai)","iso-8859-15 (Western Europe)",
106 "iso-8859-16 (Central Europe)","koi8-r (Russian)","koi8-u (Ukrainian)")),