Comments (8)
I was able to fix this by manually copying the 32-bit version of pdfium.dll into c:\windows\syswow64. But it doesn't seem like this should be necessary. I also created a basic console application, added the nuget package as before and ran into the same problem. But I was able to resolve it there just by adding the pdfium.dll to the root of the application. Doing the same for ASP.net web apps doesn't seem to work even though the dll makes it's way into the bin folder as expected.
I can keep using my syswow64 workaround but I'd rather not as I'd need to remember to manually update that file as you adopt new versions of the upstream pdfium into your project.
Any input would be appreciated! Thanks!
from docnet.
Hey, which framework are you targeting?
from docnet.
4.6.1
And thanks for the fine work on this project, it seems to do a great job rendering PDFs. I'm working with large architectural documents that have a lot of layers and markup. Most libraries I've looked into can't handle them, but so far so good here.
EDIT: sorry I initially put the wrong framework version, was looking at the wrong project.
from docnet.
yeah, docnet does not directly support NetFramework, only .net core out of the box so asp.net.core would work. this is because when we pack the nuget we use runtimes folder to copy native binaries which uses System.Runtime.Loader I believe which does not come standard with old .net framework versions. https://stackoverflow.com/questions/52397501/nuget-references-to-assemblies-in-runtimes-folder-not-added . In short .NET Framework does not know how to load the dlls automatically so you might want to do that manually. .NET Framework is an obsolete target so I am reluctant to add a support for it.
from docnet.
I've added an alpha support for never versions of net framework that you can try out with the alpha release
from docnet.
Hey thanks! I'll update my .Net version and try it out.
from docnet.
I finally had a chance to try this out, but I'm still having issues. I've updated my project to the latest .Net 4.8. Should that work with your updates? I see in the release notes you mention 4.7.
from docnet.
FYI https://github.com/bblanchon/pdfium-binaries has recently started including pre-built binaries targeting linux-musl-x64. These work fine via p/invoke from .net code from the dotnet alpine docker containers. I don't know if these are compatible with docnet library but could be something to look into if someone really wanted docnet on alpine.
from docnet.
Related Issues (20)
- Split pages of a document into individual PDF files HOT 4
- Ability to rotate a page in a document
- left coordinate can't be more than right coordinate HOT 2
- Page Dimensions HOT 4
- Page Dimensions HOT 1
- pdfium.dll locked by IIS/IIS Express HOT 1
- Performance comparison to other pdfium based libs HOT 3
- The type or namespace name 'Docnet' could not be found in net45 HOT 1
- Support rendering of forms input HOT 2
- Docnet Cannot open valid issues with certain characters (ſ) HOT 1
- Are there any examples that uses SkiaSharp to save and manipulate the PDF image? HOT 3
- Apple M1 pdfium library support HOT 12
- System.DllNotFoundException: Unable to load shared library 'pdfium'
- docReader.GetPageReader starts with 0 in windows in linux it is 1
- Does support convert doc to pdf? HOT 1
- feature: Reading PDF comments HOT 3
- feature: Reading bookmarks HOT 1
- Better memory allocations when creating images from the pdf HOT 3
- Generate PDF
- Problem with obtaining image size HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docnet.