为有中文需求的客户提供多渠道中文技术支持.

Thu Apr 02, 2020 10:12 am

使用spire.office 5.3.7
.NET CORE 2.2.3部署到CENTOS7上,在 document.LoadFromFile(path,Spire.Doc.FileFormat.Auto);的时候汇报下面的错误
The type initializer for 'Spire.Doc.Documents.PointsConverter' threw an exception.
已安装libgdiplus

chenxin010
 
Posts: 9
Joined: Thu Mar 19, 2020 1:48 am

Thu Apr 02, 2020 10:15 am

上面那个是在转doc后缀的html格式文档报的错
在读取PDF的时候也会报下面的错误
The type initializer for 'Gdip' threw an exception.

chenxin010
 
Posts: 9
Joined: Thu Mar 19, 2020 1:48 am

Fri Apr 03, 2020 3:06 am

附错误截图

chenxin010
 
Posts: 9
Joined: Thu Mar 19, 2020 1:48 am

Fri Apr 03, 2020 6:34 am

您好,

感谢咨询。
为了帮助我们进一步调查您的问题,请提供您的输入文档和您完整的代码。
您可以通过邮件将其发送给我们(support@e-iceblue.com)。谢谢!

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Sun Jul 19, 2020 3:09 am

chenxin010 wrote:使用spire.office 5.3.7
.NET CORE 2.2.3部署到CENTOS7上,在 document.LoadFromFile(path,Spire.Doc.FileFormat.Auto);的时候汇报下面的错误
The type initializer for 'Spire.Doc.Documents.PointsConverter' threw an exception.
已安装libgdiplus


要单独安装libgdiplus 如果在docker里面就要写一句命令

feitiandundi
 
Posts: 1
Joined: Sun Jul 19, 2020 2:52 am

Mon Jul 20, 2020 4:02 am

feitiandundi 您好,

感谢您的发帖。
是的,在docker中测试时需要在dockerfile中添加以下命令来安装libgdiplus。如果您在使用我们产品时有遇到什么问题,欢迎随时联系我们。
Code: Select all
RUN apt-get update \

    && apt-get install -y --allow-unauthenticated \

        libc6-dev \

        libgdiplus \

        libx11-dev \

     && rm -rf /var/lib/apt/lists/*


Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Return to 中文技术支持

cron