{"id":107254,"date":"2018-01-02T07:40:12","date_gmt":"2018-01-02T07:40:12","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=107254"},"modified":"2024-04-01T11:47:32","modified_gmt":"2024-04-01T11:47:32","slug":"generate-pdf-programmatically-magento2","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/","title":{"rendered":"Generate PDF programmatically in Magento2"},"content":{"rendered":"\n<p><a href=\"https:\/\/webkul.com\/blog\/generate-pdf-string-magento-2-0\/\">Generate PDF <\/a>programmatically in Magento2<\/p>\n\n\n\n<p>Today I am going to explain that how you can generate a PDF file programmatically in magento 2 in this article. So \u00a0you can apply the following code according to your requirement in any file, i.e. block, <a href=\"https:\/\/webkul.com\/blog\/creating-post-method-controller-in-magento-2-3\/\">controller<\/a>, model, helper, etc. I have written in controller file only for example.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\nnamespace Company\\Module\\Controller\\Index;\n\nuse Magento\\Framework\\App\\Action\\Action;\nuse Magento\\Framework\\App\\Action\\Context;\n\nclass Index extends Action\n{\n    \/**\n     * @var \\Magento\\Framework\\App\\Response\\Http\\FileFactory\n     *\/\n    protected $fileFactory;\n\n    \/**\n     * @param Context                               $context\n     *\/\n    public function __construct(\n        Context $context,\n        \\Magento\\Framework\\App\\Response\\Http\\FileFactory $fileFactory\n    ) {\n        $this-&gt;fileFactory = $fileFactory;\n        parent::__construct($context);\n    }\n\n    \/**\n     * to generate pdf\n     *\n     * @return void\n     *\/\n    public function execute()\n    {\n        $pdf = new \\Zend_Pdf();\n        $pdf-&gt;pages&#091;] = $pdf-&gt;newPage(\\Zend_Pdf_Page::SIZE_A4);\n        $page = $pdf-&gt;pages&#091;0]; \/\/ this will get reference to the first page.\n        $style = new \\Zend_Pdf_Style();\n        $style-&gt;setLineColor(new \\Zend_Pdf_Color_Rgb(0,0,0));\n        $font = \\Zend_Pdf_Font::fontWithName(\\Zend_Pdf_Font::FONT_TIMES);\n        $style-&gt;setFont($font,15);\n        $page-&gt;setStyle($style);\n        $width = $page-&gt;getWidth();\n        $hight = $page-&gt;getHeight();\n        $x = 30;\n        $pageTopalign = 850; \/\/default PDF page height\n        $this-&gt;y = 850 - 100; \/\/print table row from page top \u2013 100px\n        \/\/Draw table header row\u2019s\n        $style-&gt;setFont($font,16);\n        $page-&gt;setStyle($style);\n        $page-&gt;drawRectangle(30, $this-&gt;y + 10, $page-&gt;getWidth()-30, $this-&gt;y +70, \\Zend_Pdf_Page::SHAPE_DRAW_STROKE);\n        $style-&gt;setFont($font,15);\n        $page-&gt;setStyle($style);\n        $page-&gt;drawText(__(&quot;Cutomer Details&quot;), $x + 5, $this-&gt;y+50, &#039;UTF-8&#039;);\n        $style-&gt;setFont($font,11);\n        $page-&gt;setStyle($style);\n        $page-&gt;drawText(__(&quot;Name : %1&quot;, &quot;John Smith&quot;), $x + 5, $this-&gt;y+33, &#039;UTF-8&#039;);\n        $page-&gt;drawText(__(&quot;Email : %1&quot;,&quot;test@example.com&quot;), $x + 5, $this-&gt;y+16, &#039;UTF-8&#039;);\n\n        $style-&gt;setFont($font,12);\n        $page-&gt;setStyle($style);\n        $page-&gt;drawText(__(&quot;PRODUCT NAME&quot;), $x + 60, $this-&gt;y-10, &#039;UTF-8&#039;);\n        $page-&gt;drawText(__(&quot;PRICE&quot;), $x + 200, $this-&gt;y-10, &#039;UTF-8&#039;);\n        $page-&gt;drawText(__(&quot;QUANTITY&quot;), $x + 310, $this-&gt;y-10, &#039;UTF-8&#039;);\n        $page-&gt;drawText(__(&quot;TOTAL&quot;), $x + 440, $this-&gt;y-10, &#039;UTF-8&#039;);\n\n        $style-&gt;setFont($font,10);\n        $page-&gt;setStyle($style);\n        $add = 9;\n        $page-&gt;drawText(&quot;$10.00&quot;, $x + 210, $this-&gt;y-30, &#039;UTF-8&#039;);\n        $page-&gt;drawText(5, $x + 330, $this-&gt;y-30, &#039;UTF-8&#039;);\n        $page-&gt;drawText(&quot;$50.00&quot;, $x + 470, $this-&gt;y-30, &#039;UTF-8&#039;);\n        $pro = &quot;ABC product&quot;;\n        $page-&gt;drawText($pro, $x + 65, $this-&gt;y-30, &#039;UTF-8&#039;);\n        $page-&gt;drawRectangle(30, $this-&gt;y -62, $page-&gt;getWidth()-30, $this-&gt;y + 10, \\Zend_Pdf_Page::SHAPE_DRAW_STROKE);\n        $page-&gt;drawRectangle(30, $this-&gt;y -62, $page-&gt;getWidth()-30, $this-&gt;y - 100, \\Zend_Pdf_Page::SHAPE_DRAW_STROKE);\n        $style-&gt;setFont($font,15);\n        $page-&gt;setStyle($style);\n        $page-&gt;drawText(__(&quot;Total : %1&quot;, &quot;$50.00&quot;), $x + 435, $this-&gt;y-85, &#039;UTF-8&#039;);\n        $style-&gt;setFont($font,10);\n        $page-&gt;setStyle($style);\n        $page-&gt;drawText(__(&quot;ABC Footer example&quot;), ($page-&gt;getWidth()\/2)-50, $this-&gt;y-200);\n\n        $fileName = &#039;example.pdf&#039;;\n\n        $this-&gt;fileFactory-&gt;create(\n           $fileName,\n           $pdf-&gt;render(),\n           \\Magento\\Framework\\App\\Filesystem\\DirectoryList::VAR_DIR, \/\/ this pdf will be saved in var directory with the name example.pdf\n           &#039;application\/pdf&#039;\n        );\n    }\n}<\/pre>\n\n\n\n<p>Now when you hit above controller, i.e. module\/index\/index then there will be a pop up to save\/open PDF file. Below is the output of above PDF:<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"979\" height=\"1024\" data-id=\"429453\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/03\/Screenshot_418-979x1024-1.webp\" alt=\"generated pdf\" class=\"wp-image-429453\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/03\/Screenshot_418-979x1024-1.webp 979w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/03\/Screenshot_418-979x1024-1-287x300.webp 287w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/03\/Screenshot_418-979x1024-1-238x249.webp 238w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/03\/Screenshot_418-979x1024-1-768x803.webp 768w\" sizes=\"(max-width: 979px) 100vw, 979px\" loading=\"lazy\" \/><\/figure>\n<\/figure>\n\n\n\n<p>Hope this blog will help you to develop custom functionality in your module in a better way.&nbsp;Try this and&nbsp;if you have any query then&nbsp;just comment below \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Generate PDF programmatically in Magento2 Today I am going to explain that how you can generate a PDF file programmatically in magento 2 in this article. So \u00a0you can apply the following code according to your requirement in any file, i.e. block, controller, model, helper, etc. I have written in controller file only for example. <a href=\"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":103,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[302],"tags":[2460],"class_list":["post-107254","post","type-post","status-publish","format-standard","hentry","category-magento2","tag-magento-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Generate PDF programmatically in Magento2 - Webkul Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Generate PDF programmatically in Magento2 - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Generate PDF programmatically in Magento2 Today I am going to explain that how you can generate a PDF file programmatically in magento 2 in this article. So \u00a0you can apply the following code according to your requirement in any file, i.e. block, controller, model, helper, etc. I have written in controller file only for example. [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-01-02T07:40:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-01T11:47:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2024\/03\/Screenshot_418-979x1024-1.webp\" \/>\n<meta name=\"author\" content=\"Pranjali Goel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pranjali Goel\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/\"},\"author\":{\"name\":\"Pranjali Goel\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/c1964884ceb33a5ffdf322ee5424f692\"},\"headline\":\"Generate PDF programmatically in Magento2\",\"datePublished\":\"2018-01-02T07:40:12+00:00\",\"dateModified\":\"2024-04-01T11:47:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/\"},\"wordCount\":122,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2024\/03\/Screenshot_418-979x1024-1.webp\",\"keywords\":[\"Magento 2\"],\"articleSection\":[\"Magento2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/\",\"url\":\"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/\",\"name\":\"Generate PDF programmatically in Magento2 - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2024\/03\/Screenshot_418-979x1024-1.webp\",\"datePublished\":\"2018-01-02T07:40:12+00:00\",\"dateModified\":\"2024-04-01T11:47:32+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/03\/Screenshot_418-979x1024-1.webp\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/03\/Screenshot_418-979x1024-1.webp\",\"width\":979,\"height\":1024,\"caption\":\"generated pdf\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Generate PDF programmatically in Magento2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/c1964884ceb33a5ffdf322ee5424f692\",\"name\":\"Pranjali Goel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e670273251719f83735534af186231dd99fbe378466fef356d4e55de5b46244f?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e670273251719f83735534af186231dd99fbe378466fef356d4e55de5b46244f?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"caption\":\"Pranjali Goel\"},\"description\":\"Believes in simple lifestyle and follow a simple logic to make herself better than yesterday.\",\"url\":\"https:\/\/webkul.com\/blog\/author\/pranjali968\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Generate PDF programmatically in Magento2 - Webkul Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/","og_locale":"en_US","og_type":"article","og_title":"Generate PDF programmatically in Magento2 - Webkul Blog","og_description":"Generate PDF programmatically in Magento2 Today I am going to explain that how you can generate a PDF file programmatically in magento 2 in this article. So \u00a0you can apply the following code according to your requirement in any file, i.e. block, controller, model, helper, etc. I have written in controller file only for example. [...]","og_url":"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2018-01-02T07:40:12+00:00","article_modified_time":"2024-04-01T11:47:32+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2024\/03\/Screenshot_418-979x1024-1.webp","type":"","width":"","height":""}],"author":"Pranjali Goel","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Pranjali Goel","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/"},"author":{"name":"Pranjali Goel","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/c1964884ceb33a5ffdf322ee5424f692"},"headline":"Generate PDF programmatically in Magento2","datePublished":"2018-01-02T07:40:12+00:00","dateModified":"2024-04-01T11:47:32+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/"},"wordCount":122,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2024\/03\/Screenshot_418-979x1024-1.webp","keywords":["Magento 2"],"articleSection":["Magento2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/","url":"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/","name":"Generate PDF programmatically in Magento2 - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2024\/03\/Screenshot_418-979x1024-1.webp","datePublished":"2018-01-02T07:40:12+00:00","dateModified":"2024-04-01T11:47:32+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/03\/Screenshot_418-979x1024-1.webp","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/03\/Screenshot_418-979x1024-1.webp","width":979,"height":1024,"caption":"generated pdf"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/generate-pdf-programmatically-magento2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Generate PDF programmatically in Magento2"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/c1964884ceb33a5ffdf322ee5424f692","name":"Pranjali Goel","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e670273251719f83735534af186231dd99fbe378466fef356d4e55de5b46244f?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e670273251719f83735534af186231dd99fbe378466fef356d4e55de5b46244f?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","caption":"Pranjali Goel"},"description":"Believes in simple lifestyle and follow a simple logic to make herself better than yesterday.","url":"https:\/\/webkul.com\/blog\/author\/pranjali968\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/107254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/103"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=107254"}],"version-history":[{"count":4,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/107254\/revisions"}],"predecessor-version":[{"id":430521,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/107254\/revisions\/430521"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=107254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=107254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=107254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}