Questions tagged [pdf]

Denotes questions related to PDF management and generation in Magento.

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

merge pdf in magento 2 module

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

Include Shipment and Inoices pdf generator in order grid in magento 2.3.2

As in magento 1, there is Shipment and invoice Pdf generator in order grid also. How can i include that in magento 2 as well. I want to include and shipment and invoce pdf generator in order grid ...
0
votes
0answers
8 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
13 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,...
2
votes
1answer
30 views

Custom Invoice PDF from external source

I'm trying to read the invoice pdf from an external source. Can anybody tell me how can I make the external pdf available to the client overriding the one made available by default? Thanks !
0
votes
1answer
35 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-...
2
votes
0answers
42 views

Magento2 how to display additional custom total value in shipment email

I have added a new custom cart total (e.g. Extra Fee) in my current project. I made it display on almost every page, email and pdf files. However, I can't able to find a way to display it in the ...
0
votes
0answers
29 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
21 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
0answers
40 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
1answer
29 views

Magento 2 Custom UI grid form.php validate upload file extension

I want to check the upload file extension in form.php, I have three upload file options I want to check the upload file is pdf or not. Thanks in advance. my form.php file is namespace Vendor\...
0
votes
0answers
14 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
58 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
1answer
46 views

How to display 'Shipping & Handling' in PDF if Shipping Amount is $0.00?

Magento 2.3.2 In my invoice PDF if Shipping & Handling amount is null or 0 it hides that row like this: But I want to to display it as $0.00 if the price is null like this: I found this file /...
1
vote
0answers
23 views

Magento 1.9 print invoice the characters are shown split and reverse

I have changed the font of pdf invoices to support Arabic characters, but the problem is the characters are split and reversed? Any suggested solution please Help!
1
vote
0answers
42 views

Send custom pdf in attachment in email in magento2.2.6

How to add PDF as attachment in magento 2.2.6 ? I have created code using an event "checkout_onepage_controller_success_action" to sends an email after place an order button click. 1) When ...
0
votes
0answers
23 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/...
1
vote
1answer
35 views

How to use || or && in Email Template or PDF Template Magento 1.x

I want to use || in {{if}} I tryed like this but it not work, please help me {{if helper.eq(order.shipping_description, "abcd") || helper.eq(order.shipping_description, "dede") }} <p>abcd &...
2
votes
1answer
46 views

overwriting the AbstractPdf.php

I am trying to overwrite the core AbstractPdf.php from vendor/magento/module-sales/Model/order/PDF/AbstractPdf.php To app/design/frontend/vendor/projecta/Magento_Sales/Model/order/PDF/AbstractPdf....
1
vote
1answer
54 views

Missing words when create pdf invoice with chinese character

I am currently having a problem: Currently when I create an invoice in the backend in Chinese, my font is missing some characters that cannot be created. I tried searching for different fonts on ...
1
vote
0answers
41 views

Magento 2 Order print showing href links with content!

I have social links in footer in the website, and configured url in admin configuration for social icons. But when I am printing order PDF from customer account order view page then all links on the ...
0
votes
0answers
46 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/...
1
vote
1answer
81 views

Magento2: create pdf file option in product details page

I need an option to select the chose upload file (pdf) from admin site and that file will visible and have a download option for users On the product details page on frontend. below is sample images. ...
0
votes
1answer
17 views

Magento 2 How to edit invoice PDF to change subtotals calculations

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

Add the weight to the Magento 2 .pdf invoice

I'm using Magento 2.3.0 and I would like to add the products weight, or overall weight of the order on the .pdf invoice.
0
votes
1answer
38 views

Magento Listing Product Attributes on Invoice PDF for Bundle Products

I am listing three product attributes (mfg_pn, oem_pn, & physical_location) for each child product of a bundle product by using the following code after line 253 in: app\code\local\Mage\Bundle\...
0
votes
0answers
16 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
29 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
44 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
26 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
19 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, $...
1
vote
0answers
102 views

Magento 2: Use Zend_Pdf easily while making PDF file

How to make a dynamic PDF easily while sending an email with this PDF attachment using Zend_Pdf because of this type of code $page->drawText(__("Image"), $x + 60, $this->y-10, 'UTF-8'); $...
0
votes
1answer
173 views

After Creating Custom PDF Save Magento 2.3

Using dompdf Convert Custom Email Template To Pdf But After Create PDF I Want to Save That PDF into pub/media/customFolder Here My Code :- Define in email_templates.xml :- <?xml version="1.0"...
0
votes
1answer
106 views

Convert Custom Email To PDF : Magento 2.3

I Have Custom Module For Send Email. But I Want To Send Pdf Same As Email. I Want To Convert My Email Template To PDF And Attach It to Email Magento 2.3
0
votes
1answer
29 views

customizable option file(.pdf) is not open

In product custom option type is File. I allow only png, jpeg, txt, pdf extension. In place order time when I select PDF, it's work. A custom option also select. But when we open that file (pub/...
1
vote
1answer
64 views

How to show grand total amount in english words Magento 2 invoice pdf?

In Magento 2 invoice pdf, how can I show grand total amount in english words also? How can I achieve this?
0
votes
1answer
692 views

Magento 2.3: How to print order without invoice

It looks like in the admin, you're only able to print the order via the invoice or shipment -- but orders that are pending that were paid via PO or COD methods, there's no option to print the order. ...
0
votes
0answers
26 views

Magento 2 custom image not working in pdf

I am trying to print a custom image in a custom pdf. This runs as a cron. Everytime I run bin/magento cron:run, it displays all the output on the terminal and crashes. Here's my code- $imagePath = '/...
1
vote
1answer
215 views

How create Custom Pdf in magento 2 Like invoice , Shipment

I want to create custom pdf with custom text or media can anyone suggestion me any best link or some help Thanks
0
votes
0answers
16 views

Add Custom Information in pdf When Print All in sale order grid dropdown in Magento2

I want to add some custom information in pdf When admin click on sale Order Grid dropdown Print All option . Can anyone guide me i will be appreciate . Just i want to add some footer or other text ...
0
votes
0answers
87 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
2answers
685 views

how to edit Invoice pdf in magento 2.3

I want to edit my invoice PDF in magento 2.3, In below mentioned image. the 'red' bordered section move top on 'green' bordered section (Change Position). how to achieve my requirement ?
0
votes
0answers
27 views

I want all order attachment to print once I “print all” with the invoice in magento sales grid: M2.3

On the Magento2.3 sales grid, there is a dropdown tab that says "Print All". When I select this, not only do I want the order invoice to print, I also want all the order attachments to print. The ...
2
votes
0answers
36 views

How to change the PDF invoice list format, in Magento2?

I have managed to create a module, and overwrite the \Magento\Sales\Model\Order\Pdf\Invoice class, using the steps proposed by this answer: https://magento.stackexchange.com/a/241932/80959 My ...
0
votes
1answer
55 views

when user click on placed order, order pdf will generate and attached it to user's order email

I want the following actions. When any user clicks on "Place Order" on the checkout page, A pdf of this order will be automatically generated. And this pdf is automatically attached to email "Your ...
1
vote
2answers
249 views

Invalid Document Element 'total': Missing child element(s). Expected is one of ( title, title_source_field, font_size, amount_prefix ). in magento 2

open admin panel and go to sales->invoice and select invoice and download PDF this issue is generated. i have check network show 500 error it is a permission issue hello everyone plz give me a ...
0
votes
1answer
257 views

Rearrange the position of subtotal,shipment,tax in pdf invoice magento 2

I want to rearrange the position of subtotal,shipment,tax in pdf invoice. I want to move "tax" before grand total.
0
votes
1answer
116 views

How to change shipment PDF font style in Magento 2.2.7

I am working on Magento 2.2.7 & need to change font style of shipment pdf i want to achieve that using preference way of di.xml file how to do that. which files,function i have to override ?
2
votes
0answers
108 views

Refresh page after download PDF in custom module magento 2

Refresh page after download PDF in custom module magento 2. When the download is complete, the page is not f5. Please help me. My function public function createPDF(\Magento\Framework\Event\...
1
vote
2answers
191 views

Magento 2.3: How to attach a pdf file with new order mail?

I am using magento 2.3.1 I need to send a pdf with new order mail, I have already done that for magento 2.2.6 but that is not working with 2.3. Can any one help me with this?

1
2 3 4 5
8