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

problem running this library #7

Open
1knueller opened this issue Nov 25, 2021 · 2 comments
Open

problem running this library #7

1knueller opened this issue Nov 25, 2021 · 2 comments

Comments

@1knueller
Copy link

Hi!

Im happy you picked up that project.

I was about to merge the text comy feature myself and found your repo.

I have a problem though. You write you updated to use the newer binaries. If i try to load a document with them i get the following error:

Managed Debugging Assistant 'PInvokeStackImbalance' : 'A call to PInvoke function 'PdfiumViewer!PdfiumViewer.NativeMethods+Imports::FPDF_LoadCustomDocument' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.'

            var doc = PdfiumViewer.PdfDocument.Load(filepath);
            this.pdfViewer2.Document = doc;
@1knueller
Copy link
Author

1knueller commented Nov 25, 2021

ok it works with the 64bit pdfium dll on 64bit project
not sure hot to get x86 to work

@ab-tools
Copy link

ab-tools commented Mar 6, 2023

In case somebody else is searching, both the x64 and x86 binaries from this pdfium build seems to work fine for me:
https://github.com/bblanchon/pdfium-binaries/releases/tag/chromium%2F4194

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

No branches or pull requests

2 participants