title: Java PDF Viewer
body: <p>I am using java and RCP and I am trying to show pdf Document with Acrobat on my views. 
  I don't need to change them. 
  I have this error with this code. Any idea how to resolve this problem?. P.s.: it works good same times.</p>
  
  <pre><code>PDFFile pdfFile;
  pdfFile = PdfFileLoader.loadPdf(file, new NullProgressMonitor());
  PdfDocument pdfDocument = new OneDimensionalPdfDocument(pdfFile, new NullProgressMonitor());
  pdfViewer.setPdfDocument(pdfDocument);
  
  Error from PdfDocument pdfDocument = new OneDimensionalPdfDocument(pdfFile, new NullProgressMonitor()) : Unsupport CMap format: 6
  java.nio.BufferUnderflowException
  at java.nio.Buffer.nextGetIndex(Unknown Source)
  at java.nio.HeapByteBuffer.getShort(Unknown Source)
  at com.sun.pdfview.font.ttf.HmtxTable.setData(HmtxTable.java:79)
  at com.sun.pdfview.font.ttf.TrueTypeTable.createTable(TrueTypeTable.java:113)
  at com.sun.pdfview.font.ttf.TrueTypeFont.getTable(TrueTypeFont.java:106)
  at com.sun.pdfview.font.TTFFont.getOutline(TTFFont.java:129)
  at com.sun.pdfview.font.TTFFont.getOutline(TTFFont.java:89)
  at com.sun.pdfview.font.OutlineFont.getGlyph(OutlineFont.java:118)
  at com.sun.pdfview.font.PDFFont.getCachedGlyph(PDFFont.java:307)
  at com.sun.pdfview.font.PDFFontEncoding.getGlyphFromEncoding(PDFFontEncoding.java:132)
  at com.sun.pdfview.font.PDFFontEncoding.getGlyphs(PDFFontEncoding.java:98)
  at com.sun.pdfview.font.PDFFont.getGlyphs(PDFFont.java:273)
  at com.sun.pdfview.PDFTextFormat.doText(PDFTextFormat.java:283)
  at com.sun.pdfview.PDFParser.iterate(PDFParser.java:742)
  at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:88)
  at java.lang.Thread.run(Unknown Source)
  </code></pre>
  
  <p>Regards,
  Haythem</p>