TCPDF Performances
Install and configure a PHP opcode cacher like XCache;
Edit the php.ini file and increase the maximum amount of memory a script may consume (memory_limit);
Edit the php.ini file and increase the maximum execution time of each script (max_execution_time);
Edit the config/tcpdf_config.php file: manually set the $_SERVER['DOCUMENT_ROOT'], K_PATH_MAIN and K_PATH_URL constants, and remove the automatic calculation part;
If you are not using the Thai language, edit the config/tcpdf_config.php file and set the K_THAI_TOPCHARS constant to false;
If you do not need extended chars, edit the config/tcpdf_config.php file and set the default fonts to core fonts;
If you do not need UTF-8 Unicode, set the $unicode parameter on TCPDF constructor to false and the $encoding parameter to 'ISO-8859-1' or other character map.
By default TCPDF enables font subsetting to reduce the size of embedded Unicode TTF fonts, this process, that is very slow and requires a lot of memory, can be turned off using setFontSubsetting(false) method;
Use core fonts instead of embedded fonts whenever possible;
Avoid using the HTML syntax (writeHTML and writeHTMLCell methods) if not strictly required;
Split large HTML blocks in smaller pieces;
Avoid using transactions if not strictly required;
Restart the webserver after changes.
การแสดง tcpdf
ติดตั้งและกำหนดค่าที่ PHP opcode cacher เช่น xcache ;
แก้ไข PHP .แฟ้ม INI และเพิ่มได้สูงสุดจำนวนของหน่วยความจำที่สคริปต์จะผลาญ( memory_limit );
แก้ไข PHP .แฟ้ม INI และเพิ่มขึ้นได้สูงสุดตามเวลาของแต่ละสคริปต์( max_execution_time );
แก้ไขการตั้งค่า/ tcpdf_config . php ไฟล์:ตั้งค่า$_ Server [' document_root '], k_path_main และ k_path_url ค่าคงที่,และถอดได้โดยอัตโนมัติการคำนวณส่วน;
หากคุณไม่ได้ใช้ ภาษาไทย ,แก้ไขการตั้งค่า/ tcpdf_config . php ไฟล์และตั้งค่าที่ k_thai_topchars คงที่เป็นเท็จ;
หากคุณไม่จำเป็นต้องขยายตัวอักขระ,แก้ไขการตั้งค่า/ tcpdf_config . php ไฟล์และตั้งค่าที่เป็นดีฟอลต์แบบอักษรแกนแบบอักษร;
หากคุณไม่จำเป็นต้องใช้ Unicode UTF - 8 ,ตั้งค่าพารามิเตอร์ที่$อักขระ Unicode ใน tcpdf ผู้สร้างเป็นเท็จและการเข้ารหัสที่$พารามิเตอร์ไปที่' ISO -8859-1 'หรืออักขระอื่นๆแผนที่.
ตามค่าดีฟอลต์ tcpdf ทำให้อักษร subsetting เพื่อลดขนาดของเอ็มเบ็ดเด็ด Unicode ttf แบบอักษร,ขั้นตอนนี้ซึ่งช้ามากและต้องใช้เป็นจำนวนมากของหน่วยความจำ,สามารถปิดการใช้ setfontsubsetting (ไม่)เป็นวิธีการ;
ใช้แบบอักษรแทนเอ็มเบ็ดเด็ดแบบอักษรเมื่อใดก็ตามที่เป็นไปได้;
หลีกเลี่ยงการใช้ที่ HTML syntax ( writehtml writehtmlcell และวิธีการ)หากไม่จำเป็นต้องเข้มงวด;
แยกขนาดใหญ่ HTML บล็อกในชิ้นเล็กๆ;
หลีกเลี่ยงการใช้ทำธุรกรรมอย่างเคร่งครัดหากไม่จำเป็นต้องใช้;
รีสตาร์ทที่เว็บเซิร์ฟเวอร์ของผู้สร้างจดหมายหลังจากที่มีการเปลี่ยนแปลง.
การแปล กรุณารอสักครู่..