Can I modify the font of existing PDF. I've some Type 3 (Custom) fonts with out any font descriptor. I would like to replace those to some meaningful Font. How can I do this using Itext or PDFBox ?
A Type3 font is also known as a user defined font. Characters such as
c,... are mapped to glyphs that are defined by a person. For instance
a corresponds with the Apple logo,
b corresponds with a glyph shaped as a banana,
c looks like a coconut.
c,... See also my answer to the question Why can't I extract text added using a Type3 font correctly?
Sometimes, people will match characters and glyphs, the way I did when I created a Type3 font for the iText logo: read Creating the iText logo witha Type3 font. However you shouldn't count on that. Any character can be mapped to any glyph.
Now that you know this, you should understand that you're trying to achieve something that is impossible. Suppose that you have a PDF with a Type3 font where the
a character corresponds with an apple, the
b character with a banana and the
c character with a coconut, it won't be possible to automatically replace such a user-defined font with a custom encoding with another "normal" font that doesn't know how to draw apples, bananas and coconuts, and that uses a completely different encoding.