{"id":3422,"date":"2021-03-22T18:17:23","date_gmt":"2021-03-22T18:17:23","guid":{"rendered":"https:\/\/answers.gurussolutions.com\/answers\/comment-afficher-le-logo-dun-client-dans-les-modeles-pdf-html-avances-de-netsuite\/"},"modified":"2026-07-28T18:25:45","modified_gmt":"2026-07-28T18:25:45","slug":"comment-afficher-le-logo-dun-client-dans-les-modeles-pdf-html-avances-de-netsuite","status":"publish","type":"qa_entry","link":"https:\/\/answers.gurussolutions.com\/fr\/answers\/comment-afficher-le-logo-dun-client-dans-les-modeles-pdf-html-avances-de-netsuite\/","title":{"rendered":"Comment afficher le logo d&rsquo;un client dans les mod\u00e8les PDF\/HTML avanc\u00e9s de NetSuite ?"},"content":{"rendered":"","protected":false},"template":"","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","ga_subtitle":"Affichez sans effort les logos de vos clients dans les mod\u00e8les PDF\/HTML avanc\u00e9s de NetSuite en r\u00e9cup\u00e9rant les champs d'image \u00e0 partir des fiches clients.","ga_short_answer":"Pour afficher le logo d\u2019un client issu de sa fiche client dans un mod\u00e8le PDF avanc\u00e9, cr\u00e9ez un champ d\u2019image personnalis\u00e9 dans la transaction afin d\u2019y stocker le logo. Ensuite, dans le code du mod\u00e8le PDF\/HTML avanc\u00e9, utilisez une balise <img> en indiquant la valeur du champ personnalis\u00e9 comme attribut src afin d\u2019afficher l\u2019image de mani\u00e8re dynamique.","ga_scenario":"Un client souhaite que le logo du client soit imprim\u00e9 sur les documents de commande client. Le logo est stock\u00e9 dans un champ d\u2019image natif de NetSuite, directement dans la fiche client. Le d\u00e9fi consiste \u00e0 r\u00e9cup\u00e9rer et \u00e0 afficher dynamiquement cette image dans un mod\u00e8le PDF\/HTML avanc\u00e9 utilis\u00e9 pour l\u2019impression des commandes client.","ga_solution":"Pour mettre en place l\u2019affichage dynamique du logo client sur les mod\u00e8les PDF\/HTML avanc\u00e9s, veuillez suivre les \u00e9tapes suivantes :\n1. Cr\u00e9ez un champ personnalis\u00e9 dans le corps de la transaction (par exemple, dans la fiche de commande client) de type \u00ab Image \u00bb. Ce champ servira \u00e0 extraire le logo client de la fiche client.\n2. Configurez ce champ personnalis\u00e9 de mani\u00e8re \u00e0 ce qu\u2019il r\u00e9cup\u00e8re sa valeur \u00e0 partir du champ \u00ab Image \u00bb de la fiche client o\u00f9 le logo est stock\u00e9.\n3. Dans le code du mod\u00e8le PDF\/HTML avanc\u00e9, faites r\u00e9f\u00e9rence \u00e0 ce champ personnalis\u00e9 \u00e0 l\u2019aide d\u2019une balise <img> pour afficher l\u2019image. La valeur du champ personnalis\u00e9 fournira la source de l\u2019image. Par exemple, si l\u2019identifiant de votre champ personnalis\u00e9 est custbody_gs_customer_logo :\n\n```\n<img src=\"${record.custbody_gs_customer_logo}\"\/>\n```","ga_source_author":"Matthew Jay","ga_source_author_email":"","ga_date_original":"2021-03-22T11:17:23-07:00","ga_date_verified":"2026-07-05","ga_source_subject":"Dynamically printing the customer logo when printing an advanced pdf template.","ga_ans_id":"ANS-1683","ga_publish_decision":"publish_with_edits","ga_staleness_risk":"medium","ga_review_priority":"spot_check","ga_tier2_verdict":"partially_outdated","ga_tier2_concerns":"The original answer states that the custom field (e.g., custbody_gs_customer_logo) is referenced 'rather than the <img src xxxx> function'. Current NetSuite documentation and community discussions indicate that while a custom field can store the image's URL or file ID, an <img> tag with its 'src' attribute referencing this custom field (e.g., <img src=\"${record.custbody_gs_customer_logo}\"\/>) is still required to display the image in an Advanced PDF\/HTML template. The custom field provides the source, but the <img> tag is essential for rendering the image.","ga_final_category":"Printing, PDF & Email Templates","footnotes":""},"ga_category":[95,19,95],"ga_audience":[89],"ga_difficulty":[92],"class_list":["post-3422","qa_entry","type-qa_entry","status-publish","hentry","ga_category-impression-pdf-et-modeles-de-mails","ga_category-printing-pdf-email-templates","ga_audience-administrateur-netsuite","ga_difficulty-niveau-intermediaire"],"taxonomy_info":{"ga_category":[{"value":95,"label":"Impression, PDF et mod\u00e8les d\u2019e-mails"},{"value":19,"label":"Printing, PDF & Email Templates"},{"value":95,"label":"Impression, PDF et mod\u00e8les d\u2019e-mails"}],"ga_audience":[{"value":89,"label":"Administrateur NetSuite"}],"ga_difficulty":[{"value":92,"label":"Niveau interm\u00e9diaire"}]},"featured_image_src_large":[],"author_info":[],"comment_info":"","_links":{"self":[{"href":"https:\/\/answers.gurussolutions.com\/fr\/wp-json\/wp\/v2\/qa_entry\/3422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/answers.gurussolutions.com\/fr\/wp-json\/wp\/v2\/qa_entry"}],"about":[{"href":"https:\/\/answers.gurussolutions.com\/fr\/wp-json\/wp\/v2\/types\/qa_entry"}],"version-history":[{"count":1,"href":"https:\/\/answers.gurussolutions.com\/fr\/wp-json\/wp\/v2\/qa_entry\/3422\/revisions"}],"predecessor-version":[{"id":5342,"href":"https:\/\/answers.gurussolutions.com\/fr\/wp-json\/wp\/v2\/qa_entry\/3422\/revisions\/5342"}],"wp:attachment":[{"href":"https:\/\/answers.gurussolutions.com\/fr\/wp-json\/wp\/v2\/media?parent=3422"}],"wp:term":[{"taxonomy":"ga_category","embeddable":true,"href":"https:\/\/answers.gurussolutions.com\/fr\/wp-json\/wp\/v2\/ga_category?post=3422"},{"taxonomy":"ga_audience","embeddable":true,"href":"https:\/\/answers.gurussolutions.com\/fr\/wp-json\/wp\/v2\/ga_audience?post=3422"},{"taxonomy":"ga_difficulty","embeddable":true,"href":"https:\/\/answers.gurussolutions.com\/fr\/wp-json\/wp\/v2\/ga_difficulty?post=3422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}