Adding Paragraph text to PDF by Python ReportLab with style properties, layout and formats

  Рет қаралды 5,889

plus2net

plus2net

Күн бұрын

Пікірлер: 29
@designgoat2023
@designgoat2023 3 ай бұрын
My guy, THANK YOU! You're a hero. 🙌
@plus2net1
@plus2net1 3 ай бұрын
Glad to know that, thanks.
@joaocarlosroma4242
@joaocarlosroma4242 9 ай бұрын
Good job man, Thank for video, helped me much!
@karthikrajamony6044
@karthikrajamony6044 2 жыл бұрын
Sir, these PDF generation videos are really helpful, please do more videos on this topic
@BrunoOliveira-vq1ek
@BrunoOliveira-vq1ek 2 жыл бұрын
Congratulations for the video! It helped me a lot, keep it up!
@plus2net1
@plus2net1 2 жыл бұрын
Glad it helped!
@ABsazerNer
@ABsazerNer 9 ай бұрын
Can I use f"" to pass some parameters?
@_adamalfath
@_adamalfath 9 ай бұрын
Thanks for the tutorial One more thing I haven't figured out. If I allocate a multiline of paragraphs and only have 1 line of string, the text is drawn at the last line of the paragraph area. Is there an option to make it aligned to the first line?
@plus2net1
@plus2net1 9 ай бұрын
c = canvas.Canvas(my_path,bottomup=1,pagesize=letter) Try this bottmup=0 or with 1 and see the result.
@_adamalfath
@_adamalfath 8 ай бұрын
@@plus2net1 Unfortunately it's not it. bottomup just flip the whole canvas
@plus2net1
@plus2net1 8 ай бұрын
@@_adamalfath Ok, should not be an issue. I am in some other topic now, I will back and explore more. Give me your detail requirments here so I can post the code.
@maheshnikange1470
@maheshnikange1470 2 жыл бұрын
Thank u so much, It is really Helpful
@plus2net1
@plus2net1 2 жыл бұрын
Glad it helped
@artyomklimov3447
@artyomklimov3447 Жыл бұрын
Thx man)
@NicolasPL_
@NicolasPL_ Жыл бұрын
5:05 how do you get the names of all the fonts? They are way different from what I can see in the Windows' fonts manager
@plus2net1
@plus2net1 Жыл бұрын
l1=c.getAvailableFonts() # list of available fonts See the code in this page to get the list of fonts. www.plus2net.com/python/pdf.php
@NicolasPL_
@NicolasPL_ Жыл бұрын
thank you so much! @@plus2net1
@paarhammerwindows
@paarhammerwindows 2 жыл бұрын
MASSIVE HELP
@plus2net1
@plus2net1 2 жыл бұрын
Glad it helped
@smosavalery3056
@smosavalery3056 6 ай бұрын
good day, I have a question. How to make the next line of the text go down and not up? i am facing this issue when the page has been filled text moving up instead of moving down and create another page
@plus2net1
@plus2net1 6 ай бұрын
Try by adding line for bottomup, it can be 0 or 1 c.bottomup = 0
@smosavalery3056
@smosavalery3056 6 ай бұрын
@@plus2net1 if i want it to be added automatically once 1st page is filled then 2nd page comes
@gustavosilvacastillo6398
@gustavosilvacastillo6398 2 жыл бұрын
thanks!!!
@kingsukmajumdar2335
@kingsukmajumdar2335 Жыл бұрын
How to make both side alignment in text e.g in book
@plus2net1
@plus2net1 Жыл бұрын
p1.drawOn(c,width-450,height-350) Here width and height are full width and height of the page , we are adjusting the margins by deducting the values in pixel.
@davidrusca2
@davidrusca2 Жыл бұрын
I'm getting a 'Paragraph' has no attribute 'decode' error. Can't figure out why. 🤔
@plus2net1
@plus2net1 Жыл бұрын
Where you are using 'decode' , can you show the full line. Or check the code here . www.plus2net.com/python/pdf-paragraph.php
@davidrusca2
@davidrusca2 Жыл бұрын
@@plus2net1 hi! sorry, I was swapping a regular drawString for a Paragraph and forgot to remove the drawString. Since the text was now a Paragraph instead of a string, the drawString method that I forgot to erase was going crazy 😂 I didn't realize the error was coming from the old extra drawString cause the error said the word "paragraph" and also I assumed the error had to be coming from the new thing I was trying to learn.
@viniciusnogueira5080
@viniciusnogueira5080 Жыл бұрын
I have a question. How to make the next line of the text go down and not up?
Will A Basketball Boat Hold My Weight?
00:30
MrBeast
Рет қаралды 152 МЛН
Who's spending her birthday with Harley Quinn on halloween?#Harley Quinn #joker
01:00
Harley Quinn with the Joker
Рет қаралды 20 МЛН
小丑揭穿坏人的阴谋 #小丑 #天使 #shorts
00:35
好人小丑
Рет қаралды 45 МЛН
ReportLab 101 - Using the textobject
7:32
Mouse Vs Python
Рет қаралды 3,4 М.
Elon Musk, why are you still working? You are worth $184B
3:12
Tesla Owners Silicon Valley
Рет қаралды 5 МЛН
5 Tips To Organize Python Code
12:16
Tech With Tim
Рет қаралды 244 М.
How to generate Reports with Python automatically - 4: PDF directly
10:09
Lianne and Justin
Рет қаралды 36 М.
Extract PDF Content with Python
13:15
NeuralNine
Рет қаралды 225 М.
Generate PDF with Python - ReportLab - Create Table - #2
10:07
How to Generate an Analytics Report (pdf) in Python!
49:15
Keith Galli
Рет қаралды 157 М.
Will A Basketball Boat Hold My Weight?
00:30
MrBeast
Рет қаралды 152 МЛН