I want to change logo and text on the PDF in Request a quote plugin. How do I do that?
Kindly note that PNG files are not suitable for logo replacement. For this operation, please use an SVG file converted to base64 encoding.
Please follow the steps below to replace the logo image and edit the text on the PDF.
Step 1. Head to Amasty → Request a Quote → Configuration → PDF tab and delete all the contents of the src attribute in the Template Content field:
Step 2. Navigate to a dedicated website where an SVG file can be converted into the base64 encoding. Upload your SVG file, press Encode SVG to Base64 and copy the result:
Step 3. Paste the copied line into the src attribute between the double quotes in the Template Content field:
Step 4. Save the changes and flush the cache
As for text, it can be edited in the same Template Content field. If you'd need to change PDF styling, it can be done in the following file:
app/code/Amasty/RequestQuote/view/base/web/css/pdf_styles.less
Related Articles
How to change the background color in PDF templates?
Using the PDF Customizer module, it is possible to adjust the PDF documents according to your needs. By default, the extension provides 4 pre-cofigured templates that could be used for each type of the order-related document: Order, Invoice, Shipment ...
How do I embed the footer on every page in the multi-page PDF?
In order to place the footer on every page in the multi-page PDF, please go to Marketing > PDF Templates > open the template and add the following code at the beginning of the <body>: <div class="footer"> <p>Footer</p> </div> Once done, apply ...
How to select & adjust a custom logo?
To change the logo, please head to Content → Design → Configuration. From the grid, select the required scope, go to the detailed settings and move to Header section: Here you can select the image from the Magento media gallery or upload a file from ...
If I create the invoice with the Magento API, will the PDF be based on the Amasty template?
If the extension is installed and enabled, PDF will be generated on the Amasty template basis.
Letters are replaced with the question marks in the PDF. How do I fix it?
The issue is rooting in the DOMPDF library our extension is built on. Sometimes it fails to recognize specific fonts or locales. In order to fix this, you need to embed an external font in the template. If you're facing difficulties with the Chinese ...