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.

0
votes
0answers
14 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
19 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
17 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
24 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
5 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
20 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
20 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
27 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
11 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
1answer
19 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?
0
votes
0answers
21 views

May I have a preview file pdf or video on product page with magento2?

I sell the books in shop. So, I create product downloadable with file PDF and Video. However, I want to have a preview about 5 first pages in PDF or 20 first seconds in Video. (Default magento only ...
0
votes
0answers
21 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
11 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
43 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
33 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
75 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.
0
votes
0answers
27 views

How to output PDF file to browser from a controller

I have created a custom controller. I need to send a pdf file as output, not as a downloadable file, but directly to a browser. Currently in my controller I have the following code $resultFile = $...
1
vote
2answers
54 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
59 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
77 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
76 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
145 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 ...
2
votes
0answers
45 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
15 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
23 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
67 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....
1
vote
2answers
411 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
35 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
383 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
183 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
62 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
25 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 ...
1
vote
0answers
70 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,...
2
votes
0answers
16 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
116 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
31 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
30 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
28 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
104 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
92 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
29 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 ...
0
votes
1answer
146 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....
0
votes
1answer
61 views

Unable to read version 4 table /var/www/html/magento217/vendor/magento/zendframework1/library/Zend/Pdf/Font.php(615)

I have a problem in Arabic characters in invoice pdf print(they are separated and reversed). I am trying to use the Noto fonts https://www.google.com/get/noto/ but I got this error: a:4:{i:0;s:30:...
0
votes
1answer
181 views

Invoice PDF Not supports Arabic characters : Magento 2.1.7

I have a problem in Arabic encoding in invoice pdf print ( alaways appears like squares), but I found this library : https://github.com/rossmc/SalesPdfFonts But Arabic characters are separated and ...
0
votes
0answers
49 views

Firegento PDF module Get Order informations on custom module

I have created a custom module to integrate with firegento PDF creator so i can add some informations on the bottom of the printed page, like VAT, Price per product, grand total etc. here is the code ...
0
votes
2answers
50 views

Use class from vendor module in custom controller

I'm trying to call a 'new FPDF()' in my custom controller, i keep getting the following error: Uncaught Error: Class 'setasign\fpdf\FPDF' not found in ../app/code/Forza/catalogPrintPdf/Controller/...
0
votes
1answer
229 views

Magento 2 Add custom attribute on order PDF Print All action Drop down

In admin orders how to include custom attribute on pdf print all action? It spits out PDF with Products SKU Price Qty Tax Subtotal I need to add another which is warehouse_location I know to add ...
0
votes
0answers
72 views

Magento 2 : Open PDF in Browser Directly Instead of Save

In Magento 2, when we try to generate pdf for orders, it's creating the pdf of order and storing. Instead of this after creating pdf I need to open it automatically. anyone, please tell me. how to ...
0
votes
0answers
147 views

Customize Fooman new order email attachment PDF

I'm using Fooman Email Attachments (Magento 1) extension to send Magento transactional emails along with PDF attachments. I'm also using IWD_OnepageCheckoutSignature extension to get customer ...