{"id":2145,"date":"2023-01-14T01:16:12","date_gmt":"2023-01-14T01:16:12","guid":{"rendered":"https:\/\/macmarketing.us\/?page_id=2145"},"modified":"2025-03-24T19:20:13","modified_gmt":"2025-03-25T00:20:13","slug":"rate-generator","status":"publish","type":"page","link":"https:\/\/macmarketing.us\/vi\/rate-generator","title":{"rendered":"Rate Generator"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"2145\" class=\"elementor elementor-2145\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-aab05db elementor-section-boxed elementor-section-height-default elementor-section-height-default wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no\" data-id=\"aab05db\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\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-66343e9\" data-id=\"66343e9\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\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-6351a0d3 elementor-section-boxed elementor-section-height-default elementor-section-height-default wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no\" data-id=\"6351a0d3\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[{&quot;_id&quot;:&quot;1b00668&quot;,&quot;jet_parallax_layout_image&quot;:{&quot;url&quot;:&quot;&quot;,&quot;id&quot;:&quot;&quot;,&quot;size&quot;:&quot;&quot;},&quot;jet_parallax_layout_image_tablet&quot;:{&quot;url&quot;:&quot;&quot;,&quot;id&quot;:&quot;&quot;,&quot;size&quot;:&quot;&quot;},&quot;jet_parallax_layout_image_mobile&quot;:{&quot;url&quot;:&quot;&quot;,&quot;id&quot;:&quot;&quot;,&quot;size&quot;:&quot;&quot;},&quot;jet_parallax_layout_speed&quot;:{&quot;unit&quot;:&quot;%&quot;,&quot;size&quot;:50,&quot;sizes&quot;:[]},&quot;jet_parallax_layout_type&quot;:&quot;scroll&quot;,&quot;jet_parallax_layout_direction&quot;:&quot;1&quot;,&quot;jet_parallax_layout_fx_direction&quot;:null,&quot;jet_parallax_layout_z_index&quot;:&quot;&quot;,&quot;jet_parallax_layout_bg_x&quot;:50,&quot;jet_parallax_layout_bg_x_tablet&quot;:&quot;&quot;,&quot;jet_parallax_layout_bg_x_mobile&quot;:&quot;&quot;,&quot;jet_parallax_layout_bg_y&quot;:50,&quot;jet_parallax_layout_bg_y_tablet&quot;:&quot;&quot;,&quot;jet_parallax_layout_bg_y_mobile&quot;:&quot;&quot;,&quot;jet_parallax_layout_bg_size&quot;:&quot;auto&quot;,&quot;jet_parallax_layout_bg_size_tablet&quot;:&quot;&quot;,&quot;jet_parallax_layout_bg_size_mobile&quot;:&quot;&quot;,&quot;jet_parallax_layout_animation_prop&quot;:&quot;transform&quot;,&quot;jet_parallax_layout_on&quot;:[&quot;desktop&quot;,&quot;tablet&quot;]}]}\">\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-c181df4\" data-id=\"c181df4\" data-element_type=\"column\" data-e-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-d570214 elementor-widget elementor-widget-heading\" data-id=\"d570214\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">SURCHAGE RATE GENERATOR<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5e67c88 elementor-widget elementor-widget-heading\" data-id=\"5e67c88\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h4 class=\"elementor-heading-title elementor-size-default\"><a href=\"#dual\">Need Dual Pricing? Click Here<\/a><\/h4>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4c0a9261 elementor-widget elementor-widget-jet-images-layout\" data-id=\"4c0a9261\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;columns&quot;:&quot;2&quot;}\" data-widget_type=\"jet-images-layout.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-jet-images-layout jet-elements\">\n<div class=\"jet-images-layout layout-type-masonry\" data-settings='{&quot;layoutType&quot;:&quot;masonry&quot;,&quot;justifyHeight&quot;:300}'>\n\t<div class=\"jet-images-layout__list salvattore column-desktop-2 column-tablet-2 column-mobile-1\" data-columns>\n<div class=\"jet-images-layout__item\">\n\t<div class=\"jet-images-layout__inner\">\n\t\t<div class=\"jet-images-layout__image-loader\"><span><\/span><\/div>\n\t\t<a class=\"jet-images-layout__link\" href=\"https:\/\/macmarketing.us\/wp-content\/uploads\/2025\/03\/Artboard-7_5-20.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"4c0a9261\">\n\t\t\t<div class=\"jet-images-layout__image\">\n\t\t\t\t<img decoding=\"async\" class=\"jet-images-layout__image-instance\" src=\"https:\/\/macmarketing.us\/wp-content\/uploads\/2025\/03\/Artboard-7_5-20.jpg\" alt=\"Artboard 7_5-20\" loading=\"lazy\">\t\t\t<\/div>\n\t\t\t<div class=\"jet-images-layout__content\"><h5 class=\"jet-images-layout__title\">Regular<\/h5><div class=\"jet-images-layout__desc\">Regular version for all store<\/div><\/div>\n\t\t<\/a>\n\t<\/div>\n<\/div>\n<div class=\"jet-images-layout__item\">\n\t<div class=\"jet-images-layout__inner\">\n\t\t<div class=\"jet-images-layout__image-loader\"><span><\/span><\/div>\n\t\t<a class=\"jet-images-layout__link\" href=\"https:\/\/macmarketing.us\/wp-content\/uploads\/2025\/03\/Artboard-7_3-20.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"4c0a9261\">\n\t\t\t<div class=\"jet-images-layout__image\">\n\t\t\t\t<img decoding=\"async\" class=\"jet-images-layout__image-instance\" src=\"https:\/\/macmarketing.us\/wp-content\/uploads\/2025\/03\/Artboard-7_3-20.jpg\" alt=\"Artboard 7_3-20\" loading=\"lazy\">\t\t\t<\/div>\n\t\t\t<div class=\"jet-images-layout__content\"><h5 class=\"jet-images-layout__title\">Cocktail<\/h5><div class=\"jet-images-layout__desc\">Light Version for light weight file<\/div><\/div>\n\t\t<\/a>\n\t<\/div>\n<\/div>\n<\/div><\/div>\n<\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-12ad555a elementor-widget elementor-widget-heading\" data-id=\"12ad555a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">sURCHARGE Version for all Store<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-401424c2 elementor-widget elementor-widget-html\" data-id=\"401424c2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\r\n  .form-control {\r\n    margin-bottom: 10px; \/* Add space below each input *\/\r\n  }\r\n\r\n  button {\r\n    margin-bottom: 20px; \/* Add space below each button *\/\r\n  }\r\n<\/style>\r\n\r\n\r\n<script src=\"https:\/\/unpkg.com\/pdf-lib@1.4.0\"><\/script>\r\n<script src=\"https:\/\/unpkg.com\/downloadjs@1.4.7\"><\/script>\r\n\r\n<p>Please input the rate (without percentage) to generate pdf file<\/p>\r\n\r\n<input class=\"form-control\" type=\"text\" value=\"3.00%\" size=\"80\" id=\"regularForm\">\r\n<button onclick=\"changePdf('regularForm', 'https:\/\/macmarketing.us\/wp-content\/uploads\/2025\/03\/Disclaimer-4x6-horizontal-copy-Surchage-Blank-No-Wine.pdf', 'MacMarketingSurchage_Reg.pdf')\">Generate PDF Regular Version<\/button>\r\n\r\n<input class=\"form-control\" type=\"text\" value=\"3.00%\" size=\"80\" id=\"cocktailForm\">\r\n<button onclick=\"changePdf('cocktailForm', 'https:\/\/macmarketing.us\/wp-content\/uploads\/2025\/03\/Disclaimer-4x6-horizontal-copy-Surchage-Blank.pdf', 'MacMarketingSurchage_Cocktail.pdf')\">Generate PDF Cocktail Version<\/button>\r\n\r\n<p class=\"small\">(Your browser will download the resulting file)<\/p>\r\n\r\n<script>\r\n  const { degrees, PDFDocument, rgb, StandardFonts } = PDFLib;\r\n\r\n  async function changePdf(inputId, pdfUrl, outputFileName) {\r\n    \/\/ Get rate input\r\n    const rate = document.getElementById(inputId).value;\r\n\r\n    \/\/ Fetch an existing PDF document\r\n    const existingPdfBytes = await fetch(pdfUrl).then(res => res.arrayBuffer());\r\n\r\n    \/\/ Load a PDFDocument from the existing PDF bytes\r\n    const pdfDoc = await PDFDocument.load(existingPdfBytes);\r\n\r\n    \/\/ Embed the Helvetica font\r\n    const helveticaFont = await pdfDoc.embedFont(StandardFonts.HelveticaBold);\r\n\r\n    \/\/ Get the first page of the document\r\n    const firstPage = pdfDoc.getPages()[0];\r\n\r\n    \/\/ Get the width and height of the first page\r\n    const { width, height } = firstPage.getSize();\r\n\r\n    \/\/ Draw text on the first page\r\n    firstPage.drawText(rate, {\r\n      x: width \/ 3 ,\r\n      y: height \/2  +20,\r\n      size: 60,\r\n      font: helveticaFont,\r\n      color: rgb(0.89, 0.36, 0.145),\r\n    });\r\n\r\n    \/\/ Serialize the PDFDocument to bytes (a Uint8Array)\r\n    const pdfBytes = await pdfDoc.save();\r\n\r\n    \/\/ Trigger the browser to download the PDF document\r\n    download(pdfBytes, outputFileName, \"application\/pdf\");\r\n  }\r\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3f38b905 elementor-widget elementor-widget-heading\" data-id=\"3f38b905\" data-element_type=\"widget\" data-e-type=\"widget\" id=\"dual\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">DUAL PRICING GENERATOR<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1dc0b2d elementor-widget elementor-widget-jet-images-layout\" data-id=\"1dc0b2d\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;columns&quot;:&quot;2&quot;}\" data-widget_type=\"jet-images-layout.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-jet-images-layout jet-elements\">\n<div class=\"jet-images-layout layout-type-masonry\" data-settings='{&quot;layoutType&quot;:&quot;masonry&quot;,&quot;justifyHeight&quot;:300}'>\n\t<div class=\"jet-images-layout__list salvattore column-desktop-2 column-tablet-2 column-mobile-1\" data-columns>\n<div class=\"jet-images-layout__item\">\n\t<div class=\"jet-images-layout__inner\">\n\t\t<div class=\"jet-images-layout__image-loader\"><span><\/span><\/div>\n\t\t<a class=\"jet-images-layout__link\" href=\"https:\/\/macmarketing.us\/wp-content\/uploads\/2025\/03\/Artboard-7_4-20.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"1dc0b2d\">\n\t\t\t<div class=\"jet-images-layout__image\">\n\t\t\t\t<img decoding=\"async\" class=\"jet-images-layout__image-instance\" src=\"https:\/\/macmarketing.us\/wp-content\/uploads\/2025\/03\/Artboard-7_4-20.jpg\" alt=\"Artboard 7_4-20\" loading=\"lazy\">\t\t\t<\/div>\n\t\t\t<div class=\"jet-images-layout__content\"><h5 class=\"jet-images-layout__title\">Regular<\/h5><div class=\"jet-images-layout__desc\">COCKTAIL VERSION<\/div><\/div>\n\t\t<\/a>\n\t<\/div>\n<\/div>\n<div class=\"jet-images-layout__item\">\n\t<div class=\"jet-images-layout__inner\">\n\t\t<div class=\"jet-images-layout__image-loader\"><span><\/span><\/div>\n\t\t<a class=\"jet-images-layout__link\" href=\"https:\/\/macmarketing.us\/wp-content\/uploads\/2025\/03\/Artboard-7_2-20.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"1dc0b2d\">\n\t\t\t<div class=\"jet-images-layout__image\">\n\t\t\t\t<img decoding=\"async\" class=\"jet-images-layout__image-instance\" src=\"https:\/\/macmarketing.us\/wp-content\/uploads\/2025\/03\/Artboard-7_2-20.jpg\" alt=\"Artboard 7_2-20\" loading=\"lazy\">\t\t\t<\/div>\n\t\t\t<div class=\"jet-images-layout__content\"><h5 class=\"jet-images-layout__title\">Cocktail<\/h5><div class=\"jet-images-layout__desc\">COCKTAIL VERSION<\/div><\/div>\n\t\t<\/a>\n\t<\/div>\n<\/div>\n<\/div><\/div>\n<\/div>\t\t\t\t<\/div>\n\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<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7710b15 elementor-section-boxed elementor-section-height-default elementor-section-height-default wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no\" data-id=\"7710b15\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\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-50 elementor-top-column elementor-element elementor-element-119cd96\" data-id=\"119cd96\" data-element_type=\"column\" data-e-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-9d8f1ec elementor-align-center elementor-widget elementor-widget-button\" data-id=\"9d8f1ec\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-sm\" href=\"https:\/\/macmarketing.us\/wp-content\/uploads\/2025\/03\/Disclaimer-4x6-horizontal-dual-pricing-no-wine-1.pdf\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Download Dual Pricing Notice<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-d2c3a5b\" data-id=\"d2c3a5b\" data-element_type=\"column\" data-e-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-47d8f24 elementor-align-center elementor-widget elementor-widget-button\" data-id=\"47d8f24\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-sm\" href=\"https:\/\/macmarketing.us\/wp-content\/uploads\/2025\/03\/Disclaimer-4x6-horizontal-dual-pricing-1.pdf\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Download Dual Pricing Notice with Cocktail<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\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>","protected":false},"excerpt":{"rendered":"<p>SURCHAGE RATE GENERATOR Need Dual Pricing? Click Here Regular Regular version for all store Cocktail Light Version for light weight file sURCHARGE Version for all Store Please input the rate (without percentage) to generate pdf file Generate PDF Regular Version Generate PDF Cocktail Version (Your browser will download the resulting file) DUAL PRICING GENERATOR Regular COCKTAIL VERSION Cocktail COCKTAIL VERSION Download Dual Pricing Notice Download Dual Pricing Notice with Cocktail<\/p>","protected":false},"author":4,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2145","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/macmarketing.us\/vi\/wp-json\/wp\/v2\/pages\/2145","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/macmarketing.us\/vi\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/macmarketing.us\/vi\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/macmarketing.us\/vi\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/macmarketing.us\/vi\/wp-json\/wp\/v2\/comments?post=2145"}],"version-history":[{"count":114,"href":"https:\/\/macmarketing.us\/vi\/wp-json\/wp\/v2\/pages\/2145\/revisions"}],"predecessor-version":[{"id":6212,"href":"https:\/\/macmarketing.us\/vi\/wp-json\/wp\/v2\/pages\/2145\/revisions\/6212"}],"wp:attachment":[{"href":"https:\/\/macmarketing.us\/vi\/wp-json\/wp\/v2\/media?parent=2145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}