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

preview_player
Показать описание
Adding style properties
my_Style=ParagraphStyle('My Para style',
fontName='Times-Roman',
backColor='#F1F1F1',
fontSize=16,
borderColor='#FFFF00',
borderWidth=2,
borderPadding=(20,20,20),
leading=20,
alignment=0
)

By using replace() function we have to replace the line breaks.

Saving to Canvas

Download the source code from here

Part 1 Creating PDF file and adding text, line , images , water mark etc

Part 2 Generate PDF Mark sheet of students using data from SQLite or MySQL table

Part 3 PDF Invoice generation in Python

Part 4 Adding table to PDF file

Part 5 Adding database table data to PDF file

Part 6 Adding Pandas DataFrame data to PDF file

Part 7 Adding shapes like circle, rectangles

Part 8 Adding bar charts

Part 9 Adding line charts

Part 10 Adding Pie Charts

Part 11 Adding Paragraph

Part 12 Creating PDF reports

#PDFparagraph #ParagraphStyle #AddingStyleText #PDFwithParagraph #plus2net #Python
Рекомендации по теме
Комментарии
Автор

My guy, THANK YOU! You're a hero. 🙌

designgoat
Автор

Good job man, Thank for video, helped me much!

joaocarlosroma
Автор

Congratulations for the video! It helped me a lot, keep it up!

BrunoOliveira-vqek
Автор

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

NicolasPL_
Автор

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?

_adamalfath
Автор

I'm getting a 'Paragraph' has no attribute 'decode' error. Can't figure out why. 🤔

davidrusca
Автор

Sir, these PDF generation videos are really helpful, please do more videos on this topic

karthikrajamony
Автор

Thank u so much, It is really Helpful

maheshnikange
Автор

How to make both side alignment in text e.g in book

kingsukmajumdar
Автор

Can I use f"" to pass some parameters?

ABsazerNer
Автор

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

smosavalery
Автор

I have a question. How to make the next line of the text go down and not up?

viniciusnogueira
visit shbcf.ru