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

Any plans for XFA/V8? #156

Closed
vaclav-dvorak opened this issue Apr 8, 2024 · 5 comments · May be fixed by #159
Closed

Any plans for XFA/V8? #156

vaclav-dvorak opened this issue Apr 8, 2024 · 5 comments · May be fixed by #159

Comments

@vaclav-dvorak
Copy link

Hello

Just want to ask if there is any plan to include XFA/V8 functionality as original issue mentioned in readme was fixed more then years ago:
bblanchon/pdfium-binaries#62

Regards

@jerbob92
Copy link
Contributor

jerbob92 commented Apr 8, 2024

Hey! Will look into it! It will only work for the non-webassembly usage it seems, as that build doesn't support XFA/V8 yet.

@jerbob92
Copy link
Contributor

Progress is in this branch: https://github.com/klippa-app/go-pdfium/tree/feature/xfa-v8
I'm having quite a hard time testing this, since pdfium itself seems to contain almost no unit tests for XFA and it's also quite hard to find testing XFA PDF's.

@jerbob92
Copy link
Contributor

jerbob92 commented Apr 17, 2024

I have finalized the XFA implementation, you can try it out with #159, using a pdfium binary that includes XFA/V8, using the build flag pdfium_xfa. It would be greatly appreciated if you could test it out because it's largely untested through unit tests since pdfium itself also doesn't contain tests for these. I will put in some more effort into finding a XFA test PDF to test out all the different features.

@jerbob92
Copy link
Contributor

Currently I'm having quite some issues to get the XFA support stable, it causes the tests to crash quite a bit. However I also got the following from a pdfium maintainer:

The XFA support in PDFium today is essentially unfinished. Common XFA forms in the wild do not work. As far as I'm aware, no resources are being put into finishing XFA support.

So I'm not sure how useful the XFA/v8 support would be.

@vaclav-dvorak
Copy link
Author

Thank you for looking into this. There was a chance that this could fix an issue of ours but it seems that it wasnt the right path :(

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

Successfully merging a pull request may close this issue.

2 participants