Questions tagged [pdf]

Denotes questions related to PDF management and generation in Magento.

Filter by
Sorted by
Tagged with
3
votes
3answers
289 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
24 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
390 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
164 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
270 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. (...
5
votes
0answers
452 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
164 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
87 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
193 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
289 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 ...
1
vote
2answers
710 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
650 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
186 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
190 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
159 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 ...
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 ...
1
vote
1answer
154 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
104 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
1answer
254 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
2k 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
114 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
729 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,...
1
vote
1answer
480 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
25 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
484 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
120 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
42 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
96 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
52 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
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
389 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
818 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
1k 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
669 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
1k 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
303 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
25 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 ...
2
votes
1answer
455 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....
3
votes
2answers
4k 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!
1
vote
3answers
2k 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
63 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 ...
1
vote
1answer
795 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
205 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 ...
3
votes
0answers
240 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
70 views

MS Word to PDF in Magento 2 for uploaded word file

I need to convert word to pdf in magento 2.
1
vote
0answers
40 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
1answer
164 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/...
1
vote
0answers
82 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
713 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
347 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:&...

1
2
3 4 5
8