How to use frappe.db.get_value in Print Format

can anyone check my post here

in pdf, frappe.get_value, cannot display.

Is there any solution?