Questions tagged [pdf]

Denotes questions related to PDF management and generation in Magento.

Filter by
Sorted by
Tagged with
0 votes
1 answer
37 views

Magento 2.4.3 create custom pdf

Hi team i have custom data in table formate like below formate <tbody><tr> <td class='item-info'>BT40CC25120ARRIS<br/></td> ...
user avatar
0 votes
0 answers
20 views

Magento 2: Create custom pdf

I want to create a custom pdf on button click. Currently I am doing it using the following code but it is conflicting with the other js on the page and causing errors: <?php /** * Copyright © 2017 ...
user avatar
0 votes
0 answers
32 views

Solution for editing and sending PDF invoices?

What would be the easiest solution to edit the design of a PDF invoice and send it to customers? As I understand, editing the design in Magento is a bit too complicated. I'm currently considering 2 ...
user avatar
0 votes
2 answers
36 views

How do I make a pdf link within website open in a new window?

Is there an easy way to set a pdf link (link to a file within the website) open in a new window? I am sure this must be something to do with the code, but it is the first time I have been asked to do ...
user avatar
0 votes
1 answer
34 views

How can I remove the white space from pdf invoice on tax(VAT) and make it 2 columns

I have a space on the row where the tax(VAT) is placed. On subtotal, total, etc and other fees the columns are ok, but for some reason on the tax row the placement is different and the pdf is printed ...
user avatar
0 votes
1 answer
31 views

Magento 2.4 Invoice - Templates

Does anyone know if there is anywhere that has a selection of Free PDF Invoice templates that is compatible with Magento 2.4.3? I need to show each custom attribute on a new line, I would also like ...
user avatar
  • 11
0 votes
1 answer
23 views

Blog module with file attachment feature in magento 2

Is there any extension available for blogs that allow attaching pdf, images, videos, and content specific to the blog in Magento 2.4? Please suggest. free or paid anything is fine.
user avatar
0 votes
1 answer
36 views

Order details page as pdf

I need to make an extension to generate order details page as a pdf file when I click in print pdf button.help please
user avatar
1 vote
0 answers
21 views

print order details pdf in order detail page

I need to add a print button to the order detail page so once we click on it we have the same information in a downloaded pdf format
user avatar
0 votes
0 answers
23 views

Import Invoice PDF

A client requested to import a custom invoice PDF from an external source. We're free to decide about the technical flow (fetching from a location / pushing it via API). Anyway, I wasn't lucky when ...
user avatar
  • 1
0 votes
0 answers
52 views

How to Edit Invoice in Magento 2 using programmatically

I want to add colour with the name of product Like - If the product name is Jeans and the selected colour is Blue then I want to print name on invoice is like Blue Jeans in name section. How to do ...
user avatar
  • 526
0 votes
0 answers
15 views

Link specific file with the corresponding product

I have a huge list of products ( simple products) that all have a unique attachment. It is possible to add them manually and manage them with a plugin, but I was wondering if there is a more efficient ...
user avatar
0 votes
0 answers
37 views

How to add a Link in Shipment PDF?

I'm creating a PDF file with a link and I need to open the link in a new window. How can I do that?
user avatar
  • 1
0 votes
1 answer
103 views

Generate order confirmation PDF

I am creating a module, that should send invoices and the order(confirmation) pdfs to some declared E-Mail addresses. I am able to do so for the invoices. But I dont know how to generate the order-...
user avatar
  • 383
1 vote
1 answer
25 views

Magento2.4.2 own module class does not appear in generated (no error while setup:ci:compile)

sorry to bother but I'm really stuck with a strange problem. My goal is to have the invoice PDF changed but the class I've created to do this (which is currently a bunch of code from another guy) does ...
user avatar
  • 11
0 votes
1 answer
165 views

Magento 2 - include JS library without Require.JS

I'm trying to include the jsPDF library in my Magento 2 like this: <script type="text/javascript" src="<?php echo $this->getViewFileUrl("Vendor_Module::js/jsPDF.js");...
user avatar
  • 285
0 votes
1 answer
340 views

How to add custom font in DOM pdf in magento 2?

I have tried to add font using below code in head tag of html but it is not working. DOM PDF is showing it's default font. But i want to show custom fonts as per my website. So tried below code @font-...
user avatar
  • 1,948
0 votes
1 answer
864 views

Magento 2: Show whole HTML code(phtml file code) into PDF file and Download with the use of DOM PDF?

I have tried to do it with zend pdf but i am not able to show whole html content with the use of zend pdf. If i want to display content of cms block , then i am not able to do it with Zend PDF. I have ...
user avatar
  • 1,948
0 votes
1 answer
85 views

Sending PDF via email works when command run on console, but not when run by a cron job

I've become stuck, I want to send a custom report via email in a pdf format. It's strange because it works correctly when I run the command via the console, but when it's run via a cron job nothing ...
user avatar
1 vote
0 answers
137 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 ...
user avatar
0 votes
2 answers
119 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 ...
user avatar
  • 700
2 votes
1 answer
224 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 !
user avatar
  • 1,107
0 votes
1 answer
104 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-...
user avatar
2 votes
0 answers
117 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 ...
user avatar
0 votes
0 answers
103 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://...
user avatar
  • 2,052
0 votes
1 answer
401 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->...
user avatar
0 votes
1 answer
202 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\...
user avatar
0 votes
0 answers
266 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/...
user avatar
  • 2,493
3 votes
2 answers
245 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 /...
user avatar
1 vote
0 answers
50 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!
user avatar
  • 11
1 vote
0 answers
105 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 ...
user avatar
1 vote
1 answer
48 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 &...
user avatar
  • 895
2 votes
1 answer
216 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....
user avatar
  • 508
1 vote
1 answer
190 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 ...
user avatar
  • 11
1 vote
0 answers
129 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 ...
user avatar
  • 1,957
0 votes
0 answers
275 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/...
user avatar
  • 81
1 vote
1 answer
528 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. ...
user avatar
  • 161
0 votes
1 answer
87 views

Magento 2 How to edit invoice PDF to change subtotals calculations

Magento2 How to edit invoice PDF to change subtotals calculations.
user avatar
2 votes
0 answers
76 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.
user avatar
  • 1,417
0 votes
1 answer
100 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\...
user avatar
  • 51
0 votes
1 answer
144 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->...
user avatar
1 vote
0 answers
269 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'); $...
user avatar
  • 1,123
0 votes
1 answer
502 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"...
user avatar
  • 5,586
0 votes
1 answer
263 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
user avatar
  • 5,586
0 votes
1 answer
40 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/...
user avatar
  • 1,516
1 vote
1 answer
161 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?
user avatar
  • 309
0 votes
1 answer
3k 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. ...
user avatar
  • 650
1 vote
2 answers
1k views

How create Custom Pdf in magento 2 Like invoice , Shipment [duplicate]

I want to create custom pdf with custom text or media can anyone suggestion me any best link or some help Thanks
user avatar
  • 1,516
0 votes
0 answers
221 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 ...
user avatar
  • 894
0 votes
2 answers
4k 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 ?
user avatar
  • 1,372

1
2 3 4 5
8