Java PDF manipulation and rendering

I hope this problem will become a comprehensive guide to PDF manipulation and rendering in Java I have a fairly comprehensive implementation that combines multiple open source libraries, and I want to improve it

background

My requirements and current implementation:

>Check existing PDF documents under specific conditions (PDF version, password protection, font embedding, cross reference table, etc.) – not implemented. > Allows you to define acroform fields through page coordinates or some other mechanism. – Not implemented > provides the ability to represent single fields in PDF, check the field type and fill in the data – IText v 2.0 8 > render PDF to images at different resolutions / DPI – two implementations (pdfrender and icepdf) > render HTML / XHTML files to PDF – flying saucer xhtmlrenderer > perform all the above operations as a library in the java server environment (meaning thread safety)

I don't like what

I am not satisfied with the following:

IText license: the new version of iText is an agpl license and is not bootable for my project (and general commercial projects) The cost of commercial license is not important (the cost of cross site license documents is tens of thousands of dollars). If I want to pay the license fee of software, I want to do a complete market search for the best products IText 2 Version x works, but there are enough errors. > Pdf version consistency: when it comes to font embedding, cross reference tables, etc. in these libraries, there will be some strange consistency problems, resulting in reasonable sadness Rendering output quality: the quality of rendering from these files to PNG has some problems in embedded fonts, images and layers

What do I want

I want feedback from users and people who study PDF libraries Please include as much of the following information as possible for completeness and future generations

Is your answer / comment based on use or Research > name, library and license version (if commercial license, please include fee if possible) > what kind of library do you use? > What do you like / what is good > What do you dislike / what is bad > what is your overall impression?

Solution

We are http://bfo.com BFO PDF library can easily do this - loading PDF and determining its properties, creating, iterating and filling form fields, and rendering PDF to bitmap are all standard things Converting from HTML or XHTML is a bit tricky, but we have a supporting product BFO report generator, which will be implemented using XML syntax very similar to XHTML CSS

I'm not sure what you mean by "PDF version consistency" – if you have a specific problem, you may want to extend it, otherwise I won't hang it on the PDF of the actual version number – rare exceptions, PDF functions are almost backward compatible (updated functions are usually ignored by readers)

Rasterizing PDF into bitmap is a worm – the correct way is to write your own font and image format parser (a big job: a postscript parser is required for type 1 fonts), and drive the square beat as the PDF rendering model into the round hole. It is AWT model It also depends on the PDF creation software working properly So no matter what software you use, if the file doesn't render properly, then send it to the support team – we always have trouble with our collection

Our website has more information and trial download. If you want information about license fees, just let us have a line

Cheers... Mike (CTO @ BFO)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>