title: Problem about font encoding in PDF/A generation
body: <p>So here is my problem : 
  I'm currently working on an java application that will archive document in a PDF/A-1. I'm using PdfBox for pdf generation and when I can't generate a valid PDF/A-1 pdf, because of the font. The font is embedded inside the pdf file but this website : <a href="https://www.pdf-online.com/osa/validate.aspx" rel="nofollow noreferrer">https://www.pdf-online.com/osa/validate.aspx</a> tell me that this is not a valid PDF/A because of :</p>
  
  <blockquote>
    <p>The key Encoding has a value Identity-H which is prohibited.</p>
  </blockquote>
  
  <p>I look on internet on what is this Identity-H encoding and it seem that it's the way that font are encoded, like the ansi encoding.</p>
  
  <p>I've already tried to get different font like Helvetica or arial unicode Ms but nothing work, there is alway this Identity-H encoding.I'm a bit lost with all this mess in encoding so if someone can explain me it'll be great. Also here is the code I write to embedded a font in the pdf :</p>
  
  <pre><code> // load the font as this needs to be embedded
  PDFont font = PDType0Font.load(doc, getClass().getClassLoader().getResourceAsStream(fontfile), true);
  
  if (!font.isEmbedded())
          {
              throw new IllegalStateException("PDF/A compliance requires that all fonts used for"
                      + " text rendering in rendering modes other than rendering mode 3 are embedded.");
          }
  </code></pre>
  
  <p>Thanks for your help :)</p>