ÐБВЕГдшцшшвфывщфыщцйщыфё 123132 dksadwofdadasdao
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pdfkit
options = {
'encoding': 'UTF-8'
}
result = '''
АБВЕГдшцшшвфывщфыщцйщыфё 123132
dksadwofdadasdaos'''
pdfkit.from_string(result, f'test.pdf', options=options)