- Home /
Itext7 in unity
Hello, I've been trying to instal the itext 7 library (https://github.com/itext/itext7-dotnet) in my unity project. I've try to instal the NuGet packages in visual. I've try to import the .cs files from the Git Project. I've try to drag and drop the needed .dll files in my Assets folder. But none of those works. Did anyone managed to install this library ? The most common error i havec is regarding the .dll files : "Unloading broken assembly Assets/Common.Logging.dll, this assembly can cause crashes in the runtime". Thanks in advance for feedback. JJ
Hi, Thank you for the tutorial.
I have followed your steps, and your steps only. I did not copy paste the cs files from the github repository, i did not do anything else besides your steps. For some reason, the namespace cannot be found: using iText.Kernel.Pdf;
The build generated only one dll file for me.
Did i miss something?
Answer by noahternullo · Nov 22, 2020 at 05:22 PM
@JerOhm I just had this same problem. Here's what I did to resolve it:
Create a new project in Rider (or visual studio, in your case)
Use Nuget to add the iText7 package to that C# project.
Configure the project to build as a Class library (that's the default on Rider)
Build.
Move all the .dll files from your output directory into the Unity project's Assets/Plugins folder.
Hi, Thank you for the tutorial.
I have followed your steps, and your steps only. I did not copy paste the cs files from the github repository, i did not do anything else besides your steps. For some reason, the namespace cannot be found: using iText.Kernel.Pdf;
The build generated only one dll file for me.
Did i miss something?
Your answer
Follow this Question
Related Questions
Dll not found exception: unable to load dll 0 Answers
NuGetForUnity not working with .NET 4.x? 0 Answers
c# .dll and a target .NET framework to use in visual studio build 1 Answer
Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers
Managed Plugin with System.Device assembly gives error 1 Answer