Amazing video, probably the most feasible way to generate pdf with Python, thanks a lot!
@theaccountantguy3 ай бұрын
Awesome explanation, loved the detailed explanation of everything. Keep up!
@emmanuelsackey2865 ай бұрын
Wow! Great video 👍 I have been looking for something like this. Cheers
@tech_no2797 Жыл бұрын
Hello Thank for video. But i try to to include image in m'y pdf from my local , not from internet. Bu dont work. Help me please
@diidiNovarino2 ай бұрын
what if for bulk transaction and we don't know how many item we will put in invoice. dynamic number of item, can be 1, 2 , 3 or more items. so the row of item will be dynamic
@johnsonberko1409 Жыл бұрын
You're amazing. I really needed to learn how generate pdf from html. God bless you
@disrael21012 жыл бұрын
Perfect, are you offering a bootcamp for automation?
@ThePyCoach2 жыл бұрын
Yep. Link in the description
@disrael21012 жыл бұрын
@@ThePyCoach no I mean like a live course bootcamp the udmey automation course looks exactly the same as your KZbin videos projects
@disrael21012 жыл бұрын
@@ThePyCoach which MacBook model you use by the way
@bd8991 Жыл бұрын
is it possible to use this in a react project? Very good video btw, thanks
@dandickout12822 жыл бұрын
Great video Frank, very helpful.
@ThePyCoach2 жыл бұрын
Glad it was helpful!
@karimilamaganti Жыл бұрын
How can i send dynamic array for the itemss and totals?
@dafeichdei Жыл бұрын
Hi, first of all, ty for that good video :). For my self-developed ERP System i try to make a module wich creates my invoces. Now what would happen in your program if you have so many posts that a new page is needed. Would it detect the page break itself or try to continue writing on the first page?
@jozielsc Жыл бұрын
When the document is long, in cases where it is necessary to repeat the header and footer, in addition to dealing with page breaks, what do you recommend?
@OMGitsjustperfect Жыл бұрын
How would you render a list?
@anthonymarques65517 ай бұрын
Hello, First of all, thanks for the demonstration. If my HTML is already formatted and I just want to convert it into a PDF, how can I do it? I skip the variable steps only, correct?
@Bruh-og1sz23 күн бұрын
how is it new method 2024 when it was uploaded 2 years ago??
@rohannirwan9868 Жыл бұрын
Hi I created 1 PDF but the created PDF file size was of 24 MB while the html file is only 800 KB
@_freak_83772 жыл бұрын
Hello. Thank you for an AMAZING video! My only question is how can I change an output path for created pdfs?
@RDLit-lh4rvАй бұрын
Nice
@rowsenbayramow1040 Жыл бұрын
thx. good video 👍
@bashful88 Жыл бұрын
Hello, I wanted to create a table in my pdf,. I will supply the input as an array. Is it possible to iterate through the array in the html using a for loop? Or will it take only static variables?
@johnkneemtb Жыл бұрын
Pass the Python list to the template and Jinja supports {% for item in yourlist %} you then access each item as {{ item}} then close out the loop with {% endfor %}
@kuyabae9008 Жыл бұрын
@@johnkneemtb the problem is that the pdfkit only accepts dictionary.
@johnhorton3727 Жыл бұрын
@@kuyabae9008 maybe you're new to Python but a dictionary can contain a list. The below is perfectly fine. context = {'client_name': client_name, 'today_date': today_date, 'total': f'${total:.2f}', 'month': month, 'yourlist':[ {'name': item1, 'subtotal': f'${subtotal1:.2f}'}, {'name': item2, 'subtotal': f'${subtotal2:.2f}'}, {'name': item3, 'subtotal': f'${subtotal3:.2f}'} ] }
@johnhorton3727 Жыл бұрын
Then in the HTML it would be something like: {% for row in yourlist %} {{row['name']}} {{row['subtotal']}} {% endfor %}
@CubaPavel2 жыл бұрын
Thank you, great video.
@VEDANTSINGH-ij4qe Жыл бұрын
i have a question................
@janawue4164 Жыл бұрын
Hi, thank you for the really good video! Do you have any idea how I can deal with this if I have a variable number of invoice items and want to display them in the PDF? I am not sure how to do this in the HTML template.
@leventsertac Жыл бұрын
liked the video.
@CreativeGamez Жыл бұрын
my i know which code editor is this?
@lgaedits Жыл бұрын
jetbrains pycharm
@lgaedits Жыл бұрын
it's the best editor out there but also the most expensive. I would rather use vs unless u get it paid by ur company or school
@sigfigronath2 жыл бұрын
This is perfect! Can we make this as an app, even terminal app so we can add the values and it generates the invoice
@ThePyCoach2 жыл бұрын
Sure. One way to implement what you ask would be using the input function for each variable that I created
@lovathon6365 Жыл бұрын
Nothing against you as a creator, but I am learning python and my udemy course has this unfortunate portion that deals with pdf's... after watching your video, i can 1000% say, that making pdf's is the worst thing i have learned in python so far and couldn't even complete that portion of my course. HTML in python, basically, is just horrendous and mind numbing. anything to do with creation is front end and focusing on backend, its just masochism.