Questions tagged [pdf]

Denotes questions related to PDF management and generation in Magento.

Filter by
Sorted by
Tagged with
1
vote
3answers
985 views

Magento 2 - How to insert logo into custom pdf

I am trying to print logo into custom pdf through controller. I am able to print product name, sku etc.But I don't know how to add store logo. My code is as below. Can anyone please help me to add ...
1
vote
1answer
19 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 ...
0
votes
0answers
6 views

Making A costume PDF invoice

I am new to magento 2 and want to customize my invoice PDF that is created, I want to change the design completely and want to add new field also I want to make a conditional paragraph that shows in ...
4
votes
2answers
979 views

How to get pdf file in response for Magento 2 rest api?

Currently Magento 2 is providing JSON and XML response in web REST API I want to include a custom response format PDF. So if any third-party will call our API then we can sen them PDF in response.
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
0
votes
1answer
828 views

How to save PDF files in Magento 2?

I have a frontend form which consists of two fields. One is a PDF file uploader field. The second one is a ZIP file uploader field. Now how do I save these two fields in the database? In which ...
0
votes
1answer
37 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");...
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 ...
0
votes
1answer
29 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-...
0
votes
1answer
36 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 ...
0
votes
1answer
2k views

What method is needed to get 'info_buyRequest' in Pdf\Items\Invoice\DefaultInvoice

Trying to get data from 'info_buyRequest' the same way i have in other templates using: $item->getBuyRequest() This doesn't work in \Magento\Sales\Model\Order\Pdf\Items\Invoice\DefaultInvoice ...
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/...
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 ?
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,...
0
votes
1answer
906 views

How can we add header and footer to invoice pdf

I am trying to add header to the invoice pdf. I need to include header and footer to the invoice pdf which downloaded from magento2 admin sales order grid. How can we do that. Someone please help me....
3
votes
2answers
998 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?
0
votes
0answers
13 views

Magento 2 PWA cart pdf download

I'm using mageplaza sharecart extention and I need to use its function in PWA.I have triggered the already implemented pdf downloading function in magento backend extention with a mutation. my ...
0
votes
4answers
3k views

How to create the download link?

I am using Magento 2.1 and I want to display download link in my Contact us page. If I click in this link then I want to display PDF file.
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 ...
0
votes
2answers
831 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?
0
votes
1answer
1k 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
899 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
0answers
7 views

Compare page print pdf magento 2.3.3

Can anyone tell me where is the code written for Compare page Print https://prnt.sc/vmmvgr. The print page is totally messed up.Can anyone help me on this. I need to remove header and footer from the ...
0
votes
0answers
17 views

How to put multiple orders into one pdf page if space

When printing invoice pdf it puts each order into separate pdf page. But is it possible to put them on one page and if the page is full only then make another one.
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 ...
0
votes
1answer
885 views

PDF on WYSIWYG. How to enable it?

I have try to enable the pdf extension in the editor with this way https://developersushant.wordpress.com/2015/04/16/magento-enable-pdf-extension-on-wysiwyg/. Although, this file there is not in the ...
4
votes
2answers
5k views

Magento 2 | How can I get the invoice pdf programatically?

I'm currently creating a module which should send the invoice pdf via eMail to a customer. How can I get the invoice pdf programatically? Thanks for any help!
0
votes
1answer
31 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 ...
0
votes
1answer
96 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
0answers
35 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 ...
1
vote
1answer
764 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. ...
2
votes
1answer
82 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
28 views

merge pdf in magento 2 module

$fileArray= array(); foreach ($orders as $order) { $tracksCollection = $order->getTracksCollection(); foreach ($tracksCollection->getItems() as $track) { ...
0
votes
2answers
34 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
2k 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
10 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. ...
0
votes
0answers
26 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,...
2
votes
1answer
448 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
605 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
56 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
80 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
1k 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
41 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
56 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
681 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
1answer
76 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
143 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
97 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
33 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
60 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 ...

1
2 3 4 5
8