Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache PdfBox library in .Net

I want to use Apache's PDFBox Library in C#, i checked on NuGet but sadly, there's no PDFBox 2.0 in there.

I searched the internet for ways to use the Java Library on .Net, found some old articles (2011-2014) saying that i should use IKVM, and found some newer articles saying that IKVM is no longer updated and that it doesn't work no more.

Is there any working way to make the PDFBox 2.0 library work with C#?

I apologize if my questions sounds stupid, but 2 hours ago i didn't knew that we could convert Java libraries to .NET lol.

like image 757
Arès Avatar asked Aug 23 '19 14:08

Arès


People also ask

Is Apache PDFBox free?

The Apache PDFBox library is a free software Java tool for working with PDF documents. This project allows creation of new PDF documents, manipulation of existing documents and the ability to extract content from documents.

Which is better iText or PDFBox?

One major difference is that PDFBox always processes text glyph by glyph while iText normally processes it chunk (i.e. single string parameter of text drawing operation) by chunk; that reduces the required resources in iText quite a lot.

What is PDFBox used for?

Apache PDFBox is an open source Java library that can be used to create, render, print, split, merge, alter, verify and extract text and meta-data of PDF files.


1 Answers

Depending on what you need to do there are some other alternatives

https://github.com/UglyToad/PdfPig is a Port of PdfBox to .NET, but it's an early version.

PdfSharp is another alternative that I have used a bit

IText is another alternative which is free to use if you are using it for yourself

like image 190
John Avatar answered Oct 03 '22 06:10

John