Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [pdf]

Denotes questions related to PDF management and generation in Magento.

Filter by
Sorted by
Tagged with
0 votes
0 answers
3 views

Unable to add PDF as attachment

So I am using magento 2.4.6 and have created a PDF that customer can either download or email. The PDF is created and downlaoded successfully. Below is my code which sends an email without PDF for now,...
Muhammad Uzair Aziz's user avatar
0 votes
1 answer
20 views

Magento 2 : Change 'Shipping & Handling' label while print the order

I want to change the Label from 'Shipping & Handling' to 'Shipping Charges' while printing the pdf after order success. Can anyone help Thanks
JAYASHREE N's user avatar
0 votes
0 answers
25 views

Magento 2 : Invoice PDF Need Product Detail Customization

How can I add table structure to product section of the Invoice Pdf in Magento Invoice PDF?
Adarsh's user avatar
  • 1
2 votes
1 answer
96 views

Magento 2 : Print order pdf's error since upgrade to 2.4.7

I have upgrading to 2.4.7, after that I can no longer print any order pdf's, which is obviously problematic. Exception log below but I am not technical enough to know how to fix it! main.CRITICAL: ...
AndeeKnits's user avatar
0 votes
1 answer
44 views

Zend Equivalent class for Magento 2.4.6

We have updated our website to Magento 2.4.6. We are facing Zend issue with the following 1.Zend_Pdf pdf = new Zend_Pdf(); $page = new Zend_Pdf_Page(Zend_Pdf_Page::SIZE_A4); //var_dump($page); 2....
Jaisa's user avatar
  • 2,626
0 votes
1 answer
31 views

Middle name not showing in PDF print

I've got several orders with customers having a middle name. I want to include these in the PDF prints, but somehow it won't show. This is my current PDF address template: {{var firstname}} {{depend ...
MaxiKloas's user avatar
0 votes
0 answers
26 views

How to attach invoice pdf generate and send with custom email in magento 2.4.6

I would like to attach the invoice PDF to the custom email. I have searched through several links on Stack Exchange, but unfortunately, I have not been able to make any progress on this issue. I hope ...
Ravindrasinh Zala's user avatar
0 votes
0 answers
22 views

Issue in creating pdf using fileFactory->create() in magento 2

I am pulling files from 3rd party server using apis and generating pdf files. My code is some thing like this. I Will update the sample code to explain my approach. foreach ($fileData['dataDocuments'][...
Mujahidh's user avatar
  • 2,793
0 votes
2 answers
48 views

Want to get the products with their categories in PDF

I want to get the all products for all categories with the products details include image, size weight , price in one pdf Please help me how can I achieve this
Rana Zain's user avatar
  • 658
0 votes
0 answers
36 views

How to compress PDF of invoice shipment and Creditmemo

In Magento 2.4.1 I developed below code to compress the PDF and it was working fine Recently I updated Magento to 2.4.6-p3 and now compression stoped working. app/code/Vendor/CompressPDF/etc.xml <...
ishaq's user avatar
  • 195
1 vote
1 answer
33 views

How to change of the packingslip pdf file name (Shipment) with the shipping ID generated from admin?

Use di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/...
Shiv Om Mishra's user avatar
0 votes
0 answers
73 views

Arabic invoice pdf issue Magento 2.4.5 showing as Arabic letters but not correct

Preconditions (*) Magento 2.4.5-develop The store should be in Arabic Steps to reproduce (*) Place an order in Arabic store Customer fill the address and name all in Arabic Login to the admin panel ...
mdm95's user avatar
  • 23
0 votes
0 answers
18 views

Create custom invoice using default pdf with additional option in admin to download

I need to create a custom invoice using the default pdf class having an additional option in admin/orders download as "Invoice with vat" I did create a module using code from the following ...
ahmed's user avatar
  • 101
0 votes
2 answers
129 views

Retrieve Product Image in PDF

I have a custom Magento 2 Invoice PDF template. I manage to get all of the order/invoice info including the product image url but as soon as this is included in the img tag it is not displayed. ...
Chris Oliver's user avatar
0 votes
1 answer
163 views

How to save Magento 2 invoice PDF file with order ID instead of date?

When I print any invoice in Magento 2 the pdf save according to the current date I am saving it as for example invoice2023-05-10_05-58-26.pdf Instead, I wanted to save this pdf with order id like ...
mrshiam's user avatar
  • 15
0 votes
2 answers
348 views

How to allow access to a folder in Magento root?

I recently upgraded to Magento 2.4.6. I've always had a folder named "PS" with pdf files in my magento root but now I can't access it. I noticed that this line from RewriteRule . /pub/$0[L]* ...
Zei's user avatar
  • 21
0 votes
1 answer
87 views

Magento 2 How add PDF Uploader to UI Component?

How do I add a PDF uploader to the ui component? I could find how to add an image uploader, but I can't find how to do it for pdf files.
David Young's user avatar
1 vote
0 answers
143 views

Magento 2 Failed to load PDF document in chrome browser

Error Screenshot: https://i.sstatic.net/uDJ5c.png Error: Failed to load PDF document. Here is the code: <?php namespace Vendor\Extension\Controller; use Magento\Framework\App\Response\Http as ...
Anil Makwana's user avatar
0 votes
1 answer
180 views

Magento2 Read PDF data

Magento2 How can I read data from PDF file. The product data is in the form of table inside a PDF file. I need get the data & then make some changes
Arjun's user avatar
  • 3,586
1 vote
0 answers
161 views

magento2 image add in pdf how to? this code not working for me

$post = $this->getRequest()->getParam('sku'); $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $helperImport = $objectManager->get('\Magento\Catalog\Helper\Image'); $...
milan's user avatar
  • 21
0 votes
0 answers
68 views

magento2 product attribute name and value generate in pdf format on detail page?

getSkU(); ?> getName(); ?> getPrice(); ?> getShortDescription(); ?> getDescription(); ?> Download Data sheet
milan's user avatar
  • 21
0 votes
1 answer
723 views

magento2.4 how to upload Pdf file

How we can upload the PDF file in magento2.4 from admin module? We are upload PDF in backed admin its not support magento2.4
vijayalakshmi's user avatar
1 vote
0 answers
143 views

Magento 2: image issue in jspdf

I am using jspdf library to generate pdf and I am unable to print images on the pdf. here is my code: require(['jquery','jsPDF'], function ($,jsPDF) { var logo = 'https://rugs.a2hosted.com/...
mechanic's user avatar
  • 440
0 votes
1 answer
177 views

Zend Pdf round corners in rectangle section

I wrote the below code to show rectangle in pdf file $page->setFillColor(new \Zend_Pdf_Color_GrayScale(0.92)); $page->setLineColor(new \Zend_Pdf_Color_GrayScale(0.92)); $...
Niraj Patel's user avatar
0 votes
0 answers
176 views

invoice pdf item price exclusive tax

I want to have article prices and exclusive tax in invoice pdfs. I have not found any article searching which points me in a direction. At the moment prices are shown inclusive of tax. I have changed ...
charismeki's user avatar
0 votes
2 answers
405 views

How to change the favicon logo on the browser to open pdf files in Magento 2

I have checked on a few other websites and on my local version when i open the pdf file my mini icon changes. How i can open the pdf file but the icon remains the default on my website
nhungo duc's user avatar
0 votes
2 answers
1k views

How to attach invoice pdf with invoice email

I would like to attach the invoice PDF to the invoice email. I have searched through several links on Stack Exchange, but unfortunately, I have not been able to make any progress on this issue. I am ...
Tj1997's user avatar
  • 47
1 vote
1 answer
651 views

Magento 2.4.3 create custom pdf

Hi team i have custom data in table formate like below formate <tbody><tr> <td class='item-info'>BT40CC25120ARRIS<br/></td> ...
Pawankumar's user avatar
0 votes
0 answers
63 views

Solution for editing and sending PDF invoices?

What would be the easiest solution to edit the design of a PDF invoice and send it to customers? As I understand, editing the design in Magento is a bit too complicated. I'm currently considering 2 ...
antoniog's user avatar
  • 110
0 votes
2 answers
20k views

How do I make a pdf link within website open in a new window?

Is there an easy way to set a pdf link (link to a file within the website) open in a new window? I am sure this must be something to do with the code, but it is the first time I have been asked to do ...
G Holden's user avatar
0 votes
1 answer
114 views

How can I remove the white space from pdf invoice on tax(VAT) and make it 2 columns

I have a space on the row where the tax(VAT) is placed. On subtotal, total, etc and other fees the columns are ok, but for some reason on the tax row the placement is different and the pdf is printed ...
Raluca Albu's user avatar
0 votes
1 answer
273 views

Magento 2.4 Invoice - Templates

Does anyone know if there is anywhere that has a selection of Free PDF Invoice templates that is compatible with Magento 2.4.3? I need to show each custom attribute on a new line, I would also like ...
Ryan's user avatar
  • 11
0 votes
1 answer
151 views

Blog module with file attachment feature in magento 2

Is there any extension available for blogs that allow attaching pdf, images, videos, and content specific to the blog in Magento 2.4? Please suggest. free or paid anything is fine.
Nicola Smith's user avatar
0 votes
1 answer
333 views

Order details page as pdf

I need to make an extension to generate order details page as a pdf file when I click in print pdf button.help please
Toranto mina's user avatar
1 vote
0 answers
242 views

print order details pdf in order detail page

I need to add a print button to the order detail page so once we click on it we have the same information in a downloaded pdf format
sara ben's user avatar
0 votes
0 answers
145 views

How to add a Link in Shipment PDF?

I'm creating a PDF file with a link and I need to open the link in a new window. How can I do that?
Kanchi's user avatar
  • 1
0 votes
1 answer
323 views

Generate order confirmation PDF

I am creating a module, that should send invoices and the order(confirmation) pdfs to some declared E-Mail addresses. I am able to do so for the invoices. But I dont know how to generate the order-...
Mario's user avatar
  • 478
1 vote
1 answer
42 views

Magento2.4.2 own module class does not appear in generated (no error while setup:ci:compile)

sorry to bother but I'm really stuck with a strange problem. My goal is to have the invoice PDF changed but the class I've created to do this (which is currently a bunch of code from another guy) does ...
daill's user avatar
  • 11
0 votes
1 answer
642 views

Magento 2 - include JS library without Require.JS

I'm trying to include the jsPDF library in my Magento 2 like this: <script type="text/javascript" src="<?php echo $this->getViewFileUrl("Vendor_Module::js/jsPDF.js");...
Jackom's user avatar
  • 493
0 votes
1 answer
866 views

How to add custom font in DOM pdf in magento 2?

I have tried to add font using below code in head tag of html but it is not working. DOM PDF is showing it's default font. But i want to show custom fonts as per my website. So tried below code @font-...
ZealousWeb's user avatar
  • 2,088
1 vote
1 answer
2k views

Magento 2: Show whole HTML code(phtml file code) into PDF file and Download with the use of DOM PDF?

I have tried to do it with zend pdf but i am not able to show whole html content with the use of zend pdf. If i want to display content of cms block , then i am not able to do it with Zend PDF. I have ...
ZealousWeb's user avatar
  • 2,088
0 votes
1 answer
174 views

Sending PDF via email works when command run on console, but not when run by a cron job

I've become stuck, I want to send a custom report via email in a pdf format. It's strange because it works correctly when I run the command via the console, but when it's run via a cron job nothing ...
Joseph Young's user avatar
1 vote
0 answers
237 views

Magento 2 - How to customize Shipping Label pdf print-out

I want to change the design and layout of my print shipping label pdf print-outs to make a simple and clean print for the employes to work through. Is there any extension / tutorial / anything else ...
Pawankumar's user avatar
0 votes
2 answers
233 views

Include Shipment and Inoices pdf generator in order grid in magento 2.3.2

As in magento 1, there is Shipment and invoice Pdf generator in order grid also. How can i include that in magento 2 as well. I want to include and shipment and invoce pdf generator in order grid ...
Nafsss's user avatar
  • 760
2 votes
1 answer
439 views

Custom Invoice PDF from external source

I'm trying to read the invoice pdf from an external source. Can anybody tell me how can I make the external pdf available to the client overriding the one made available by default? Thanks !
Joao71's user avatar
  • 1,197
0 votes
1 answer
165 views

Magento Commerce Cloud 2.3 download link PDF document

I need to provide a download link in my footer where customers get the revocation form. I have the following in my phtml filebut it is not working. The PDF document is in pub/media/pdf/Muster-...
Th. Schott's user avatar
2 votes
0 answers
198 views

Magento2 how to display additional custom total value in shipment email

I have added a new custom cart total (e.g. Extra Fee) in my current project. I made it display on almost every page, email and pdf files. However, I can't able to find a way to display it in the ...
Pratik Navapara's user avatar
0 votes
0 answers
176 views

Magento2: Catalog PDF generator

We have install free extension catalog pdf geenrator: https://snm-portal.com/magento2-pdf-publication.html movie with issue: https://streamable.com/h4g99 But in tab "Templates" we get issue: https://...
Sylvester's user avatar
  • 2,234
0 votes
1 answer
603 views

Magento 2: zend pdf anchor link not show in pdf file

I am using below code to show hyperlink in pdf file but link is not showing.Drawtext method works fine.It means hyperlink code is not working $pdf = new \Zend_Pdf(); $pdf->...
Niraj Patel's user avatar
0 votes
1 answer
456 views

Magento 2 Custom UI grid form.php validate upload file extension

I want to check the upload file extension in form.php, I have three upload file options I want to check the upload file is pdf or not. Thanks in advance. my form.php file is namespace Vendor\...
Arjun Soni's user avatar

1
2 3 4 5
9