@Test
  public void testOptionsWithURIResolver() throws Exception {
    Options options = Options.getFrom("DOCX");
    OptionsHelper.setURIResolver(
        options,
        new IURIResolver() {

          public String resolve(String uri) {
            return null;
          }
        });
    XHTMLOptions xhtmlOptions = XWPF2XHTMLConverter.getInstance().toXHTMLOptions(options);
    Assert.assertNotNull(xhtmlOptions);
    Assert.assertNotNull(xhtmlOptions.getURIResolver());
  }
 public PdfOptions toPdfOptions(Options options) {
   if (options == null) {
     return null;
   }
   Object value = options.getSubOptions(PdfOptions.class);
   if (value instanceof PdfOptions) {
     return (PdfOptions) value;
   }
   PdfOptions pdfOptions = PdfOptions.create();
   // Populate font encoding
   String fontEncoding = OptionsHelper.getFontEncoding(options);
   if (StringUtils.isNotEmpty(fontEncoding)) {
     pdfOptions.fontEncoding(fontEncoding);
   }
   return pdfOptions;
 }