Тест/Test 1234567890
! " № ; % : ? * ( ) _ +
= - & ^ % $ # @ . ,
| \ / [ ] { }
; : ' " < > `
from fpdf import FPDF
pdf = FPDF()
pdf.add_page()
pdf.add_font('Segoe UI Bold', '', 'Segoe UI Bold.ttf', uni=True)
pdf.set_font("Segoe UI Bold", size = 15)
with open('text.txt', 'r') as file:
for info in file:
pdf.cell(200, 10, txt=info, ln=1, align='C')
pdf.output("text.pdf")
1252 Latin 1
1250 Latin 2: Eastern Europe
1251 Cyrillic
1253 Greek
1254 Turkish
1255 Hebrew
1256 Arabic
1257 Windows Baltic
1258 Vietnamese
Mac Roman Macintosh Character Set (US Roman)
Python 2.5 to 2.7 support (with experimental Python3 support)