Saturday, June 22, 2019

Advanced PDF Template > Chinese Characters are not being Rendered Completely in the Printed Form

Here's the business use case: 

 I. Create an Advanced PDF Template for record type = Sales Order. 
 1. Navigate to Customization > Forms > Advanced PDF/HTML Templates. 
 2. Click Customize on Standard Sales Order PDF/HTML Template. 
 3. Click Source. 
 4. Look for the portion of the HTML code below:In line 23, add hygothic. Note:determined by utilizing an external application (e.g. Notepad++) and paste the source code of the A The line id can be Advanced PDF Template. 

 5. Click Save. II. Edit the preferred sales order form and select the Advanced PDF Template created in Step I. 

III. Create a Sales Order Transaction and fill out the mandatory fields. In the Line Item Description key in this Chinese character 銷售訂單. Note: This Chinese character can also be added in the PO# field. Then, click Save. Actual:- Not all of the Chinese characters are getting printed. The reason why some of the Chinese characters are missing in the transaction record print out is because of the font-family for the Chinese characters are not included in the Advanced PDF Template. To resolve this, edit the Advanced PDF Template and add this font-family (STSong, MSung, MHei, HeiseiMin, hygothic,) in line 23. 

 1. Navigate to Customization > Forms > Advanced PDF/HTML Templates. 
 2. Edit the Sales Order PDF/HTML Template (Created in Step I) 
 3. Click Source. 
 4. Look for the portion of the HTML code below. In line 23, add hygothic.


5. Click Save. The Chinese characters should now be complete on the transaction print out.

DISCLAIMER: The sample code described herein is provided on an "as is" basis, without warranty of any kind, to the fullest extent permitted by law. Oracle + NetSuite Inc. does not warrant or guarantee the individual success developers may have in implementing the sample code on their development platforms or in using their own Web server configurations.

Oracle + NetSuite Inc. does not warrant, guarantee or make any representations regarding the use, results of use, accuracy, timeliness or completeness of any data or information relating to the sample code. Oracle + NetSuite Inc. disclaims all warranties, express or implied, and in particular, disclaims all warranties of merchantability, fitness for a particular purpose, and warranties related to the code, or any service or software related thereto.

Oracle + NetSuite Inc. shall not be liable for any direct, indirect or consequential damages or costs of any type arising out of any action taken by you or others related to the sample code.

No comments:

Post a Comment