Questions tagged [pdf]

Denotes questions related to PDF management and generation in Magento.

Filter by
Sorted by
Tagged with
25
votes
1answer
55k views

magento: invoice PDF design customization

I want to customized the Invoice PDF layout. when there is big product name the the table data are not looking proper aligned. How Can i easily manage the design of the PDF INVOICE. I tried to ...
9
votes
9answers
23k views

Magento2: How to enable pdf on wysiwyg to upload attachments to products?

Where can I edit the code to enable the pdf's or how can I do it on Magento 2 for uploading pdf attachments to products?
9
votes
3answers
15k views

Magento 1.9.1.0 - Upload PDF File Type in Wysiwyg Editor and show PDF Icon

I made a custom module allowing user to upload .PDF file type in CMS > Pages. The code used is below: app/etc/modules <?xml version="1.0"?> <config> <modules> <...
9
votes
2answers
2k views

Best practice to create a custom pdf?

is there a best practice to create e new custom e.g. invoice PDF? I need a separate custom PDF with my own layout and tables. And here is my problem: I had never created a PDF in Magento before so ...
8
votes
2answers
5k views

Magento2: How to create a PDF in a custom module

I would like to generate a custom pdf upon sale and attach it to the sales email all within a custom module. I think I need to extend Magento\Sales\Model\Order\Pdf\AbstractPdf to generate the pdf but ...
7
votes
4answers
34k views

how to change PDF invoice layout

i want to customized the Invoice PDF layout like in the image this is just a example of print invoice pdf & changes i want
7
votes
1answer
15k views

How to change logo of print order PDF on success page

I am unable to update the store logo on the pdf which get generated when order ia placed and a link to print order PDF is shown to user.
7
votes
3answers
961 views

What PDF plugin does Magento use to generate invoices?

I need to provide an option for sellers/vendors to download their order information like name, sku, price, qty, etc. in PDF format on a custom page. I am planning to use any PDF plugin as mentioned ...
7
votes
1answer
1k views

Printing invoice in different custom language

I have one website with multiple store views for different languages. All store views have same products, but use different front-end languages which are stored in locale. When someone orders from ...
7
votes
1answer
3k views

Alter the format of the invoice pdfs

I am using Magento CE 1.7.0.2 and would like to alter some parts of the .pdf invoices that can be printed from the 'invoices' section of the site. As you can see in the image above, I would like to ...
7
votes
1answer
824 views

How to add Grand Total in base currency to the PDF invoice?

We are running a 1.9.0.1 install and need to display the grand total base currency value on invoices that have been generated using other currencies than base. Even better if all the values on the PDF ...
6
votes
2answers
2k views

How to change save path of PDF files in magento 2

Currently PDF files are saving in var directory. Here is controller's execute function public function execute() { $orderId = $this->getRequest()->getParam('id'); if ($...
6
votes
1answer
6k views

Magento - How To Show Order Comments to PDF Invoice

This questions was originally posted on stackoverflow but I got no responses. But I still need a help solving this problem I've been having. I have installed Magemaven OrderComment into my CE 1.8.0 ...
6
votes
1answer
290 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 ...
5
votes
0answers
455 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 ...
4
votes
2answers
4k views

Export Product Data & Attributes to PDF

I'm looking for a way to export product data and attributes from the product page via an export to PDF button. Are there any reliable extensions around as a solution? I'm currently looking at the ...
4
votes
4answers
12k views

How to customise invoice pdf layout in magento2?

I want to customize layout of PDF invoice by css and by adding product image on invoice in magento 2.
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 ...
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.
4
votes
1answer
1k 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 ...
4
votes
1answer
2k views

Change order of totals for emails and pdf invoices

I am having trouble changing the order of totals in sales emails and pdf-s I have tried these thing I read on this forum: 1) Changed order of totals in admin side system->configuration->sales->...
4
votes
1answer
651 views

Neither UTF-8 nor ISO-8859-1 is returning the correct characters when creating PDFs

I am creating invoices for our store in the Czech Republic, and neither UTF-8 nor ISO-8859-1 is returning the correct characters. UTF-8 is omitting characters, and ISO-8859-1 is returning the wrong ...
4
votes
2answers
641 views

How to get pdf file in response for Magento 2 rest api?

Currently Magento 2 is providing JSON and XML response in web REST API I want to include a custom response format PDF. So if any third-party will call our API then we can sen them PDF in response.
4
votes
1answer
684 views

Pdf xml in Magento 2?

When developing a payment fee, I want to add a surcharge fee to Pdf. I found the pdf.xml config. However, I don't know how it works. Can anyone help me to explain the config pdf xml. vendor/magento/...
3
votes
3answers
3k views

Why is my Invoice PDF > 1MB

When I click to print an invoice in my magento admin panel, it downloads a file between 900K and 1.3MB (the variation seems random, I can't see a reason for it). This is a very simple Invoice with ...
3
votes
1answer
564 views

How can I change the position of the Country and the Postal code for email PDF invoices?

I would like to change the position of "country" with "zip code"? Everything else is correct. You can see the Value: Zürich, 8605 and Schweiz Those need to be changed, but where can I do ...
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!
3
votes
2answers
5k 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 ...
3
votes
1answer
2k views

How to increase the logo image quality for pdf invoices in Magento 1.9

I would like to increase the quality of the logo in the PDF invoices. At the moment I upload a logo exactly 200x50 px in size and with JPG quality 99 and it still looks terrible. I also tried PNG24 ...
3
votes
3answers
290 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\...
3
votes
1answer
939 views

Remove telephone field in PDF Print-outs in Magento 1.9

Look at my screenshot. In System >> Configuration >> Customer Configuration >> Address templates >> PDF i removed the telephone lines. But still the telephone numbers shows up ...
3
votes
1answer
760 views

The tax for shipping and handling is displayed twice on my PDF invoices

We have a issue with our invoice grand total where the shipping tax is added twice.
3
votes
1answer
837 views

How do you add item subtotal and grand totals to the packing slip pdf?

I'd like to list the item subtotal for the items, and then the grand total beneath - much like the invoice PDF does. I'm failing to tackle both problems: I've edited /app/code/local/Mage/Sales/Model/...
3
votes
2answers
558 views

Can not open PDF document when an order is completed

I am receiving an error with the PDF document when an order is completed and I select “Print Invoice” from the drop down menu. When the PDF has been generated and l go to open it on my computer l get ...
3
votes
1answer
747 views

Add item to totals in pdf invoice

We have a pdf invoices with totals displaying both prices with included and excluded tax, but without a subtotal. What we need now only on pdf invoices is to display a total when the discount (coupon ...
3
votes
1answer
165 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 . ...
3
votes
0answers
241 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,...
3
votes
0answers
99 views

Create a PDF with customer/order information for virtual product

I've setup products as "Virtual Products" because I don't ship anything so thought this would be the best product type. With that the option to attach downloadable PDF products. On sale of this ...
3
votes
1answer
1k views

Invoice PDF print Arabic Character?

I am having problem in Printing invoice when the costumer time Arabic Character in checkout. The Arabic word is become square charcter. Anyone knows possible alternative on this ?
3
votes
0answers
314 views

Invoice template changes not showing

I have changed my invoice template to add some footer text, this works fine. However recently I have been asked to change this text to correct a typo. This I have done but the change is not showing ...
3
votes
2answers
2k views

Force inserted new lines below the totals in Magento PDF invoice

I have been able to insert new lines on my pdf invoice. It is working perfectly with positioning in right place. However, when invoice content gets bigger but only total part goes to second page, my ...
2
votes
2answers
7k views

Magento 2: How to add footer in pdf invoice?

How to add store information and terms and conditions inside pdf invoice file in magento 2? Also how to add footer in each page of pdf in magento 2 invoice pages?
2
votes
3answers
3k views

How to add and use TCPDF in magento 2

I am adding one custom pdf functionality in my magento store, for that I want to use TCPDF but I am not able to add it. it always shows that class is not found and all. Can anyone tell me what is ...
2
votes
3answers
6k views

Magento 2: Convert HTML code into PDF file and Download?

In my custom module, I have HTML code and I want to convert HTML code into PDF and after conversion download PDF. Please suggest me Magento-2 default functions or classes for Create PDF and Download.
2
votes
4answers
6k views

PDF Invoice; changing shipping and other text

I am creating a new PDF Invoice and most is fine but the one thing that I just cannot find is how to change the text of the 'totals' block at the end! Currently this shows Subtotal Shipping & ...
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 ...
2
votes
1answer
2k views

Change address layout in Invoice pdf

Can anybody tell me where I can change the layout and order of the addresses in the invoice pdf. I want to combine the City name with postcode number. Now the postcode number is combined with the ...
2
votes
1answer
505 views

add column barcode(EAN) in invoice

i would like add a colum in my invoice PDF. so I changed the "draw ()" function found in the "app / code / core / Mage / Sales / Model / Order / Pdf / Items / Invoice" file by adding "item-> getEan ()...
2
votes
2answers
620 views

Where does Magento store Pdf Invoices?

Is there a table in the database or a folder where Magento (1.9 and 2.1) stores Pdf Invoices?
2
votes
1answer
3k views

How to get pdf invoice programmatically

In Magento Backend, when looking at an invoice details, it is possible to get a pdf version in clicking the "print" button. Is there a way to get this pdf invoice using a php script?

1
2 3 4 5
8