Examples of XHTMLImporterImpl


Examples of org.docx4j.convert.in.xhtml.XHTMLImporterImpl

      NumberingDefinitionsPart ndp = new NumberingDefinitionsPart();
      wordMLPackage.getMainDocumentPart().addTargetPart(ndp);
      ndp.unmarshalDefaultNumbering();

      XHTMLImporterImpl xHTMLImporter = new XHTMLImporterImpl(wordMLPackage);
      xHTMLImporter.setHyperlinkStyle("Hyperlink");

      InputStream stream = new ByteArrayInputStream(xhtml.getBytes());
      wordMLPackage.getMainDocumentPart().getContent().addAll(xHTMLImporter.convert(stream, null));

      wordMLPackage.save(new File(fileNamePath));

      // Construye la URL de acceso al informe PDF generado
      URL url = new URL(workspace.getUrl());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.