uni = True - this is for other (non English) letters as żźół (e.g. for Polish), otherwise this is not possible for fpdf to print those letters to PDF
@ChartExplorers3 жыл бұрын
Thanks @Smolag!
@SHONNER3 жыл бұрын
Glad I found this video. I'm learning FPDF2 right now.
@ibaha411 Жыл бұрын
Can you make a video on how to use all these techniques in streamlit apps? Specifically, how to print a streamlit page to a pdf?
@gnfrost67243 жыл бұрын
Thanks for helping out with my homework really appriciate it
@ChartExplorers3 жыл бұрын
Happy to help!
@superyaourght867 Жыл бұрын
Hey I'm on mac and I'm trying to set Baskerville italic font. I get this error message (please help me...) : 1 extra bytes in post.stringData array 1 extra bytes in post.stringData array 'kern' subtable longer than defined: 4142 bytes instead of 4144 bytes feat NOT subset; don't know how to subset; dropped meta NOT subset; don't know how to subset; dropped morx NOT subset; don't know how to subset; dropped Here is my add_font : self.add_font('Baskerville', 'I', '/System/Library/Fonts/Supplemental/Baskerville.ttc') and my set_font : self.set_font('Baskerville', "I", 15)
@ches_ter68423 жыл бұрын
Hi dear All! How I can use it on external server? I mean, now everybody who use my webapp should do all the same steps on each own PC in order to be able generate pdf with properly fonts? And is there any way to output dynamicaly data from database to pdf? Thanks!
@lilberri58262 жыл бұрын
I tried using .OTF instead of .TTF and it did not work. Have you encountered this issue? If so, what was your solution? Thanks
@elishaamenuveve71132 жыл бұрын
I tried using ttc and I also had problems so I just downloaded a google font which was similar to the one I wanted.
@issamohammed35292 жыл бұрын
i have issue with Arabic text u have any solution thank u
@cloud_computing3 жыл бұрын
This is exactly what I was looking for.. Thank you
@CI302 жыл бұрын
Hi this feature is NOT working now. It shows an error ="TTF. add_font() used to accept .pkl file as input, but for security reasons this feature is deprecated since v2.5.1 and has been removed in v2.5.3." So how can v resolve it?
@ChartExplorers2 жыл бұрын
Hi Karan, thanks for letting me know. I'll look into this and get back to you.
@TP-zo5zh Жыл бұрын
@@ChartExplorers any solution?
@rhysbennett16673 жыл бұрын
Thank you so much for the help, this is great
@ChartExplorers3 жыл бұрын
You're welcome!!
@MrMMVPP Жыл бұрын
thanks :D
@shahzan5253 жыл бұрын
👍
@mayankgupta59062 жыл бұрын
Hey, i am facing issue in adding custom font for 'hindi' language. Can you please help me to generate pdf with currect font style. from fpdf import FPDF # save FPDF() class into a # variable pdf pdf = FPDF() #Add Custom Font pdf.add_font('Nirmala UI', '', r"C:\Windows\Fonts\Nirmala.ttf", uni=True) # Add a page pdf.add_page() pdf.set_font('Nirmala UI', '', 13.5) # create a cell pdf.cell(200, 10, txt = "जिन विद्यार्थियों को हिंदी विषयो से लगाव है", ln = 1, align = 'C') # save the pdf with name .pdf pdf.output("GFG.pdf")
@mahijain9211 Жыл бұрын
Hi, I am also trying to solve this problem but still now got nothing 😢