Brother what if I want to do this without using html how to do it?
@edisonneza
Ай бұрын
What do you mean without using html? You want to include it in a react/angular code? If yes, just install the package from npm and import it. Anyway asap, i will publish a video on that as well.
@domesan.u1610
Ай бұрын
@@edisonneza without html means i am doing content script for creating extension. So I cant insert scripts into webpages but also i need external libraries which have to be imported how to do?
@edisonneza
Ай бұрын
@@domesan.u1610 if the script is in javascript/typescript you can import it. Open a github issue pls, providing some code examples, so i can help you;
@FlutterMelodies
2 ай бұрын
Can't more appreciate ❤
@user-jw7ej9zu7n
2 ай бұрын
I want to print a specific text PDF, not the full page, meaning part of the text or a report. Depending on what I want to print
@edisonneza
2 ай бұрын
You can remove all the properties based on your needs.
@eliya3424
2 ай бұрын
Love it! What is the best way to populate each row with info taken from user input? I created a Point-Of-Sale page that allows the user to select an item, specify qty and price, then add to cart. I have all the data stored in an array and use that array to dynamically update the cart display on the page. Can I use that array to populate the invoice rows? I can upload the link to my github repo.
@edisonneza
2 ай бұрын
Yes, exactly. For sure you can store are the needed info in a array of object and then just pass it to the object parameter of the template.
@edisonneza
2 ай бұрын
If any trouble you can send the url
@user-vn7su2dj5o
3 ай бұрын
How can I generate pdf directly without using button? is there any solution where I can directly generate pdf & save in folder using jquery?
@ionalexandrustefan1909
3 ай бұрын
Thank you for the help!
@jeancomontoya8715
5 ай бұрын
Can I ask something?
@edisonneza
5 ай бұрын
You could have done it 😊
@noxious9886
5 ай бұрын
how to remove bar code from bottom
@edisonneza
5 ай бұрын
I suppose just remove the stamp section in the params object
@user-uv9kv4jo6s
7 ай бұрын
How can I add Arabic text to the invoice
@edisonneza
7 ай бұрын
For the moment it is not possible for Arabic language. It’s related to the jpdf library.
@oldaricopigon4225
8 ай бұрын
thanks
@TheRealHiro
10 ай бұрын
hello, im having issues, the total at the bottom is not showing for me. i followed every step on your code
@edisonneza
10 ай бұрын
Hello, to fix it i would need the parameters object you have created. Maybe you can open a github issue about this.
@TheRealHiro
10 ай бұрын
@@edisonneza im sorry, i used the old version, newest version worked
@LeticiaS-Dev
10 ай бұрын
how can i change the logo?
@edisonneza
3 ай бұрын
Change it in the params object
@user-hd7bf8fy3p
10 ай бұрын
what a foolish video you have made 🥴🥴🥴
@sanjitthakuri4381
Жыл бұрын
It downloads pdf in our system yes, but how can i send the generated PDF (from html) into backend server without downloading
@edisonneza
Жыл бұрын
This is a question done even before. Please check the other comments and/or the GitHub issues. You will find the solution i think by sending the blob to the server and saving it in your server storage.
@megasusmegajos4321
Жыл бұрын
How can i change table cells style ? Like First row and first column to be bold or font 14 .
@edisonneza
Жыл бұрын
For the moment is supported just the width style for header cells. Please open an issue on Github so i will try to add it as soon as i can.
@jdhirhe
Жыл бұрын
Not working for hindi font
@edisonneza
Жыл бұрын
You’re right. There is a problem with some fonts with special chars. Have to make a lot o checks and tests in order to fix it.
@rudikpoghosyan4776
Жыл бұрын
How can I put my own variables
@edisonneza
Жыл бұрын
In the props objects, instead of hard coding values, try to replace them with your variables!
@Kolhv
Жыл бұрын
Thank you so much! Question, how would I add a custom "product" without the Array.from(Array(10), (item, index) => [] thing to the table?
@edisonneza
Жыл бұрын
Hi, just create an array or use an array object filled with the products. Example: [{id: zxy, name: xyz, …etc}]
@mohamedaakhil
Жыл бұрын
dumbahh
@SubcribeWithoutanyvideo-mt4zz
11 ай бұрын
@@mohamedaakhil yooo
@themanwithaharmonica9328
Жыл бұрын
Do you have any idea how I can get the pdf document to support arabic?
@edisonneza
Жыл бұрын
I’m sorry, for the moment can’t be possible. I have tried some methods but seems that jsPDF library isn’t supporting either.
@themanwithaharmonica9328
Жыл бұрын
@eNeza Okay, thank you regardless
@steilebriese759
Жыл бұрын
thanks!
@smpharmasmpharma
Жыл бұрын
Hello, I would like to know how I can center the text of a column
@edisonneza
2 ай бұрын
For the moment not possible. Will be added soon
@sorknerl
Жыл бұрын
Is it possible to style the table with CSS? And how do I add simple text above the table?
@edisonneza
Жыл бұрын
For the moment you can’t do that. If u want to add something that is not implemented in the template, just fork the projekt and make the specific things
@ImJuned09
Жыл бұрын
Use inline css it should work
@zanispleve1777
Жыл бұрын
Where did you created template?
@edisonneza
Жыл бұрын
Olympus Mons 😉
@zanispleve1777
Жыл бұрын
@@edisonneza it founds only volcano on mars 😀
@edisonneza
Жыл бұрын
@@zanispleve1777 😂😂 I didn’t get the question
@zanispleve1777
Жыл бұрын
@@edisonneza So this template are great. But i want to create my template. Do you know where to create it?
@edisonneza
Жыл бұрын
@@zanispleve1777 it’s a bit tricky to explain here, but you can see a video tutorial or read any blog post about it. Or see the code i have in the main branch and try to replicate it.
@brianevans4
Жыл бұрын
Uses invoice template. Not generally applicable to creating pdfs
@alexanamelean
Жыл бұрын
Hello, sorry for my bad english. I have tried to place an array (var customers = <?php echo json_encode($result) ?>; Array.from(customers).forEach(function(customer) { console.log([customer.Amount_kg, customer.Description, customer.Price_unit_kg, customer.Amount_kg, customer.Total_$, customer.Total_BsD,]); });) in the table field of the template and for more attempts, it does not work. could you help me?
@edisonneza
Жыл бұрын
Seems to be too little info. Can you please show the error you get in the console? Are u sure you are properly converting the php result into a correct array? For more please create a new github issue for this kind of error by providing more info. Thanks!
@chunchun_zip
Жыл бұрын
is there any way to run this, because the function doesn't work on me(via cdn link)
@edisonneza
Жыл бұрын
Are u sure u have setup correcty? Can u send us an example? Or better create a github issue?
@chunchun_zip
Жыл бұрын
@@edisonneza oh I already fixed the issue thanks btw
@naziruadam3950
Жыл бұрын
I tested many examples and watched many tutorials, but yours is the one that actually worked for me. Also, when I visited the npm website, I could find the unpkg and the example links. I had to type the URL in your example in the address bar manually to get it. The updated version on the website doesn't give such an in-depth sample, or at least I could find where it was. Thanks for the tut.
@edisonneza
Жыл бұрын
Thanks man! Glad it helped you!
@emilianovillarreal1744
Жыл бұрын
Hi! I've been running into the following error: Error: Incomplete or corrupt PNG file. Does anyone know how to fix that???
@edisonneza
Жыл бұрын
Please open an github issue with reproducible steps.
@rayanx95
Жыл бұрын
I tried to change the logo src but I couldn't every time i changed it, the generator stopped working. any solution?
@edisonneza
Жыл бұрын
Any console error? Create a github issue please with the error message
@emanuel81111
Жыл бұрын
Thank you so much , this is 1000x better than all those fucking libraries like dinkToPDF or ironPDF , those fucking libraries takes hours to set it up and you have to do so much esoteric coding for it to work ,its so fucking annoying, but this way is the best
@edisonneza
Жыл бұрын
😂😂 for basic usage you are right my friend
@Dr.UdaraSenarathne
Жыл бұрын
Thank you very much!
@kacperkepinski4990
Жыл бұрын
generate from what...
@edisonneza
Жыл бұрын
From whatever you want :D
@carlogarcenila8040
2 жыл бұрын
HI HOW CAN I PUT MY HTML IN INVOICE 2021
@carlogarcenila8040
2 жыл бұрын
ONLY THIS ARE WORKING logo: { src: "raw.githubusercontent.com/edisonneza/jspdf-invoice-template/demo/images/logo.png", type: 'PNG', //optional, when src= data:uri (nodejs case) width: 53.33, //aspect ratio = width/height height: 26.66, margin: { top: 0, //negative or positive num, from the current position left: 0 //negative or positive num, from the current position } }, HOW CAN I PUT MY STYLE AND DIV AND CONTENT
@edisonneza
2 жыл бұрын
Unfortunately you cannot work with html in this template.
@aretisrihari6878
2 жыл бұрын
Does it support Arabic language ?
@edisonneza
2 жыл бұрын
Unfortunately it doesn't work. I have tried some ways but it will show just some chars. It's an issue with the jspdf library.
@Akephalos204
2 жыл бұрын
Nice !!!!!!! And thanks
@brianochieng6982
2 жыл бұрын
how can i do this with vue.js , as i call data from an SQL Database . Because when i load the data into console it fetches but i dont know how to put it in a receipt
@edisonneza
2 жыл бұрын
Map the response you get to the props object for the pdf template library. Take a look at the readme file in order to understand better. Feel free to create an issue with more detailed info so I can help you specifically.
@remmanemohamed7120
2 жыл бұрын
Great video but How I can the change the size and the data inside the table using external variables
@edisonneza
2 жыл бұрын
Sorry man, i don't get it. Can you be more specific?
@remmanemohamed7120
2 жыл бұрын
I mean when I try to put a my variables inside the object like it will give me undefine
@edisonneza
2 жыл бұрын
@@remmanemohamed7120 a bit strange. Are you sure your variables are defined? Be careful for case sensitive variables. Let me know if still error.
@remmanemohamed7120
2 жыл бұрын
@@edisonneza no I fixed the error thank you for your intention
@juancampos13
Жыл бұрын
@@remmanemohamed7120 Could you please tell me how did you fix it? When I try to put my external variables it shows me the UNDEFINED as well and I been trying to fix it but I don´t really know how to do it.
@morfioss3974
2 жыл бұрын
how can i use this with angular 10 please
@edisonneza
2 жыл бұрын
What type of error do u have? Can u make a try with version 1.3.1 please?
@morfioss3974
2 жыл бұрын
@@edisonneza in this line itvar pdfObject = jsPDFInvoiceTemplate.default(props); i get that defaut is not a known element of props
@edisonneza
2 жыл бұрын
@@morfioss3974 how did you pass the props object?
@98cintya
2 жыл бұрын
how can i center the title header? thanks
@edisonneza
Жыл бұрын
At the moment it’s not possible. Working in a feature like this.
@adamfakrullah207
2 жыл бұрын
Why it cannot translate to Japanese language?
@edisonneza
2 жыл бұрын
Japanase uses a different font family. I've tried some tests in order to update the package but with some words does work, with some others not, as u can see the following github issue. At this point can't do anything to support it. github.com/edisonneza/jspdf-invoice-template/issues/20
@amazecreations1853
2 жыл бұрын
Thanks man
@mrwho7382
2 жыл бұрын
THANK YOU SIR YOU ARE A GENIUS... I WAS STUCK ALMOST 2 WEEKS TRYING TO GENERATE MY INVOICE ... NOW FINALLY I FINISH.... DO YOU KNOW HOW CAN I DO INSTEAD OF DOWNLOAD... RENDER IN A NEW BROWSER WINDOW ?
@edisonneza
2 жыл бұрын
Thank you man, glad that it helped you! About your question, u can see the output object here: github.com/edisonneza/jspdf-invoice-template/blob/main/src/index.js Specifically what u need is this output type: dataurlnewwindow
@mrwho7382
2 жыл бұрын
@@edisonneza Thanks man, how can I open in new window but with custom sizes lika a popup...i was trying using window.open()...
@edisonneza
2 жыл бұрын
@@mrwho7382 I think you can output it as a blob type and try to open it in a new browser windows with custom size passing it as a blob URL. Just a sample: stackoverflow.com/questions/21729451/pdf-blob-pop-up-window-not-showing-content
@mrwho7382
2 жыл бұрын
kzitem.info/news/bejne/qJiQx22pcoWapqg HERE the explanation !
@nileshsargar1225
2 жыл бұрын
getting error for angular 13, does this library also give support to angular 13 ? or is ther any solution?
@edisonneza
2 жыл бұрын
Take a look at the latest version!
@dimasnugroho9996
2 жыл бұрын
hello, i got problem when i try to used it and build with my next js like this Cannot read property 'bind' of undefined any suggest for solving this. thanks
@edisonneza
2 жыл бұрын
Take a look at the latest version!
@hegelmotokoua
2 жыл бұрын
Super video !
@bobyuwono6063
2 жыл бұрын
I just came across in the right time. Thanks for making the library, Sir
Пікірлер