Upgrade from iText 5 to iText 7 pdftohtml, keep all fonts same

646 Views Asked by At

I need to keep all fonts the same when upgrading from pdfHTML 1.01 (default Helvetica in paragraph etc) to pdfHTML 2. How can this be accomplished the easiest way, using fontProvider?

I need all formatting to be the same in newest pdftohtml (iText 7) as it was in the old (iText 5). I am only familiar with default font changes

        FontProvider fp = new FontProvider();
        fp.addStandardPdfFonts();
        fp.addDirectory(resources);
        props.setFontProvider(fp);

This results in Helvetica Bold being used in some places in iText5, while in iText 7 it is not iText7 fonts used iText5 fonts used

0

There are 0 best solutions below