Questions tagged [pdf]

Denotes questions related to PDF management and generation in Magento.

139 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
369 views

Magento 1.9.3 Automatically generate pdf file of new orders

In Magento, we can manually create a order confirmation in PDF file in admin. I would like to make this happen automatically. So every time a customer has placed an order, I would like Magento to ...
1
vote
0answers
64 views

How to get PDF file of Orders on the basis of Date

I have to add a button in Sales Order List to download the PDF for all Orders that have been created today.
1
vote
0answers
82 views

How to srtip all html from page layout in Magento2

I am creating a module to generate dynamic product PDFs with FPDF My problem is I cant get the pdf to render / download as there is already html on the page. I have created a layout template at Me/...
1
vote
0answers
926 views

Magento 2: Upload PDF gives Unsupported image format. Error

I'm able to upload from Backend TinyMCE Editor. But when it upload it gives "Unsupported image format." Error. I need to overwrite that function but it's private. Below is code what I have tried ...
1
vote
1answer
731 views

How to create a pdf download file in Magento 1 my account custom module?

I have a custom module that allows customer to returns the product. Everything working fine and i want to generate a label pdf to paste in the return box.I tried below approach and i am getting error. ...
1
vote
0answers
83 views

Multiple pdf invoice download restricted to 3 x 200 in Magento 1.9

I am trying to download multiple invoices in pdf format and can successfully download 3 consecutive batches of 200 invoices. Any subsequent attempts generate an error. I have tried downloading just 10 ...
1
vote
1answer
1k views

Button print order does not show

I have a Magento 1.9 and it does not show the button to print order pdf in orders. How I can enable this? Thanks
1
vote
2answers
1k views

How to add custom total row in Invoice PDF

I added pdf.xml in custom modules etc folder. But it is not reflecting in Invoice PDF. I have debug and found that in the class \Magento\Sales\Model\Order\Pdf\AbstractPdf, on line no. 676 I get custom ...
1
vote
0answers
449 views

Magento2 HTML Invoice

I have a requirement to print Tamil Unicode characters in Invoice which is not possible with PDF. In magento 1.9 i was using custom module. Is there a similar kind available for Magento2? If not some ...
1
vote
1answer
77 views

Customer name in creditmemo

When I click on "print" button in admin area in credit-memo, then generated PDF is not displaying customer name in shipping and billing information. It is only displaying the telephone, country, city ...
1
vote
0answers
91 views

Magento 1.9.x Inovice PDF Customization

I am using Firegento PDF extension on a Magento CE 1.9.3.0 Store. By law (Germany) we need to have specific notes on the pdf invoices regarding tax. For every invoice within the EU there should be a ...
1
vote
0answers
92 views

Magento - PDF preflight

I need to programm a extension that checks a PDF our customer uploads for things like the right format (in terms of size for example 210 x 297 mm) or if there is 3 mm bleed on the PDF. I really dont ...
1
vote
0answers
145 views

How can I add watermark in all invoice pdf which export for customer order

I want to add custom text As watermark in order PDF. I know code is from Here for make PDF But how we can add mask to PDF object? app\code\core\Mage\Adminhtml\controllers\Sales\OrderController.php ...
1
vote
0answers
45 views

Magento - Send Order PDF with an addition attribute to a defined email

I need to set an automatic email that notify the only one supplier that I've, that I receive an order, so they can start to produce it. I need so to send an attached pdf with an additional attribute, ...
1
vote
0answers
178 views

How can I get the regular price in the invoice pdf in magento?

I used getPrice() but I want the regular price after adding customize variable and the price of that. As shown in image below.
1
vote
0answers
1k views

Zend pdf text not set on rectangle

I tried below code in my TestController.php but I do not understand how to put text on rectangle $pdf = new Zend_Pdf(); $page = new Zend_Pdf_Page(Zend_Pdf_Page::SIZE_A4); // $this->...
1
vote
0answers
50 views

Problem with diacritical marks

My website sells a lot of products to people in Europe, and as is to be expected, some of the customer names feature diacritical marks. Unfortunately, the names with diacritical marks don't show on ...
1
vote
0answers
539 views

Invoice PDF, add new line in insertDocumentNumber

I have added the Invoice Creation Date to the invoice PDF, modifying the the app\code\core\Mage\Sales\Order\Pdf\Ivoice.php like so: $this->insertDocumentNumber( $page, Mage::helper('sales')...
1
vote
0answers
114 views

How to upload multiple pdf file to Manufacturer in magento 1.9.1.1

How to upload multiple pdf file with manufacturers in magento 1.9.1.1, I have use this plugin for upload manufacturer logo but I want to upload multiple pdf also
1
vote
0answers
302 views

Regenerate PDF invoices

Dear fellow Magento users, While filling in my tax report i came to the following conclusion: My tax is inconsistent My Dashboard shows different total tax then my reports. Tax Report Image: ...
1
vote
0answers
23 views

changing the shipping on the PDFs

In the backend i change the PO box to say Credit account as we offer a credit account to our customers, However whenever this is the case and we print invoices it still says "PO NUMBER:" which could ...
0
votes
0answers
18 views

Magento 2 - How to customize Shipping Label pdf print-out

I want to change the design and layout of my print shipping label pdf print-outs to make a simple and clean print for the employes to work through. Is there any extension / tutorial / anything else ...
0
votes
0answers
12 views

merge pdf in magento 2 module

$fileArray= array(); foreach ($orders as $order) { $tracksCollection = $order->getTracksCollection(); foreach ($tracksCollection->getItems() as $track) { ...
0
votes
0answers
9 views

Generating custom pdf in magento 2

I am making one custom pdf as per my requirements here https://prnt.sc/svwkhr Can any one tell me how to get order details of the selected order https://prnt.sc/svwlvo in Controller Index.php file. ...
0
votes
0answers
17 views

Magento 2 UPS Shipping Labels Arabic Characters

when I print shipping label of UPS shipment in UPS, I get all arabic characters like that: ?????? I have read that's because of ZEND_PDF, and I should install TCPDF, but I don't know how to replace it,...
0
votes
1answer
39 views

Magento Commerce Cloud 2.3 download link PDF document

I need to provide a download link in my footer where customers get the revocation form. I have the following in my phtml filebut it is not working. The PDF document is in pub/media/pdf/Muster-...
0
votes
0answers
37 views

Magento 2 - Want to show tax applied on order with code and rate in custom invoice pdf

I have generated custom invoice pdf, now I want to show TAX field after subtotal, How can I get this anyone has an idea please let me know?
0
votes
0answers
31 views

Magento2: Catalog PDF generator

We have install free extension catalog pdf geenrator: https://snm-portal.com/magento2-pdf-publication.html movie with issue: https://streamable.com/h4g99 But in tab "Templates" we get issue: https://...
0
votes
1answer
57 views

Magento 2: zend pdf anchor link not show in pdf file

I am using below code to show hyperlink in pdf file but link is not showing.Drawtext method works fine.It means hyperlink code is not working $pdf = new \Zend_Pdf(); $pdf->...
0
votes
0answers
19 views

Underscores in Media URLs - can't change to dashes, won't upload!

We have just had a brand new updated Magento 1 website and had to re-upload all our images/pdfs. Usually, in the past we label these how we want the URL to show however: URLs / file names have ...
0
votes
0answers
81 views

Magento2 Zend Pdf draw png images not working

I want to print png images in pdf not working it gives error Only non-interlaced images are currently supported how to solve this ? $directImagePath = "C:/xampp/htdocs/magento232/pub/media/...
0
votes
0answers
31 views

How to add Bank Transfer payment method's instruction to invoice PDF

I'm wondering how to add Bank Transfer payment method's Instructions to the invoice PDF? There are these two files for other payment methods: vendor/magento/module-offline-payments/view/adminhtml/...
0
votes
0answers
62 views

Warning: file_put_contents(invoice-1574071311.pdf): failed to open stream: Read-only file system in file/path/Test.php on line 100

Facing error while downloading the pdf file from the frontend link on the cloud server Warning: file_put_contents(invoice-1574071311.pdf): failed to open stream: Read-only file system in file/path/...
0
votes
1answer
21 views

Magento 2 How to edit invoice PDF to change subtotals calculations

Magento2 How to edit invoice PDF to change subtotals calculations.
0
votes
0answers
17 views

How to change Invoice PDF for each store? Magento 2

how to change invoice pdf default to custom invoice pdfs which ben created <preference for="Magento\Sales\Model\Order\Pdf\Invoice" type="Module_Name\Model\Pdf\Invoice" />
0
votes
0answers
31 views

Using Zend_Pdf setTextField function , how to I fit the text field size in pdf to text value set programatically?

When the text field is set with a value through zend pdf , in pdf the text field size is greater than the text width.How do I fit that text field size to text size using zend_pdf.? $pdf->...
0
votes
0answers
45 views

Magento 2 : add PDF attachment to new order email

I would like to add a custom PDF to the new order email for Magento 2.2 (each PDF is different I can't use an existing module). I looked into the file : vendor/magento/module-sales/Model/Order/...
0
votes
1answer
35 views

Magento 2.3.0 | How to convert custom popup into PDF and Download

I am having an Custom popup code which appears on the product page, I need to download this as PDF, I tried with dumpdf but couldn't succeeded. My code is following: <?php $prodArr = $this->...
0
votes
0answers
20 views

Custom PDF not able to download

I'm crating custom PDF file, Bellow script is working good except for MacBook & iPhone devices. $fileName = 'rma'.date("Y-m-d_h-i-s").'.pdf'; $this->fileFactory->create( $fileName, $...
0
votes
0answers
110 views

Create QR Code in PDF file

I want to create a QRCode (contains a simply string) in a new PDF file. I use Endroid/QrCode which use BaconQrCode. However, I need to specify version and this is put in hard in the code. I don't ...
0
votes
1answer
849 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 ...
0
votes
1answer
176 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?
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 ...
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
99 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
1answer
721 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
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 ...
0
votes
1answer
212 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
1answer
166 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/...