资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

PdfiumViewer只支持X64-创新互联

Install-Package PdfiumViewer -Version 2.13.0

 internal static partial class NativeMethods
    {
static NativeMethods()
        {
// First try the custom resolving mechanism. string fileName = PdfiumResolver.GetPdfiumFileName();
if (fileName != null && File.Exists(fileName) && LoadLibrary(fileName) != IntPtr.Zero)
return;

// Load the platform dependent Pdfium.dll if it exists. if (!TryLoadNativeLibrary(AppDomain.CurrentDomain.RelativeSearchPath))
                TryLoadNativeLibrary(Path.GetDirectoryName(typeof(NativeMethods).Assembly.Location));
        }

private static bool TryLoadNativeLibrary(string path)
        {
if (path == null)
return false;

            path= Path.Combine(path, IntPtr.Size == 4 ? "x86" : "x64");
            path= Path.Combine(path, "Pdfium.dll");

return File.Exists(path) && LoadLibrary(path) != IntPtr.Zero;
        }
https://gitee.com/Xhutu/PdfiumViewer 这里 使用了X86 X64位  Pdfium.dll。  PdfiumViewer只支持X
64

需要把X86 X64的DLL,以文件夹形式放置在bin目录下即可。

阳东网站制作公司哪家好,找创新互联!从网页设计、网站建设、微信开发、APP开发、响应式网站开发等网站项目制作,到程序开发,运营维护。创新互联从2013年成立到现在10年的时间,我们拥有了丰富的建站经验和运维经验,来保证我们的工作的顺利进行。专注于网站建设就选创新互联。

当前名称:PdfiumViewer只支持X64-创新互联
文章出自:http://cdkjz.cn/article/decjeh.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

业务热线:400-028-6601 / 大客户专线   成都:13518219792   座机:028-86922220