Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [pdf]

Denotes questions related to PDF management and generation in Magento.

0
votes
0answers
10 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
0answers
19 views

Magento 2 - Improper Printing on Customer Order & Invoice

Im using Magento 2.2.6 with Porto Theme. Whenever a customer prints his order or invoice it comes deformed. I have tried this in many computers and many browsers but the result is still the same. ...
0
votes
0answers
14 views

Magento1 pdf created but failed to load PDF Document

I want generate the pdf for shipment by programatically.Pdf is downloaded but its not open and shows failed to load Pdf document. My controller action is placed on below like this. //In my Controller ...
0
votes
1answer
23 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
1answer
35 views

How to change shipment PDF font style in Magento 2.2.7

I am working on Magento 2.2.7 & need to change font style of shipment pdf i want to achieve that using preference way of di.xml file how to do that. which files,function i have to override ?
1
vote
0answers
25 views

Refresh page after download PDF in custom module magento 2

Refresh page after download PDF in custom module magento 2. When the download is complete, the page is not f5. Please help me. My function public function createPDF(\Magento\Framework\Event\...
0
votes
2answers
31 views

Magento 2.3: How to attach a pdf file with new order mail?

I am using magento 2.3.1 I need to send a pdf with new order mail, I have already done that for magento 2.2.6 but that is not working with 2.3. Can any one help me with this?
0
votes
0answers
12 views

I am looking for a pdf paginator extension

The admin user could upload any kind of pdf files to the store and the user can download it from the frontend and it is possible to read online the pdf using a paginator, like a newspaper or book ...
0
votes
1answer
89 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 ...
3
votes
3answers
48 views

Magento 2.1.8 pdf href opening in a new tab

I am new in Magento and trying to modify an extension. I would like the href to open in a new tab. The code is as follows: if ($itemRule['file_action'] == \Mageplaza\ProductAttachments\Model\Config\...
1
vote
0answers
19 views

open PDF directly within Chrome

how can I open a PDF directly within Chrome, without having the "save as" option. Currently, my links with target="_self" still get opened as "save as". Any tips? Thanks!
1
vote
0answers
62 views

How to create PDF from HTML in Magento 2?

I am facing issue creating PDF file from HTML text stored in a variable. I have tried zendpdf but it directly prints tags also. Here's my code: $pdf = new \Zend_Pdf(); $page = $pdf->newPage(\...
0
votes
1answer
37 views

How to add static block in invoice PDF?

I am using Magento 1.9.3 I want to add a static block in invoice pdf. Can I load any static block? If it is possible then how I can do this?
2
votes
1answer
44 views

How to remove only Total Tax from invoice pdf?

I am using Magento 1.9.3 I have enabled Display Full Tax Summary and its working fine. I can see my VAT and TAX both in totals area. But now I need to remove only Total Tax data from invoice PDF. (...
2
votes
0answers
72 views

Magento 2: Invoice PDF Can't Complete Download on Customer End “Failed - Network Error”

I have an extension by MageSpaceX that creates PDFs for Invoice/Order PDF. It works fine on the Admin End, I can hit "Print PDF", and it generates it perfectly. Downloads it, and I can do whatever I ...
3
votes
1answer
75 views

Magento2 : How to Translate words of order pdf like subtotal,grand total

Magento,How to Translate words of order pdf like subtotal,grand total,shipping & Handling etc... Where i have to work php files or phtml files or CSV ? i need to translate that words in arabic . ...
1
vote
1answer
51 views

How to show remain item column of an order in shipment pdf?

I am using Megento 1.9.3 I need to add a column "Remain Item" in shipment PDF. For your convenient I am sharing a sample image:
2
votes
1answer
67 views

Magento 2 - change text of PDF invoice for purchase order

How can I change the text of "purchase order" section in the PDF invoice which Magento creates? When the payment method is "purchase order" (instead of credit card or paypal), Magento prints the ...
6
votes
1answer
152 views

Invoice PDF layout not showing proper Magento 2

There are more than 15 custom option for my each product. When I print the PDF for invoice or order then it does not showing properly. Please check the attached screenshot. Have you guys any idea how ...
0
votes
1answer
115 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 ...
1
vote
2answers
108 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 ...
0
votes
0answers
83 views

Magento 2 Arabic language character saperated in Invoice PDF [duplicate]

I have facing the issue with arabic character in invoice PDF. You can see attach screenshot for better understanding. I guess here is some font issue but not getting exact idea how to resolve this ...
0
votes
1answer
30 views

Open PDF after creating it programmaticaly

i have my function that generate my PDF, this works fine (the function is in my block). After that, i want to show the window with this (this is in my controller) ob_start(); header("Content-Length: ...
1
vote
0answers
32 views

Magento2 : How to remove details from shipment print shipping label

I want to remove description from pdf file. it is generated from here. please check following path to print shipment file: From admin menu : Sales->Shipments->click any one shipments view link now ...
0
votes
2answers
302 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
0answers
86 views

How to Download Print packing slips Magento 2?

In Magento 2,we are select the sales/order and click an action like "Print Packing Slips" its open packing slip in the same window.I need this open in new window or when we are click on "Print Packing ...
0
votes
0answers
47 views

currency symbol not showing in pdf invoice (Magento 2.2)

The currency symbol isn't showing. how can i resolve this issues
0
votes
0answers
17 views

Avoid webpage header in the order print pdf file

When I click on order print button in print layout I am getting the mega menu item links and toplinks along the order details. How can I avoid the webpage header links in the pdf.
1
vote
1answer
35 views

Magento 2 - How to create custom files and get their URL?

I have a custom module which should create a pdf file each time a user clicks a button. Ideally the PDF would be created in MyVendor_MyModule::pdfFiles/mypfd123.pdf but it can be created anywhere else ...
1
vote
1answer
45 views

Magento 2, How to call front controller from admin page?

Using magento 2, front and admin, I need to access controller in print button on sale order page to print invoice which generate pdf in front view controller. Plz.
0
votes
0answers
24 views

Make a PDF appear as a book in Magento 2

How can I display a clickable icon that opens a popup that contains a book? I have a PDF and want to convert it to a book on the home page so that when I click on the icon it shows me the popup ...
0
votes
1answer
66 views

add a pdf in cms page and make it downoldable magento 2

I want to add a pdf in home page and when i clck on it ,i can downold it. So how to proceed ?
0
votes
0answers
473 views

How to edit Magento2 Invoice template

I need to edit the Pdf Invoice template in order to: remove tax column make products attributes (size and color) in same line I want to make it: Product name Color: white , Size: 2 instead of ...
1
vote
0answers
29 views

Magento 2 : Print Quote Details

I want to print Quote detail's similar to print order from Cart page. Is it possible to print quote details along with quote item detail and quote amount detail. Please provide me the logic or code ...
0
votes
1answer
121 views

How to get customer name from billing and shipping address magento 2

Here is the code where i want get customer name from billing and shipping address in pdf packing slip of order. Vendor/Module/Model/Order/Pdf/Shipment.php protected function insertOrder(&$page,...
0
votes
0answers
166 views

In Magento 2 how to add custom attributes to the Invoice PDF

I want to get Custom attribute in the print invoice PDF. I Follow this URL For the get custom URL. It is working when i changed in vendor file. Now I want to override Model file. Pdf\...
1
vote
1answer
163 views

Add order comments to invoice/shipment pdf

Files controling invoice/shipment order pdf content are the following: vendor/magento/module-sales/Model/Order/Pdf/Invoice.php vendor/magento/module-sales/Model/Order/Pdf/Invoice.php Is it possible ...
0
votes
1answer
14 views

How to Implement Look inside the Book Feature for Magento 1.9.3.9?

I want to develop a "Look Inside the Book" feature similar to what Amazon has. Does anyone have a suggestion how I could achieve this?
0
votes
2answers
108 views

Remove item column from Order PDF print

I'd like to completely remove the Tax column from items list, in order pdf. I've managed to remove the item tax value, but I can't find how to remove the "Tax" column header. Any ideas?
1
vote
0answers
85 views

How to add pdf attribute in magento 2

I have created one attribute "text field" and added <a href="{{media url='wysiwyg/smartwave/porto/Data_sheets/1.pdf'}}" target="_blank">Kaifeng Products Overview </a> in text field but ...
2
votes
0answers
35 views

Fooman EmailAttachment = 'Payment Methods' is blank on the emailed PDF but not on the manually created PDF for Magento 1

I have recently installed Fooman EmailAttachment module and my order email PDF doesn't display Payment Method information. Only payment method information is missing from Order PDF. Can anyone help ...
0
votes
2answers
64 views

Magento : In Controller get POST data and that data added to pdf file after attachment send mail

In Magento, while submit form from frontend in controller using post method i got every data. I want create one pdf file and keep this data in it after that attachment of this file and send with mail. ...
0
votes
0answers
40 views

Magento : Send/Mail custom form data in PDF file

I have create one module for custom form fill by the user while click on submit button the form send two person one for user and second for website owner. This is working fine but i want to send this ...
0
votes
3answers
704 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
186 views

Custom Invoice PDF

I'm trying to customize the PDF exported by Magento 2 but getting some issues: etc/di.xml <preference for="Magento\Sales\Model\Order\Pdf\AbstractPdf" type="Vendor\Module\Model\...
1
vote
1answer
291 views

Magento 2 How to add barcode to shipment PDF

I want to add barcode of Tracking Number in to my shipment PDF without use of any third party extenssion. Can any one help me to how to generate barcode in to PDF in magento 2, is there any default ...
2
votes
1answer
490 views

Magento 2 Adding Total Due and Total Paid to PDF order

Hi I am trying to add total paid and total due lines on my Magento PDF Invoice. I have added these lines in the config file in sales/etc/config.xml. I tried in order pdf i am not getting those fields ...
0
votes
1answer
296 views

How to save pdf files in magento2

I have frontend form which consists two fields, One is pdf file uploader field Second one is zip file uploader field. Now how do i save these two fields in DB, In which directory i need to save the ...
0
votes
1answer
508 views

Magento 2 - Changing the packing slip pdf print out layout

I am trying to edit the template of packing slip pdf print file. Basically the part that I am interested is the height of product description area. I traced back the parts that create font size or ...
4
votes
1answer
148 views

Error attach pdf to invoce e-mail

I tried to send an invoice email from frontend with pdf attached, by extending InvoiceSender like this: namespace Namespage\Module\Model\Plugin\Order; use Magento\Sales\Model\Order\Invoice; use ...