I am encountering the following error while using the Python Spire.Doc library within a Docker container:
- Code: Select all
2024-07-17 08:28:29 An error occurred during conversion: Cannot found font installed on the system.: at sprdv4..ctor() + 0x69d
2024-07-17 08:28:29 at Spire.Doc.Layout.Fields.FieldOptions..ctor() + 0x64
2024-07-17 08:28:29 at sprddu.sprc(sprc6c) + 0x3d
2024-07-17 08:28:29 at sprddu.sprd(sprc6c) + 0x1c
2024-07-17 08:28:29 at sprddu.sprl(sprddn) + 0x6a
2024-07-17 08:28:29 at sprddu.spro(sprddn) + 0xbb
2024-07-17 08:28:29 at sprddu.sprr(sprddn) + 0x5a
2024-07-17 08:28:29 at sprddu.sprb(sprddo) + 0xa7
2024-07-17 08:28:29 at sprddu.spra(sprddx, sprddx) + 0x5a
2024-07-17 08:28:29 at sprddu.sprd(sprc6c, sprc7m) + 0x6e
2024-07-17 08:28:29 at sprddu.sprb(sprc6c, sprc7m) + 0x60
2024-07-17 08:28:29 at sprddu.sprc(sprc6c, sprc7m) + 0x14
2024-07-17 08:28:29 at sprdpb.spra(sprc6c, sprdpc, Boolean) + 0x31
2024-07-17 08:28:29 at sprdkz.spra(sprdlp, sprdby) + 0x123
2024-07-17 08:28:29 at sprdkz.spra(sprdl4, Hashtable, sprdby) + 0xc0
2024-07-17 08:28:29 at sprdkz.spra(sprdoe) + 0xc4
2024-07-17 08:28:29 at sprc5l.spra(Document, sprc4q) + 0x2c8
2024-07-17 08:28:29 at Spire.Doc.Document.spra(ToPdfParameterList) + 0x9e
2024-07-17 08:28:29 at Spire.Doc.Document.UpdatePageLayout() + 0x1e
2024-07-17 08:28:29 at sprdda.spra() + 0x31
2024-07-17 08:28:29 at sprdc9.sprc(sprddx) + 0x74
2024-07-17 08:28:29 at sprddu.spra(sprddx, sprddx) + 0x4f
2024-07-17 08:28:29 at sprddu.spra(DocumentObject, sprddu) + 0x57
2024-07-17 08:28:29 at Spire.Doc.Document.sprc() + 0x4c
2024-07-17 08:28:29 at Spire.Doc.Document.spra(Stream, ToPdfParameterList, FileFormat) + 0x1ac
2024-07-17 08:28:29 at Spire.Doc.Document.spre(String, ToPdfParameterList) + 0xfa
2024-07-17 08:28:29 at Spire.Doc.AOT.NLDocument.Document_SaveToFileFP(IntPtr, IntPtr, IntPtr, IntPtr) + 0x83
- Code: Select all
from spire.doc import Document as SpireDocument, FileFormat
document = SpireDocument(f"{name_generated_file}.docx")
document.SaveToFile("temp.pdf", FileFormat.PDF)
document.Close()
I have searched online for solutions and tried several methods, but none have worked so far. Do you have any suggestions on how to resolve this issue?
Thank you for your help.