Microsoft Document to PDF: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 41: Line 41:
|}
|}


----
{|
| valign="top" |
===Docx4j Export===
<source lang="xml">
<dependency>
    <groupId>org.docx4j</groupId>
    <artifactId>docx4j-export-fo</artifactId>
    <version>8.2.0</version>
    <exclusions>
        <exclusion>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
        </exclusion>
    </exclusions>
</dependency>
<!--
-->
</source>
| valign="top" |
===Docx4j Properties===
===Docx4j Properties===
<source lang="properties">
<source lang="properties">
Line 61: Line 86:
docx4j.Log4j.Configurator.disabled=true
docx4j.Log4j.Configurator.disabled=true
</source>
</source>
|}


==Word to Jasper==
==Word to Jasper==

Revision as of 04:42, 20 January 2021

Docx For Java

Dependencies

<dependency>
   <groupId>org.docx4j</groupId>
   <artifactId>docx4j-JAXB-Internal</artifactId>
   <version>8.2.0</version>
</dependency>
<dependency>
   <groupId>org.docx4j</groupId>
   <artifactId>docx4j-JAXB-ReferenceImpl</artifactId>
   <version>8.2.0</version>
</dependency>
<dependency>
   <groupId>org.docx4j</groupId>
   <artifactId>docx4j-JAXB-MOXy</artifactId>
   <version>8.2.0</version>
</dependency>
<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-api</artifactId>
    <version>1.7.5</version>
</dependency>
<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-log4j12</artifactId>
    <version>1.7.5</version>
</dependency>
<!--<dependency>
    <groupId>ch.qos.logback</groupId>
    <artifactId>logback-classic</artifactId>
    <version>1.3.0-alpha4</version>
</dependency>-->

Docx4j Export

<dependency>
    <groupId>org.docx4j</groupId>
    <artifactId>docx4j-export-fo</artifactId>
    <version>8.2.0</version>
    <exclusions>
        <exclusion>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
        </exclusion>
    </exclusions>
</dependency>
<!--




-->

Docx4j Properties

docx4j.PageSize=A4
docx4j.PageMargins=NARROW
docx4j.PageOrientationLandscape=true

# For docProps/app.xml
docx4j.App.write=true
docx4j.Application=docx4j
docx4j.AppVersion=8.2.0

# For docProps/core.xml
docx4j.dc.write=true
docx4j.dc.creator.value=docx4j
docx4j.dc.lastModifiedBy.value=docx4j

# Misc prop
#docx4j.McPreprocessor=true
docx4j.Log4j.Configurator.disabled=true

Word to Jasper

Please open the project in Visual Studio Community Edition 2019 then find the following lines from the ReportConversionAddIn\ReportConversionAddIn.csproj. You may comment out or delete following lines and save the file then Visual Studio Community Edition 2019 prompt you to reload the project configuration. Please confirm the reload. After that it will be automatically recreate the ManifestCertificateThumbprint. Hope it will fix your signing issue.

<PropertyGroup>
    <SignManifests>true</SignManifests>
</PropertyGroup>
<PropertyGroup>
    <ManifestKeyFile>ReportConversionAddIn_TemporaryKey.pfx</ManifestKeyFile>
</PropertyGroup>
<PropertyGroup>
    <ManifestCertificateThumbprint>A1FE05DDA1DF10BA23B874A26E7BDF224282D192</ManifestCertificateThumbprint>
</PropertyGroup>

References