{"id":87181,"date":"2024-12-08T05:08:06","date_gmt":"2024-12-08T13:08:06","guid":{"rendered":"https:\/\/rightwave.com\/rwi\/?page_id=87181"},"modified":"2024-12-11T00:14:41","modified_gmt":"2024-12-11T08:14:41","slug":"generate-pdf-by-html-template","status":"publish","type":"page","link":"https:\/\/rightwave.com\/rwi\/rdn-help\/advanced-services\/generate-pdf-by-html-template","title":{"rendered":"RDN Generate PDF by HTML Template"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"87181\" class=\"elementor elementor-87181\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-0cfdca2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"0cfdca2\" data-element_type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;gradient&quot;}\">\n\t\t\t\t\t\t\t<div class=\"elementor-background-overlay\"><\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b45b270\" data-id=\"b45b270\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-8100547 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"8100547\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-8446356\" data-id=\"8446356\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2b62785 elementor-widget elementor-widget-heading\" data-id=\"2b62785\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<p class=\"elementor-heading-title elementor-size-default\">RDN Generate PDF by HTML<\/p>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-04a17b5 elementor-widget elementor-widget-heading\" data-id=\"04a17b5\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<p class=\"elementor-heading-title elementor-size-default\">The \"Generate PDF from HTML Template\" service can autonomously insert the user's provided inputs and computed values into a pre-established PDF template. <\/p>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-87b50b8 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"87b50b8\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-47bc9fb\" data-id=\"47bc9fb\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-024bb0f elementor-widget elementor-widget-text-editor\" data-id=\"024bb0f\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p><span style=\"font-weight: 400;\">The &#8220;Generate PDF from HTML Template&#8221; service can autonomously insert the user&#8217;s provided inputs and computed values into a pre-established PDF template. Users must upload a PDF template in HTML to utilize this service. Within the PDF template, the merge fields, which are essentially input fields, should be indicated using the syntax $%&lt;Name of the input variable&gt;%$.<\/span><\/p><p><span style=\"font-weight: 400;\">Upon invoking the PDF generation service, you will be provided with the path to access and download the generated PDF. You can then associate this PDF path with a Marketo field, allowing you to utilize it for your specific requirements.<\/span><\/p><ol><li style=\"font-weight: 400;\" aria-level=\"1\"><b>Steps to personalize HTML to PDF configuration:<\/b><b><br \/><\/b><b><br \/><\/b><b>1<\/b><span style=\"font-weight: 400;\">.<\/span><b>1 <\/b><span style=\"font-weight: 400;\">Click on the Manage option of this service.<\/span><\/li><\/ol><p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignleft wp-image-87428 size-full\" src=\"https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image4-10.png\" alt=\"\" width=\"1911\" height=\"776\" srcset=\"https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image4-10.png 1911w, https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image4-10-300x122.png 300w, https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image4-10-1024x416.png 1024w, https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image4-10-768x312.png 768w, https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image4-10-1536x624.png 1536w\" sizes=\"(max-width: 1911px) 100vw, 1911px\" \/><\/p><p><span style=\"font-weight: 400;\">1.2\u00a0 The list of personalized existing PDF configurations will be displayed here.<\/span><\/p><p><img decoding=\"async\" class=\"alignleft wp-image-87429 size-full\" src=\"https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image6-10.png\" alt=\"\" width=\"1897\" height=\"694\" srcset=\"https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image6-10.png 1897w, https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image6-10-300x110.png 300w, https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image6-10-1024x375.png 1024w, https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image6-10-768x281.png 768w, https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image6-10-1536x562.png 1536w\" sizes=\"(max-width: 1897px) 100vw, 1897px\" \/><\/p><ol start=\"2\"><li><b> To create a personalized new PDF:<\/b><\/li><\/ol><p><span style=\"font-weight: 400;\">When you trigger the PDF generation service, it will furnish you with the pathway for accessing and downloading the generated PDF. Subsequently, you can link this PDF path to a Marketo field, enabling you to use it as necessary for your specific needs.<\/span><\/p><p><span style=\"font-weight: 400;\">2.1 Click on \u2018+\u201d <\/span><span style=\"font-weight: 400;\">\u00a0icon. Enter the name of the template, upload the HTML file, and Save the template.<\/span><\/p><p><img decoding=\"async\" class=\"alignleft wp-image-87430 size-full\" src=\"https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image3-14.png\" alt=\"\" width=\"1892\" height=\"818\" srcset=\"https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image3-14.png 1892w, https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image3-14-300x130.png 300w, https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image3-14-1024x443.png 1024w, https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image3-14-768x332.png 768w, https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image3-14-1536x664.png 1536w\" sizes=\"(max-width: 1892px) 100vw, 1892px\" \/><\/p><p><span style=\"font-weight: 400;\">2.2 You have now created an HTML template that includes merge fields. The HTML file for uploading must adhere to valid HTML standards, including HTML tags. For instance, please take a look at the Seminar Pass HTML template provided below.<\/span><\/p><h4><b>Upload the template<\/b><\/h4><p><b>Existing Template Preview<\/b><span style=\"font-weight: 400;\">: To have a preview look at the existing template<\/span><\/p><p><b>Update template:<\/b><span style=\"font-weight: 400;\"> If you want to update the existing HTML Template.<\/span><\/p><p><b>Upload Template Preview<\/b><span style=\"font-weight: 400;\">: You can preview the template you have uploaded.<\/span><\/p><p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-87431 size-full alignnone\" src=\"https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image2-15.png\" alt=\"\" width=\"983\" height=\"761\" srcset=\"https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image2-15.png 983w, https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image2-15-300x232.png 300w, https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image2-15-768x595.png 768w\" sizes=\"(max-width: 983px) 100vw, 983px\" \/><\/p><p><b>Save<\/b><span style=\"font-weight: 400;\">: To save the uploaded template.<\/span><\/p><p><span style=\"font-weight: 400;\">Please note that the merge fields will be provided via the payload of the POST API. For instance, with the template mentioned above, the corresponding merge JSON will be transmitted through the POST API as follows:<\/span><\/p><ol start=\"3\"><li><b> Steps to configure service Generate PDF by HTML in Marketo:<\/b><\/li><\/ol><p><i><span style=\"font-weight: 400;\">Please note that the request parameters values (in step 2) and Marketo Fields (in step 4) are just for example. You have to enter the values as per your service requirement.<\/span><\/i><\/p><h4><span style=\"font-weight: 400;\">3.1 Go to Admin and click Webhooks. Click New Webhook.<\/span><\/h4><h4><span style=\"font-weight: 400;\">3.2\u00a0 Name and configure your webhook for Generate PDF By HTML Template.<\/span><\/h4><p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-87432 size-full alignnone\" src=\"https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image7-9.png\" alt=\"\" width=\"614\" height=\"606\" srcset=\"https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image7-9.png 614w, https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image7-9-300x296.png 300w\" sizes=\"(max-width: 614px) 100vw, 614px\" \/><\/p><p><b>Webhook Name<\/b><span style=\"font-weight: 400;\">: Name of the webhook. In the above example, the Webhook name is the same as the Service name. Webhook names can be provided as per requirement.<\/span><\/p><p><b>URL<\/b><span style=\"font-weight: 400;\">: The URL of the Generate PDF By HTML Template. The URL has domain and query parameters that will remain the same.\u00a0<\/span><\/p><p><b>Template<\/b><span style=\"font-weight: 400;\">: <\/span><span style=\"font-weight: 400;\"><br \/><\/span><b>Request Token Encoding<\/b><span style=\"font-weight: 400;\">: It will remain None.<\/span><span style=\"font-weight: 400;\"><br \/><\/span><b>Response type<\/b><span style=\"font-weight: 400;\">: Select the response format as JSON.<\/span><span style=\"font-weight: 400;\"><br \/><\/span><b>Request Type<\/b><span style=\"font-weight: 400;\">: The Request Type will remain the same (i.e.) POST as given in the example.<\/span><\/p><p><span style=\"font-weight: 400;\">3.3 Add Authentication Header<\/span><\/p><p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-87433 size-full alignnone\" src=\"https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image1-15.png\" alt=\"\" width=\"797\" height=\"501\" srcset=\"https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image1-15.png 797w, https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image1-15-300x189.png 300w, https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image1-15-768x483.png 768w\" sizes=\"(max-width: 797px) 100vw, 797px\" \/><\/p><p><i><span style=\"font-weight: 400;\">Please note that the auth-key shown above is the original auth-key. So, the same value of auth-key and Content-Type should be used while configuring Webhook as shown.<\/span><\/i><\/p><p><span style=\"font-weight: 400;\">3.4 <\/span><b>Response Mappings<\/b><span style=\"font-weight: 400;\">: Response mappings are created by linking a Response Attribute to the output generated by your Custom Service JavaScript function. It is advisable to return JSON from the custom service as it simplifies the process of mapping it to the corresponding Marketo field.<\/span><\/p><p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-87434 size-full alignnone\" src=\"https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image5-9.png\" alt=\"\" width=\"563\" height=\"361\" srcset=\"https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image5-9.png 563w, https:\/\/rightwave.com\/rwi\/wp-content\/uploads\/2024\/12\/image5-9-300x192.png 300w\" sizes=\"(max-width: 563px) 100vw, 563px\" \/><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>RDN Generate PDF by HTML The &#8220;Generate PDF from HTML Template&#8221; service can autonomously insert the user&#8217;s provided inputs and computed values into a pre-established PDF template. The &#8220;Generate PDF from HTML Template&#8221; service can autonomously insert the user&#8217;s provided inputs and computed values into a pre-established PDF template. Users must upload a PDF template&hellip;<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":87157,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"footnotes":""},"class_list":["post-87181","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/rightwave.com\/rwi\/wp-json\/wp\/v2\/pages\/87181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rightwave.com\/rwi\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/rightwave.com\/rwi\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/rightwave.com\/rwi\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/rightwave.com\/rwi\/wp-json\/wp\/v2\/comments?post=87181"}],"version-history":[{"count":7,"href":"https:\/\/rightwave.com\/rwi\/wp-json\/wp\/v2\/pages\/87181\/revisions"}],"predecessor-version":[{"id":87440,"href":"https:\/\/rightwave.com\/rwi\/wp-json\/wp\/v2\/pages\/87181\/revisions\/87440"}],"up":[{"embeddable":true,"href":"https:\/\/rightwave.com\/rwi\/wp-json\/wp\/v2\/pages\/87157"}],"wp:attachment":[{"href":"https:\/\/rightwave.com\/rwi\/wp-json\/wp\/v2\/media?parent=87181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}