Stack Exchange Network

Stack Exchange network consists of 174 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.

6
votes
1answer
41 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
35 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
44 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
19 views

Magento 2 Arabic language character saperated in Invoice PDF

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
19 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: ...
2
votes
0answers
19 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
1answer
56 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
14 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
13 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
27 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
32 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
22 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
30 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
65 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 ...
0
votes
0answers
8 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
31 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
69 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
69 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
13 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
45 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
44 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
20 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
51 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
34 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
232 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
100 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
137 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 ...
1
vote
1answer
208 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
191 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
261 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 ...
3
votes
1answer
85 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 ...
0
votes
0answers
17 views

How can I customise the comparison PDF of Magento 2.1 PDF invoice layout

How can I customise the comparison PDF of Magento 2.1 PDF invoice layout? I want to change the content of comparaison pdf (format) in magento 2.1 I want to remove header and footer section from pdf ...
0
votes
0answers
26 views

How can we increase the font size of the wordings in the packing slip in magento2?

How can we increase the font size for packing slip details using Zend_pdf_page for line items?
2
votes
1answer
79 views

How to generate invoice pdf in checkout page magento 1.9.1.0?

I need to generate invoice pdf in checkout page. Payment method Bank Transfer for Indian Customer. Any Idea about it? Success page:- /app/design/frontend/themes/default/template/checkout/success....
2
votes
2answers
801 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
0answers
42 views

Magento 2 how to add extra column (weight) in order,invoice,pdf,creditmemo

Magento 2 how to add extra column (e.g. weight) in order,invoice,pdf,creditmemo grids and view pages and also how to add extra column for custom attribute (e.g. length) in order,invoice,pdf,...
1
vote
3answers
552 views

Magento 2, add `company's name` in invoice PDF file?

Using Magento 2.2, Invoice, PDF. I want to add new text block into pdf invoice. What do I need to do? Printed Order Invoice
1
vote
1answer
46 views

Get Order ID in Abstract.php PDF protected function insertLogo

I have been banging my head against a brick wall for the last 2 hours. I am editing app/code/local/Mage/Sales/Model/Order/Pdf/Abstract.pdf. All I am trying to achieve is a little if statement so ...
0
votes
1answer
245 views

Magento 2: format var invoice.created_at

I'm using EaDesgin/magento2-pdf-generator2 to format the customer's invoice. This works nice. But in this template I use the magento 2 variable {{var invoice.created_at}}, what gives me the ugly ...
0
votes
1answer
91 views

Magento 2 Overide CMS Helper

I tried to override the Image helper on CMS block for uploading pdf files. Now i added the pdf files but i need to link for pdf file instead of img tag. And also i tried to override the CMS Image ...
0
votes
0answers
36 views

Custom field in PDF Invoice depending on Shipping location

I got a custom note on a PDF invoice which is only shown for a orders which are shipped to a specific country. It works fine except when the customer does not have a shipping addresse (for example ...
2
votes
0answers
97 views

Magento 2: PDF set page margins for Invoice

I added a footer to my invoices, this works fine. private function _insertFooter($page) { $this->_setFontRegular($page, 8); $this->y = 100; $page->drawLine(25, $this->y, 570,...
4
votes
2answers
38 views

MS Word to PDF in Magento 2 for uploaded word file

I need to convert word to pdf in magento 2.
0
votes
1answer
152 views

Magento 2 : How to add horizontal lines to separate the line items in sales invoice PDF ?

I am trying to add horizontal lines after each line item in invoice PDF. How to add it? I have done some work around so found two files: /app/code/Magento/Sales/Model/Order/Pdf/Items/Invoice/...
1
vote
0answers
33 views

Override PDF invoice coupon discount

I cannot found function to override (and relative core magento file) for edit total invoice coupon discount I need to print discount value vat excluded
0
votes
0answers
35 views

display brand column invoice PDF

I am trying to generate invoice PDF which includes 'Brand' column. I am using magento 2.1.9 of community edition. I have able to display Column only by adding following code: Filename: app/code/...
0
votes
0answers
34 views

Magento Invoice PDF - How to stop configurable product option displaying with huge line space

On my generated pdf invoices, if a product is configurable such as through a dropdown so it can have a size option. The Size attribute title and then the value is displaying in the products column but ...
0
votes
1answer
118 views

Download pdf file from database Magento 2 code

I have some pdf file that is saved in the table named pdf_download the database name is loc_pos. Need to download that file when I click. <a href="http://domain.com/index.php?route=information/...
0
votes
0answers
126 views

magento2 download pdf invoice and send it

Hi i need to download and send via ftp the invoice pdf i write a utils class to extract order and invoice details to generate csv files, but at the same way i need the invoice pdf file to download (...
1
vote
0answers
40 views

Integrate TCPDF in Printing Invoice PDF : Magento 2 [duplicate]

How can I use TCPDF in print Invoice PDF, Really I am facing a problem which is Arabic characters are reversed and separated. I did a search a lot for this problem and found Zen PDF has many problems ...