Questions tagged [invoice-pdf]

Questions about creating or editing invoice pdfs.

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

Magento2 Getting Error: The invoice can't be saved at this time. Please try again later

Steps to replicate the problem: Create Order by user Press invoice by admin Cannot Submit invoice Error: The invoice can't be saved at this time. Please try again later. Can you please suggest how I ...
SuSu Dev's user avatar
0 votes
0 answers
33 views

Magento 1.9 - Sales Order Invoice Pdf font Chinese not working

I have a problem with Chinese fonts. I edited the file app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php Or even override it but the font remains unchanged. Override: app/code/local/Module/Pdf/etc/...
River's user avatar
  • 95
0 votes
0 answers
23 views

There are no printable documents related to selected orders in Magento 2.4?

Magento 2.4.6 After upgrading 2.3.5 -> 2.4.6 I am getting the There are no printable documents related to selected orders message when I try to print invoices from the order grid. Printing the ...
user4095519's user avatar
0 votes
0 answers
50 views

Copied Magento 2 website PDF Invoices not working

I have copied our website over to a new hosting platform with more resources etc. I have done this lots of times before without any difficulty. Everything is working apart from Sales PDF Invoices. ...
Ryan's user avatar
  • 11
0 votes
0 answers
46 views

Magento2 How to reduce file size of invoice pdf (need to support Chinese and Korean characters)?

Because Magento OOTB can not support Chinese and Korean characters, so I use the external font file (this font https://fonts.google.com/noto/specimen/Noto+Serif+HK?noto.query=Noto+Serif+HK) to do this....
Zoe's user avatar
  • 51
0 votes
0 answers
34 views

Can't download PDF invoice, getting a "network failure" error. Magento ver. 2.3.4

I am trying to download an invoice via "Print PDF" in one of my orders. But I'm getting the error "Failed - Network error" in Chrome, Firefox and Edge. How can I fix this so I will ...
Roan SPR Retail's user avatar
1 vote
3 answers
471 views

Magento2 Invoice Print PDF editing

I wan to edit the totals of Invoice print in PDF format. If it was HTML page than its easy to inspect it. But I can't find where i can adjust the widht of a cell. As you can see the Discount text is ...
Sanaullah Ahmad's user avatar
0 votes
1 answer
51 views

Magento 2: How we can hide duplicate coupon details (label and amount) from order invoice pdf?

I want to hide cart price rule applied coupon code details (Label and amount) from order invoice pdf: I tried to hide this by applying condition on label wise but It's not working and it's failing ...
Faisal Sheikh's user avatar
1 vote
1 answer
167 views

Magento 2.4.2 : How to add page number in footer of Invoice pdf?

Can anybody tell me how we can add Page numbers to each page of the invoice pdf? https://nimb.ws/rcNG8B I want to add the page numbers in the footer.
Nicola Smith's user avatar
1 vote
0 answers
237 views

Magento 2.4.5 print invoice or print credit memo not working from the admin side

When I try to print invoices or credit memos from the admin side I face the below error. Error Screenshot: https://i.imgur.com/U6ZmZhj.png I use the below code: File Path: Vendor/Extension/Model/...
Anil Makwana's user avatar
0 votes
1 answer
269 views

Override DefaultInvoice.php file to render custom row in magento 2.4.4

I need to override Magento\Sales\Model\Order\Pdf\Items\Invoice\DefaultInvoice.php file to render a custom row in Magento 2.4.4 I tried with preferences like <preference for="Magento\Sales\...
Monark Bhawani's user avatar
0 votes
0 answers
160 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
1 answer
212 views

How to generate Multi-Language invoice and email

I have a multi-language store and I need to generate my invoice in 2 different languages in a PDF and the invoice email should also have both the languages. How can I do that.
Muhammad Hamza's user avatar
0 votes
2 answers
992 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
0 votes
1 answer
572 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
1 answer
218 views

How to open a invoice pdf in a new tab in Magento backend?

How to open an invoice pdf in a new tab in the Magento backend? How to see the preview of the invoice print in a new tab(target _blank) via the Magento invoice grid I have added the new column "...
Jaisa's user avatar
  • 2,596
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
3 answers
479 views

How to override class Magento\Sales\Model\Order\Pdf\Total\DefaultTotal?

I am trying to override getFullTaxInfo() of class Magento\Sales\Model\Order\Pdf\Total\DefaultTotal using preference but this is not working. Can anyone help to do it? di.xml <?xml version="1....
Vinod Kumar's user avatar
  • 2,045
0 votes
1 answer
159 views

How to show Items data in base currency instead display currency in PDF Invoice?

How to i can show Item price and subtotal in base currency instead Display currency in Pdf Invoice Magento 2 ? I have call rest data in Base currency But facing issue on items data. Kind Regards
Wajahat Bashir's user avatar
1 vote
0 answers
169 views

Magento 2: Print arabic invoice pdf character problem

I have a problem with Arabic font, when I get short_description in invoice pdf the breakpoint of the letters is not correct. Text before transfer to pdf invoice All Purpose Flour AL BAKER آرد همه ...
BenjaminVu's user avatar
1 vote
2 answers
1k views

Magento 2.4.2 showing Undefined property $appEmulation when I create pdf invoice preference

I have created Preference for Magento\Sales\Model\Order\Pdf\Invoice file, inside preference Invoice class I overwrite getPdf function but it is showing below error: Exception #0 (Exception): Notice: ...
Sanjeev Kumar Sharma's user avatar
0 votes
2 answers
126 views

Magento 2.4 Custom Sort Order to Print Multiple PDF Invoices (Grouped Print sorted by Customer Name, then by order date)?

Is it possible to select a range of invoices, apply a sort (say by Customer Name), then to print the selected range in that order? We have customers placing numerous orders in a week that we list ...
Alun Morgan's user avatar
1 vote
1 answer
470 views

Magento 2 remove subtotal from Invoice PDF

I've been trying to remove subtotal from the invoice pdf. I have override vendor/magento/module-sales/etc/pdf.xml from my custom module but didn't work. I have just commented on the subtoal. but it ...
Navin Bhudiya's user avatar
0 votes
1 answer
418 views

How to align the SKU column in invoice pdf?

In generated pdf for the invoice, I have the name of the products overlapping the SKU column , I have changed some code but I don't really know how to get rid of this problem , if anyone can help me ...
coding mv's user avatar
  • 129
1 vote
0 answers
160 views

How do I amend Magento 2 'Bundle' products layout in PDF Invoices?

I've successfully amended my Magento 2 PDF invoices, changing the styling, adding a footer etc. I've managed to move the 'Qty' so that it's first in the item list, as below: However, I can't seem to ...
Jobrien's user avatar
  • 33
1 vote
0 answers
185 views

Magento2 Invoice PDF issue

I have added extra data to be display before subtotal in INvoice PDF but not display properly Following is my code I added foreach ($invoice->getAllItems() as $item) { if ($item->...
Arjun's user avatar
  • 3,566
0 votes
1 answer
127 views

Magento 1.9 - How to display Shipping Address at the bottom of the invoice PDF?

Following this tutorial added following code to app/code/core/mage/sales/model/order/pdf/invoice.php protected function _drawFooter(Zend_Pdf_Page $page, $store = null) { $this->...
zus's user avatar
  • 155
1 vote
1 answer
775 views

Magento 2 Invoice PDF date is showing wrong

Magento 2 order date showing wrong in Invoice PDF,the order date is showing correct in admin order page but it is not showing correct when generate invoice PDF. Magento 2 admin order page(looks good) ...
sumeet bajaj's user avatar
  • 1,286
0 votes
2 answers
470 views

Override Magento 2 Order Invoice PDF

I can not seem to override the Magento Invoice class. I've created a module, installed it, enabled it. I have the following in my di.xml file <?xml version="1.0"?> <config xmlns:xsi="http://...
Josh Harmon's user avatar
0 votes
1 answer
233 views

How to change order invoice pdf for a particular invoice in Magent 2.3.3

Here I want to design and change the invoice PDF of a particular Invoice. I have added an observer to but it's creating a normal invoice. But I want to design and change the PDF of that particular ...
Sayyed Hasan's user avatar
0 votes
1 answer
908 views

How to add multiple pages in invoice pdf?

I am generating an invoice of order. when the order is big means it has a lot of different items in it. It shrinks the text inside the invoice. I want to make it go on two pages or more if the order ...
Zeeshan's user avatar
  • 181
0 votes
1 answer
2k views

How to put correct date on invoice PDF in Magento 2?

Invoice PDFs are generating the incorrect date, I have this on two sites both on 2.3.4 and en_GB locale e.g. $order->getCreatedAt() 2020-02-14 11:14:40 becomes $this->_localeDate->formatDate( ...
William Oakley's user avatar
1 vote
1 answer
903 views

Magento 2: How to add Grand Total in base currency to the PDF invoice?

I need to display the grand total base currency value on invoices that have been generated using other currencies than base. And want to display all the values on the PDF invoice could be displayed in ...
Ronak's user avatar
  • 456
0 votes
1 answer
301 views

Magento 2 : Create Invoice in Arabic (RTL) form magento admin

I am using magento 2.3.3 and I want to print order invoice in Arabic language with RLT layout. from Magento 2 admin => sales => invoice => View => [Print in Arabic] Can anyone suggest me or ...
Deexit Sanghani's user avatar
2 votes
1 answer
78 views

Magento 1.9 print invoice the characters are shown split and reverse

I have changed the font of pdf invoices to support Arabic characters, but the problem is the characters are split and reversed? Any suggested solution please Help!
Ghadawi's user avatar
  • 21
0 votes
2 answers
242 views

Magento 2.3.3 - Customize invoice PDF

I want to customize the content of the invoice PDF(printable from admin backend). But all the threads I read so far (Magento devdocs do not contain guidance on this) direct to folders like model/...
Jochen's user avatar
  • 21
1 vote
0 answers
352 views

Magento2: How to get invoice pdf as response through magento rest api?

I want to get the pdf invoice as response using magento rest api for mobile application. I got the invoice order history data My code: public function printInvoicePdf(Request $request) { echo "...
Amy's user avatar
  • 935
1 vote
1 answer
267 views

Missing words when create pdf invoice with chinese character

I am currently having a problem: Currently when I create an invoice in the backend in Chinese, my font is missing some characters that cannot be created. I tried searching for different fonts on ...
ElDeray's user avatar
  • 11
0 votes
0 answers
412 views

Warning: file_put_contents(invoice-1574071311.pdf): failed to open stream: Read-only file system in file/path/Test.php on line 100

Facing error while downloading the pdf file from the frontend link on the cloud server Warning: file_put_contents(invoice-1574071311.pdf): failed to open stream: Read-only file system in file/path/...
Dj3's user avatar
  • 101
1 vote
1 answer
533 views

Magento 2 Invoice Pdf footer paragraph cutting off - not going to next page

I am trying to add a couple of lines as my magento 2 store's pdf invoice's footer - technically trying to set it just after the Totals. So I have overriden the file Magento\Sales\Model\Order\Pdf\...
ishu's user avatar
  • 125
2 votes
0 answers
139 views

Magento 2, How can I change the PDF Invoice Columns sort Order?

How I Can Change PDF Invoice Columns Order? I want the qty column should be the first column. see the image below
Ali Sultan Khan's user avatar
3 votes
0 answers
102 views

Create uncollected invoices (customers have 30 days to pay) in Magento 2.3.1

When I create an order manually for a customer who places his order over the phone, I need to create his PDF invoice in order to send it. But when I do this, the invoice is created already paid, but I ...
Despotars's user avatar
  • 475
0 votes
1 answer
872 views

How to get Gift Message data on Invoice PDF in Backend Sales Order Grid Magento 2?

I am trying to display Gift Message for individual Item on Invoice PDF Admin Backend Sales Order Grid. Below same code is working for me if you open an order from Sales Order Grid for Individual ...
Hitesh Balpande's user avatar
0 votes
0 answers
491 views

Magento 2 : How to edit invoice PDF, Add Product Attributes

How to edit the invoice PDF, I want to add more product attributes to the pdf invoice. For example, I have a product which is a book I want to add publisher, author attribute to the invoice. See ...
Ali Sultan Khan's user avatar
2 votes
1 answer
600 views

Variable for invoice date - Magento 2.2.6

Is there a variable for the invoice date (invoice created on...) in Magento 2? I would like to add this to the standard template for invoice pdfs. Thanks in advance!
Nadja 's user avatar
  • 21
1 vote
2 answers
3k views

Change order date to invoice date on invoice PDF in Magento 2

How to change the order date in the invoice PDF in Magento 2 to invoice date? I think it's done in the AbstractPdf.php file, but cannot get the right code to pull the right data. It's shown in the ...
user82595's user avatar
1 vote
0 answers
87 views

How to add extra comment in invoice pdf in magento2 backend?

I know the override way vendor/magento/module-sales/Model/Order/Pdf/Invoice.php but have any other better way to insert extra filed in pdf because i want to add lots different filed in different ...
Rutvee Sojitra's user avatar
0 votes
2 answers
7k views

how to edit Invoice pdf in magento 2.3

I want to edit my invoice PDF in magento 2.3, In below mentioned image. the 'red' bordered section move top on 'green' bordered section (Change Position). how to achieve my requirement ?
Shafeel Sha's user avatar
  • 1,385
2 votes
0 answers
114 views

How to change the PDF invoice list format, in Magento2?

I have managed to create a module, and overwrite the \Magento\Sales\Model\Order\Pdf\Invoice class, using the steps proposed by this answer: https://magento.stackexchange.com/a/241932/80959 My ...
Radu Marinescu's user avatar
1 vote
1 answer
518 views

when i click on pdf invoice then shows empty page in magento 2

when i click on the print button it will show an empty page Edit 1: Call to undefined method Ced\Gst\Helper\Data::getShippingSource() in /var/www/html/tech/app/code/Ced/Gst/Model/Order/Pdf/...
prabhakaran7's user avatar
  • 1,077