Skip to content

I get an error when I try to use the function "convert_to_pdf". #1966

@hoaile-novobi

Description

@hoaile-novobi

Hi admin, please help to find out what happen with my PDF file, my file is a form format PDF and i would like to convert it to flatten format so i use the "convert_to_pdf" function, but it throw an error RuntimeError('substitute font creation is not implemented yet')

Here is my code:

attachment = base64.b64encode(image_file.read())
pdf_file = fitz.open("pdf", base64.b64decode(attachment))
pdf_bytes = pdf_file.convert_to_pdf()

My PDF: https://drive.google.com/file/d/18D-Kn2cRWE_dLRItNgOb4N_ys5CUA-X6/view?usp=sharing
Please help.

Metadata

Metadata

Assignees

Labels

not a bugnot a bug / user error / unable to reproduce

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions