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:
this clipping generated pdf font list:
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
Post a Comment