Skip to main content

Questions tagged [pdf]

Denotes questions related to PDF management and generation in Magento.

Filter by
Sorted by
Tagged with
1 vote
2 answers
3k 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 ...
akgola's user avatar
  • 2,967
0 votes
0 answers
47 views

Magento1 PDF issue after extension

I am using an extension for PDF, but the extension is giving the wrong value for tax when I partially create Invoice or Creditmemo, As I checked the Extension is using "...
Yogita's user avatar
  • 784
0 votes
1 answer
197 views

First PDF download always redirects to the admin dashboard

The first time you try and download a PDF from the admin area after logging in (for example "Print" when viewing an order invoice) you get redirected to the administrators dashboard. The next time ...
tim.baker's user avatar
  • 853
3 votes
2 answers
9k views

Magento 2 change Invoice PDF Font and Add logo and mailing Address in Footer

I want to change Invoice Pdf format.In default magento footer part is not added in pdf invoice.I want to add footer and in footer there will be logo and mailing addres.Also I am looking for update ...
akgola's user avatar
  • 2,967
0 votes
1 answer
626 views

Translate Shipping and handling, grandtotal, subtotal for PDF invoice, from backend in Magento 2

How can I translate the "Shipping & Handling", "Subtotal", "Grand Total" from the PDF invoice that is generated after you press the button PRINT in the backend. The invoice needs to be translated. ...
Raluca Albu's user avatar
0 votes
0 answers
438 views

Which PDF Support Chinese Language In Magento?

Which PDF Support the Chinese Language In Magento? We need to send Chinese order email from Chinese store of Magento. so please suggest me which PDF support?
user60743's user avatar
2 votes
1 answer
699 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 ...
Ganesh's user avatar
  • 21
0 votes
1 answer
147 views

Replace store address with custom text in invoice pdf

I want to replace my store address on invoice pdf with text "Tax Invoice/Bill of Supply/Cash Memo". I am trying to edit in Abstract.php where there is a method which inserts address on pdf : ...
Shujaat Shaikh's user avatar
0 votes
1 answer
224 views

how to add store link in invoice pdf magento

how can I add store link in invoice pdf under logo in magento 1.9
Waqar's user avatar
  • 974
4 votes
1 answer
2k views

Magento 2 Show custom fee in admin invoice pdf

I have created a module to add custom fee value. I want to show this custom fee in all pages(frontend:order view page, print page etc, backend:order view page, sales invoice pdf, emails) I have shown ...
Vindhuja's user avatar
  • 1,405
1 vote
1 answer
65 views

translation of customized pdfs doesn't work

I created a module called phil/pdfs to customize the pdf of magento_sales module. Everything works fine but the translation. Collecting the phrases with i18n tool returns all phrases I want to ...
Phil Kay's user avatar
1 vote
1 answer
144 views

Plugin not working in live environment in Magento 2

I have overwritten the Tax class for IGST calculation customization. It's working fine on my local system. After I uploaded the live server it's not working, I don't know where anything I missed. For ...
Bojjaiah's user avatar
  • 3,782
1 vote
1 answer
222 views

Which method I should Use while using plugin in Magento 2

I am trying to override the Tax class from Magento\Tax\Model\Sales\Pdf. for these, I followed the below procedure. di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/...
Bojjaiah's user avatar
  • 3,782
1 vote
1 answer
693 views

Override Order PDF Abstract Model From Custom Module

I want to override magento function model which located at app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php Mage_Sales_Model_Order_Pdf_Abstract, how to override the insertOrder function at this ...
nortonuser 's user avatar
1 vote
1 answer
1k views

How to center logo in invoice PDF?

I'm trying to center the logo shown in my invoice PDF but I don't really know how to do this. Is there a .phtml template file where I can apply a css class or how do I center it?
Sergiu Turus's user avatar
1 vote
1 answer
2k views

Add new mass action in order grid in magento 1.9

I am using Magento 1.9.1 . I will create new mass action same like Print Packingslips in order grid also download pdf for same as Print Packingslips but some customization in pdf as per requirement....
meet's user avatar
  • 373
0 votes
1 answer
91 views

Why is Fooman PDF Image generation so slow?

I'm using FoomanPDF on a Magento 1.9 shop. In the mypdf file i found the following function: if ($productImage && $productImage != "no_selection" && ...
John Doe's user avatar
1 vote
0 answers
80 views

cant make pdf invoice when in production mode

When in development mode I can create pdf invoices just fine but when in production mode I get an error. Under sales > Invoices I'm clicking the "Print" button to get a pdf of a invoice (see link) ...
Mike's user avatar
  • 21
1 vote
0 answers
1k views

Add a new subtotal per VAT rate to invoices for display only that does not affect the value of the invoice

I'm trying to add a subtotal per vat rate to our PDF invoices. I've followed numerous sets of instructions (which are broadly similar) such as these: https://www.mageplaza.com/how-add-custom-discount-...
Luke Cousins's user avatar
1 vote
1 answer
151 views

Display Customer address in different lines

we got below test order with below shipping address : when i download it in pdf from sales order grid, i got as below image: but i need to display the address in many lines as like 1st image..... ...
Baby in Magento's user avatar
1 vote
1 answer
472 views

Download customer address in pdf onclick button

I displayed button Download [ last column in below image ] in Sales Order grid page for each order. Once i click on button, I want to generate pdf with information of "Customer address" of that order....
Baby in Magento's user avatar
0 votes
1 answer
3k views

How to use Dompdf for Magento2 step by step

I want to convert my html file to pdf using Dompdf in my custom module, right now i already update my module composer.json like this: "require" : { "dompdf/dompdf": "0.8.1" }, "autoload": { "...
Shell Suite's user avatar
  • 1,722
0 votes
1 answer
1k views

PDF on WYSIWYG. How to enable it?

I have tried to enable the pdf extension in the editor this way https://developersushant.wordpress.com/2015/04/16/magento-enable-pdf-extension-on-wysiwyg/. Although, this file there is not in the ...
Christoforos Kotsios's user avatar
1 vote
0 answers
2k views

How to draw Product image in pdf in Magento 2

I want to put product image in pdf for that I have created on function with name Insertfunction and call it from getPdf. we have tried following code. public function getPdf($orders = []) { $...
Bharat Desai - Certified Dev's user avatar
2 votes
1 answer
961 views

Magento 2 pdf generation not in proper language

In my Magento 2 site having three language stores English,Chinese,Chinese Traditional.All working fine But when comming to PDF in chinise orders it was printing boxes what can i do for fixing this ...
Pawankumar's user avatar
0 votes
1 answer
314 views

What stage does magento exactly send the "email copy of invoice"?

I would like to know at what stage in the invoicing process of magento does it send the the invoice email that it sends when you click the "email copy of invoice "? and hit "submit invoice"? I have ...
Vaishal Patel's user avatar
1 vote
0 answers
52 views

How to export current page as a PDF in magento?

i wants to export following Phtml page in PDF formate... <?php if ($this->helper('wishlist')->isAllow()) : ?> <div class="my-wishlist"> <div class="page-title title-buttons"&...
Neeya's user avatar
  • 363
0 votes
1 answer
78 views

getCustomerGroupId returns 0

In my other post, I follow steps to be able to pull the Customer Group of a certain customer inside invoice module. I created this file app/design/frontend/default/default/template/pdf/statement....
PFlorentino's user avatar
0 votes
1 answer
186 views

If else in Magento always return else value

hi I have this If else statement in magento. It always landed on the else statement even though the value of the variable is 10. Please I need all the help I can. {{if var customer_group_id }} == 10 ...
PFlorentino's user avatar
0 votes
1 answer
277 views

How to send wishlist with all details in PDF format via email to login customer Magento?

I wants to send wishlist item with total and subtotal and grand total. i am ready with all of these things but need to send this things to login email id. Updated <div class="my-wishlist"> ...
Neeya's user avatar
  • 363
2 votes
1 answer
1k views

magento 2, I need to add dompdf Library Without using composer in my extension

I have created an extension for HTML to PSD by using dompdf Library. I had tried to using composer and it's working fine. But I need this Library in my custom extension. When any user add extension ...
Hitesh Vaghasiya's user avatar
1 vote
0 answers
122 views

How to send wishlist item quotation in PDF format via email to customer- Magento 1.9

I want to send the wishlist quotation in PDF format to the currently logged in customer. Magento has the option to share a wishlist, but it only lets you share with another recipient where as I would ...
Neeya's user avatar
  • 363
1 vote
0 answers
411 views

Magento 2 default invoice pdf language

I wonder that is there any way to set Magento default invoice pdf language different with Interface Locale in Account Setting?
Daniel Vu's user avatar
  • 111
2 votes
1 answer
1k views

Magento PDF Print out Totals Sort order

Is it possible to change the sort order of the totals in the PDF Print outs? I would like to have the "Minimum Order Bedrag" under "Subtotaal". I did manage to change it for the checkout page since ...
Senta's user avatar
  • 108
1 vote
0 answers
434 views

Magento 1.9.3 Automatically generate pdf file of new orders

In Magento, we can manually create a order confirmation in PDF file in admin. I would like to make this happen automatically. So every time a customer has placed an order, I would like Magento to ...
Magento Learner's user avatar
0 votes
1 answer
50 views

Highlight {{var shipping}} if text is UPS

Using a pdf generator for my invoices and I somehow need to highlight the shipping method if its "UPS" The code is below for that portion <tr> <td style="border-left: 2px solid #...
MHeredia's user avatar
0 votes
1 answer
409 views

PHTML to PHP for PDF print out purpose

I have some difficulties to convert some phtml codes into php (note: simple conversion with online tools html to php does not work therefore please do not answer if it is to refer online tool). Below ...
Joel's user avatar
  • 33
0 votes
1 answer
1k views

PDF printing not working for two orders

I am using magento 1.9.3.3 and have a weird issue, whereby when I go to print order PDF's for two orders I get the error: Please define PDF object before using. Strange, as it works splendidly for ...
Vaishal Patel's user avatar
1 vote
1 answer
819 views

View the weight of the products in the invoice

I need to show the weight of the products in the invoice PDF. I modified the following files: Model/Order/Pdf/Shipment.php Model/Order/Pdf/Invoice.php and: Model/Order/Pdf/Items/Invoice/...
Coach's user avatar
  • 13
0 votes
1 answer
1k 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 ...
Reshad Zazai's user avatar
0 votes
1 answer
738 views

Magento 2 Invoice PDF contains weird character if comments are added in multiple lines while generating invoice

Magento by default do not display comments in pdf. So I wrote this code. $commentsCollection = $source->getCommentsCollection(true); $internalcomments = ""; if($commentsCollection){...
Sejal Shah's user avatar
  • 2,193
1 vote
2 answers
1k views

How to get product image & remove background color on PDF invoice Magento 2.x?

I need help to customize the Magento 2.x PDF invoice for Print. I want to remove the Black color from the invoice. Please check on Attached image below. I want to add product image on PDF invoice. ...
Shakib Rahman's user avatar
0 votes
1 answer
438 views

How to get Parent SKU for packing slip pdf?

Basically in my magento store (i am using magento 1.9.2.4) I have configurable product called "Design Dino Tee Shirt" with SKU of DESIGNDINO and the associated products are lets say "Blue Color - S" ...
krizalis's user avatar
1 vote
0 answers
86 views

How to get PDF file of Orders on the basis of Date

I have to add a button in Sales Order List to download the PDF for all Orders that have been created today.
Amrit Pal Singh's user avatar
2 votes
2 answers
3k views

Magento 2 - Can't override pdf invoice class

I'm trying to customize the pdf invoice template, so I want to override the class that generate the pdf. I found that these class create the pdf: Magento\Sales\Model\Order\Pdf\Invoice.php Magento\...
3tech - Alessandro Staffolani's user avatar
3 votes
1 answer
490 views

Magento 2 Invoice PDF logo looks blurred

I have uploaded Invoice logo with size 200X50 as recommended. However when the invoice is downloaded the image looks blurred and takes the dimensions about 309X79. Any idea why is it taking this size? ...
Sejal Shah's user avatar
  • 2,193
1 vote
2 answers
5k views

Magento : Get Invoice PDF Link on Frontend Customer Dashboard

I want to get download invoice PDF link in customer dashboard account, when they are inside their order. Therefore I need to edit default code in file: /app/design/frontend/theme/theme/template/sales/...
JGeer's user avatar
  • 1,422
0 votes
0 answers
91 views

Magento : Add Default Note in Invoice PDF

How to add default note to bottom of Invoice PDF or add default image?
Reshad Zazai's user avatar
1 vote
0 answers
109 views

How to srtip all html from page layout in Magento2

I am creating a module to generate dynamic product PDFs with FPDF My problem is I cant get the pdf to render / download as there is already html on the page. I have created a layout template at Me/...
Barry Connolly's user avatar
0 votes
0 answers
165 views

How to convert round number to decimal point number in pdf invoice

How to convert round number to decimal point number in pdf invoice.
Rushikesh Solanki's user avatar

1 2 3
4
5
9