Skip to content
Discussion options

You must be logged in to vote

this works:

import fitz
text = "Total amount is € 32.368,00"
doc=fitz.open()
page=doc.new_page()
page.insert_text((72,72), text)
page.insert_text((72,92), text.replace("€",chr(0x80)))
doc.save("x.pdf")

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@JorjMcKie
Comment options

Comment options

You must be logged in to vote
1 reply
@Bogghi
Comment options

Answer selected by JorjMcKie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants