Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET Framework下FPDF_LoadCustomDocument报错 #19

Open
zhyueyueniao opened this issue Feb 22, 2024 · 0 comments
Open

.NET Framework下FPDF_LoadCustomDocument报错 #19

zhyueyueniao opened this issue Feb 22, 2024 · 0 comments

Comments

@zhyueyueniao
Copy link

异常:托管调试助手 "PInvokeStackImbalance":“对 PInvoke 函数“PdfiumPrinter!PdfiumPrinter.NativeMethods+Imports::FPDF_LoadCustomDocument”的调用导致堆栈不对称。原因可能是托管的 PInvoke 签名与非托管的目标签名不匹配。请检查 PInvoke 签名的调用约定和参数与非托管的目标签名是否匹配。”

使用的是bblanchon.PDFiumV8.Win32 123.0.6309
建议[DllImport("pdfium")]=>[DllImport("pdfium", CallingConvention = CallingConvention.Cdecl)]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant