iTextPDF to OpenPDF Integration

karthi keyan :

I've been trying to migrate from iText v5.5.11(License version) library to OpenPDF v1.2.8(Open Source) library.I think that both are having similar functionalities. But,the renderImage function from iText library is missing in OpenPDF library and I'm in need of an alternative function in OpenPDF library.

Please Help.

Thanks in Advance,

mkl :

OpenPDF is a fork of iText release 2.1.7 (or the internal tag 4.2.0 which in spite of the large gap is merely 2.1.7 plus a handful of fixes). In particular it does not contain all the new features and fixes of the iText 5.x releases. On the other hand OpenPDF contains a few own changes.

Thus, you cannot simply take OpenPDF as a replacement for itext 5.5.x and expect everything to run out of the box.


According to your question and a comment here, you foremost are looking for a pendant of the iText renderImage function. I assume you mean the RenderListener method of that name.

In iText that method has been introduced in version 5.0.1, i.e. after the fork. Actually the whole parsing framework has been overhauled in the early 5.0.x versions. Prior versions were focused on only text extraction, and even that limited code was in a proof-of-concept state only.

As far as I can see this has not changed much in OpenPDF between the fork point and the current state.

To get a pendant of the iText renderImage function, therefore, you'll have to do quite a bit of implementation work.


As an aside, you call iText v5.5.11 "License version" and OpenPDF v1.2.8 "Open Source". This is weird. Both are open source. And both are subject to a license. Merely the OpenPDF license appears to grant more freedom of use than the iText license.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=147976&siteId=1