In this blog, we are going to learn how to add a custom PDF in Magento2.
In this example we are going to generate PDF which will be having a custom text & HTML rendered in a PDF file.
Magento2 Custom module to print & download PDF document with custom HTML & text inside it. As of know we have added this button on details page you can even set the page as per your need on any page after making some basic Magento2 changes in code.
Wondering how to achieve that? Don't worry we have got the solution for it.
Install our module Binstellar/Productpdf & get the download option on product details page.
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush