Questions tagged [pdf]

Denotes questions related to PDF management and generation in Magento.

Filter by
Sorted by
Tagged with
1
vote
1answer
721 views

How to create a pdf download file in Magento 1 my account custom module?

I have a custom module that allows customer to returns the product. Everything working fine and i want to generate a label pdf to paste in the return box.I tried below approach and i am getting error. ...
1
vote
2answers
1k views

How to add custom total row in Invoice PDF

I added pdf.xml in custom modules etc folder. But it is not reflecting in Invoice PDF. I have debug and found that in the class \Magento\Sales\Model\Order\Pdf\AbstractPdf, on line no. 676 I get custom ...
-1
votes
0answers
7 views

Invoice Tab is not Showing in Admin > Sales > Orders > view

I have a Magnete 2.3.4 Installation for a Customer and wanted to debug/send/view the custom invoice PDF but unfortunately, the "Invoice" tab is not showing in the order information how the ...
0
votes
1answer
743 views

Magento 2 translate the .pdf invoice

I've set up a Magento 2.3.0 shop, and I have also translated it. Everything seems fine on the front-end, but one part that I can't get translated, are the .pdf invoices. I have tried to add those ...
0
votes
1answer
751 views

Print Magento Invoice Data To TCPDF File

I have followed the instruction in the link -> TCPDF With Magento, now I want to call the TCPDF library from Invoice.php file at app/code/core/Mage/Sales/Model/Order/Pdf/Invoice.php because I want to ...
0
votes
2answers
747 views

Edit creditmemo template pdf

I need to edit the pdf creditmemo generated from backend with the print button. I don't find the template. What is the path?
2
votes
1answer
36 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 !
0
votes
0answers
9 views

merge pdf in magento 2 module

$fileArray= array(); foreach ($orders as $order) { $tracksCollection = $order->getTracksCollection(); foreach ($tracksCollection->getItems() as $track) { ...
0
votes
2answers
21 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 ...
1
vote
2answers
1k views

PDF invoice items file location in Magento 2

I am working on Magento 2 pdf invoice and trying to change layout of default invoice.As I have seen in default Magento pdf there are six column for displaying items in pdf Products SKU Price Qty Tax ...
0
votes
0answers
8 views

Generating custom pdf in magento 2

I am making one custom pdf as per my requirements here https://prnt.sc/svwkhr Can any one tell me how to get order details of the selected order https://prnt.sc/svwlvo in Controller Index.php file. ...
1
vote
1answer
1k views

Button print order does not show

I have a Magento 1.9 and it does not show the button to print order pdf in orders. How I can enable this? Thanks
2
votes
2answers
2k views

How to replace the subtotal including tax with subtotal excluding tax in the pdf invoice?

My pdf invoice show now the subtotal including tax, the tax, shipping taxes, and the grand total including taxes and i want to show the subtotal excluding tax instead of including tax. I tried to edit ...
3
votes
1answer
1k views

Invoice PDF print Arabic Character?

I am having problem in Printing invoice when the costumer time Arabic Character in checkout. The Arabic word is become square charcter. Anyone knows possible alternative on this ?
0
votes
0answers
17 views

Magento 2 UPS Shipping Labels Arabic Characters

when I print shipping label of UPS shipment in UPS, I get all arabic characters like that: ?????? I have read that's because of ZEND_PDF, and I should install TCPDF, but I don't know how to replace it,...
0
votes
2answers
4k views

How to add custom product attribute in PDF invoice?

I am trying to add custom attribute , product(book) publisher name below product name in PDF invoice(like in image)& publisher is custom attribute created by me. I copied app/code/core/Mage/...
2
votes
5answers
2k views

Magento 2.3: Add Attachment with email (Magento 2.3 use zendframework 2)

I am working on a module in which I need to attach an attachment with sales email. However, Magento 2.3 use zendframework2 so email attachment is not the same as zendframework1 (in Magento 2.2). Can ...
2
votes
1answer
2k views

How to draw image from image source in Zendpdf in magento

I am trying to create a packing slip for delhivery. An APi from delhivery send the details of packing slip including the Barcode source. $barcodeImage = data:image/png;base64,...
2
votes
2answers
841 views

Add text to invoice

I want to add text to the pdf invoice in the marked arena (see photo). I'm using Magento version 1.9.2.1 How can I do this?
2
votes
1answer
384 views

how to add page 1 of n in Magento PDF invoice footer - Magento 1.8

I'm facing problem for adding a number of pages in single invoice. For example one invoice has 3 pages and I wanted to display first page 1 of 3 in pdf invoice and second page, page 2 of 3 and last ...
1
vote
2answers
285 views

Invalid Document Element 'total': Missing child element(s). Expected is one of ( title, title_source_field, font_size, amount_prefix ). in magento 2

open admin panel and go to sales->invoice and select invoice and download PDF this issue is generated. i have check network show 500 error it is a permission issue hello everyone plz give me a ...
0
votes
1answer
36 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-...
2
votes
0answers
46 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 ...
1
vote
2answers
708 views

Automatically generate invoice pdf and save to server when invoice is created

Hoping someone can point me in the right direction. I'd like for Magento 2 to automatically create the invoice PDF and save it somewhere on the server when an invoice is generated/created. Is this ...
0
votes
0answers
30 views

Magento 2 - Want to show tax applied on order with code and rate in custom invoice pdf

I have generated custom invoice pdf, now I want to show TAX field after subtotal, How can I get this anyone has an idea please let me know?
0
votes
0answers
22 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://...
1
vote
1answer
614 views

Translate magento 2 pdf invoice

I installed the MagePlaza language Italian pack on Magento 2.2.3 and it works well, but some voice on the pdf invoice are not translated. I need to change the vat voice to partita iva. I created a ...
0
votes
0answers
45 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->...
0
votes
1answer
32 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\...
0
votes
0answers
16 views

Underscores in Media URLs - can't change to dashes, won't upload!

We have just had a brand new updated Magento 1 website and had to re-upload all our images/pdfs. Usually, in the past we label these how we want the URL to show however: URLs / file names have ...
0
votes
0answers
66 views

Magento2 Zend Pdf draw png images not working

I want to print png images in pdf not working it gives error Only non-interlaced images are currently supported how to solve this ? $directImagePath = "C:/xampp/htdocs/magento232/pub/media/...
0
votes
1answer
47 views

How to display 'Shipping & Handling' in PDF if Shipping Amount is $0.00?

Magento 2.3.2 In my invoice PDF if Shipping & Handling amount is null or 0 it hides that row like this: But I want to to display it as $0.00 if the price is null like this: I found this file /...
1
vote
0answers
24 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!
1
vote
0answers
42 views

Send custom pdf in attachment in email in magento2.2.6

How to add PDF as attachment in magento 2.2.6 ? I have created code using an event "checkout_onepage_controller_success_action" to sends an email after place an order button click. 1) When ...
0
votes
1answer
677 views

Invoice error when print invoice action call admin panel

Hello i have created one website magento version 1.9. In admin panel order section when I select any order and select Print invoices from action dropdown and submit then got error like: "Call to a ...
9
votes
9answers
23k views

Magento2: How to enable pdf on wysiwyg to upload attachments to products?

Where can I edit the code to enable the pdf's or how can I do it on Magento 2 for uploading pdf attachments to products?
0
votes
0answers
26 views

How to add Bank Transfer payment method's instruction to invoice PDF

I'm wondering how to add Bank Transfer payment method's Instructions to the invoice PDF? There are these two files for other payment methods: vendor/magento/module-offline-payments/view/adminhtml/...
1
vote
1answer
35 views

How to use || or && in Email Template or PDF Template Magento 1.x

I want to use || in {{if}} I tryed like this but it not work, please help me {{if helper.eq(order.shipping_description, "abcd") || helper.eq(order.shipping_description, "dede") }} <p>abcd &...
0
votes
2answers
1k views

Hide “Grand Total (Excl.Tax)” and “Tax” in order email

I would ask if there's a way to hide the "Grand Total (Excl.Tax)" and "Tax" sections from the order transactional email. I've Magento CE 1.9.0.1. Has someone ever done it?
2
votes
1answer
50 views

overwriting the AbstractPdf.php

I am trying to overwrite the core AbstractPdf.php from vendor/magento/module-sales/Model/order/PDF/AbstractPdf.php To app/design/frontend/vendor/projecta/Magento_Sales/Model/order/PDF/AbstractPdf....
1
vote
1answer
60 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 ...
1
vote
0answers
49 views

Magento 2 Order print showing href links with content!

I have social links in footer in the website, and configured url in admin configuration for social icons. But when I am printing order PDF from customer account order view page then all links on the ...
0
votes
1answer
268 views

Rearrange the position of subtotal,shipment,tax in pdf invoice magento 2

I want to rearrange the position of subtotal,shipment,tax in pdf invoice. I want to move "tax" before grand total.
0
votes
0answers
50 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/...
2
votes
2answers
649 views

[Solved]Cannot override Pdf/Total/Default.php model

Good morning everybody! I have a problem trying to override the model app/code/core/Mage/Sales/Model/Order/Pdf/Total/Default.php with app/code/local/Mycompany/Sales/Model/Order/Pdf/Total/Default.php. ...
1
vote
1answer
93 views

Magento2: create pdf file option in product details page

I need an option to select the chose upload file (pdf) from admin site and that file will visible and have a download option for users On the product details page on frontend. below is sample images. ...
0
votes
1answer
20 views

Magento 2 How to edit invoice PDF to change subtotals calculations

Magento2 How to edit invoice PDF to change subtotals calculations.
1
vote
1answer
1k views

How to add a custom product attribute to PDF Invoice Magento 2

Solved this myself, but was a pain so thought I'd share the knowledge, In vendor/magento/module-sales/Model/Order/Pdf/Items/Invoice/DefaultInvoice.php in public function draw() under lines[]; add :...
2
votes
0answers
55 views

Add the weight to the Magento 2 .pdf invoice

I'm using Magento 2.3.0 and I would like to add the products weight, or overall weight of the order on the .pdf invoice.
0
votes
1answer
41 views

Magento Listing Product Attributes on Invoice PDF for Bundle Products

I am listing three product attributes (mfg_pn, oem_pn, & physical_location) for each child product of a bundle product by using the following code after line 253 in: app\code\local\Mage\Bundle\...

1
2 3 4 5
8