Hi Team,
I am using Spire.PDF v6.11.6 to convert PDF to PDF/A compliant document. I am able to build and run the code on Windows machine however when i am trying to run the same code on AWS Lambda environment[Linux OS], its failing.
Platform user: .Net Core 3.1
Code:
PdfStandardsConverter converter = new PdfStandardsConverter(tempFileName);
converter.ToPdfA1A(tempFileName1a);
i am getting below error:
Error while converting file:System.TypeInitializationException: The type initializer for 'sprᜬ' threw an exception.
---> System.InvalidOperationException: Cannot found font installed on the system.
at spr☱.ᜀ(String A_0, FontStyle A_1, String A_2)
at sprᜍ..ctor(String A_0, FontStyle A_1)
at sprᜋ..ctor(String A_0, Single A_1, FontStyle A_2)
at sprᜬ..cctor()
--- End of inner exception stack trace ---
at spr᪸.ᜃ()
at spr᪸.ᜂ()
at spr⭠.ᜁ(sprᤜ A_0)
at spr⭠.ᜀ(spr᪻ A_0, sprᤥ A_1, List`1 A_2)
at spr⭠.ᜀ(List`1 A_0, sprᤥ A_1, List`1 A_2)
at spr⭩.ᜀ(List`1 A_0, sprᤥ A_1, List`1 A_2, spr⭉ A_3)
at spr⭊.ᜀ(spr⭉ A_0)
at spr⭊.ᜁ(spr⭉ A_0)
at spr⭊.ᜀ(PdfDocumentBase A_0, String A_1)
at Spire.Pdf.Conversion.PdfStandardsConverter.ToPdfA1A(String filePath)
Can you help me out to fix this issue. I believe Spire.Pdf class is trying to find the Fonts on linux application but its not available so failing. Can i get a solution of this issue?