Package org.docx4j.convert.in.xhtml

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

Related Classes of org.docx4j.convert.in.xhtml.XHTMLImporterImpl

Copyright © 2018 www.massapicom. 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.