java - Preserving Embedded Fonts in iText -


i have java application splits pdf sections using itext, stitches selection of these again. original pdf has many embedded fonts varying in type (all non-system fonts). when stitch pdf's again, of embedded fonts missing.

for example, clipping original fonts list: enter image description here

this clipping generated pdf font list: enter image description here

i using pdfwriter , pdfreader copy pages new document, pdfcontent , addtemplate().

finally found answer! problem level of pdf set low:

writer.setpdfversion(pdfwriter.version_1_2); 

i changed to:

writer.setpdfversion(pdfwriter.version_1_7); 

and fonts embedded correctly.

i forgot piece of code in there - had borrowed project had done in past.

lesson learned ;)

i love know why case though.


Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -