Hi Vadimo This error means that the Widths in the embedded font file don’t match the widths in the FontDescriptor. You’ll need to update whichever is wrong, however PDFBox can’t edit fonts so you can only use it to update the FontDescriptor width, which may or may not be what you want. The Widths specifies the width of each glyph and can be found at:
Page -> Resources -> Font -> FontDescriptor -> Widths The manner in which fonts are embedded in PDF is very complex, and this kind of repair will require that you have a good understanding of the relevant concepts from the ISO 32000 PDF specification. PDFBox provides the low-level APIs which you need, but you need to understand PDF in order to use them. Thanks -- John > On 16 Nov 2014, at 08:02, Vadim Bauer <[email protected]> wrote: > > Hi, > > I have a PDFA where Adobe preflight says 'Width information for rendered > glyphs is inconsistent' > I would like to correct that with PDFBox as the PDFs in question has only > this one error. > > As I understand I need to get all the text characters(Strings?) in the PDF > and set/(modify or recalculate?). > > > Question is how can I achieve this with PDFBox, can someone give me hints > maybe in pseudo code. > Currently I am browsing the code but I am quite lost on where to dig. > > > Cheers, > Vadimo

