Microsoft Document to PDF: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==Word2Jasper== Please open the project in '''Visual Studio Community Edition 2019''' then find the following lines from the <code>ReportConversionAddIn\ReportConversionAddIn....") |
|||
(26 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== | ==Docx For Java== | ||
===Dependencies=== | |||
{| | |||
| valign="top" | | |||
<source lang="xml"> | |||
<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> | |||
</source> | |||
| valign="top" | | |||
<source lang="xml"> | |||
<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>--> | |||
</source> | |||
|} | |||
---- | |||
{| | |||
| valign="top" | | |||
===Export Dependency=== | |||
<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" | | |||
===Export Properties=== | |||
<source lang="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 | |||
</source> | |||
|} | |||
===FOUserAgent For MacOS=== | |||
'''org.apache.fop.apps.FOUserAgent [METHOD: processEvent , LINE: 94]''' | |||
Font "Calibri,normal,400" not found. Substituting with "any,normal,400". | |||
Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400". | |||
Font "ZapfDingbats,normal,700" not found. Substituting with "ZapfDingbats,normal,400". | |||
Font "Calibri,normal,700" not found. Substituting with "any,normal,700". | |||
Font "Bodoni MT Condensed,normal,700" not found. Substituting with "Bodoni MT Condensed,normal,400". | |||
Font "Bodoni MT Black,normal,700" not found. Substituting with "Bodoni MT Black,normal,400". | |||
Font "Calibri,normal,700" not found. Substituting with "any,normal,700". | |||
Glyph "ā" (0x101, amacron) not available in font "Times-Roman". | |||
Font "Wingdings,normal,700" not found. Substituting with "Wingdings,normal,400". | |||
===FOUserAgent For Ubuntu=== | |||
'''org.apache.fop.apps.FOUserAgent [METHOD: processEvent , LINE: 94]''' | |||
Font "Calibri,normal,400" not found. Substituting with "any,normal,400". | |||
Font "DejaVu Sans Mono,normal,400" not found. Substituting with "any,normal,400". | |||
Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400". | |||
Font "ZapfDingbats,normal,700" not found. Substituting with "ZapfDingbats,normal,400". | |||
Font "DejaVu Sans Mono,normal,700" not found. Substituting with "any,normal,700". | |||
Font "Calibri,normal,700" not found. Substituting with "any,normal,700". | |||
Glyph "ā" (0x101, amacron) not available in font "Times-Roman". | |||
Glyph "" (0xf0d8) not available in font "Times-Bold". | |||
Glyph "" (0xf0a7) not available in font "Times-Bold". | |||
Glyph "" (0xf0a7) not available in font "Times-Roman". | |||
==Word to Jasper== | |||
Please open the project in '''Visual Studio Community Edition 2019''' then find the following lines from the <code>ReportConversionAddIn\ReportConversionAddIn.csproj</code>. 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. | Please open the project in '''Visual Studio Community Edition 2019''' then find the following lines from the <code>ReportConversionAddIn\ReportConversionAddIn.csproj</code>. 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. | ||
Line 15: | Line 129: | ||
==References== | ==References== | ||
* [https://www.plutext.com/ Handle Office (docx | {| | ||
* [https:// | | valign="top" | | ||
* [https://www.smartjava.org/content/create-complex-word-docx-documents-programatically-docx4j/ Docx4J create complex MS Word Document Programmatically] | |||
* [https://www.plutext.com/ Handle Office (<code>docx,xlsx,pptx</code>) documents from Java] | |||
* [https://poi.apache.org/components/document/ Apache POI Java API to Handle Microsoft Word Files] | |||
* [https://rieckpil.de/howto-generate-documents-from-word-templates-with-docx4j-on-wildfly-14/ Export documents from a Word template with Docx4J] | |||
* [https://github.com/wasseydev/word-report-conversion/issues/1 Guideline required for Word2Jasper] | |||
* [https://github.com/wasseydev/word-report-conversion Word to Jasper Report] | * [https://github.com/wasseydev/word-report-conversion Word to Jasper Report] | ||
* [https://www.docx4java.org/trac/docx4j | * [https://www.docx4java.org/downloads.html Docx4J Downloads] | ||
* [https://www.docx4java.org/forums/docx-java-f6/docx4j-properties-t1046.html Docx4J Properties] | |||
* [https://github.com/plutext/docx4j What is Docx4J?] | |||
* [https://www.docx4java.org/trac/docx4j Docx4J] | |||
| valign="top" | | |||
* [https://github.com/plutext/docx4j/issues/45 PDF conversion doesn't include text formatting] | |||
* [https://stackoverflow.com/questions/55574468/ Apache FOP Font not loaded or found] | |||
* [https://stackoverflow.com/questions/46036133/ Docx4J » Add multiple rows to a table] | |||
* [https://stackoverflow.com/questions/52313295/ Docx4J » No mapping for font] | |||
* [https://github.com/jodconverter/jodconverter Docx4J » JOD Converter] | |||
* [[Apache POI]] | |||
* [[Java]] | |||
|} |
Latest revision as of 22:44, 30 October 2023
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>-->
|
Export Dependency<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>
<!--
-->
|
Export Propertiesdocx4j.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
|
FOUserAgent For MacOS
org.apache.fop.apps.FOUserAgent [METHOD: processEvent , LINE: 94] Font "Calibri,normal,400" not found. Substituting with "any,normal,400". Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400". Font "ZapfDingbats,normal,700" not found. Substituting with "ZapfDingbats,normal,400". Font "Calibri,normal,700" not found. Substituting with "any,normal,700". Font "Bodoni MT Condensed,normal,700" not found. Substituting with "Bodoni MT Condensed,normal,400". Font "Bodoni MT Black,normal,700" not found. Substituting with "Bodoni MT Black,normal,400". Font "Calibri,normal,700" not found. Substituting with "any,normal,700". Glyph "ā" (0x101, amacron) not available in font "Times-Roman". Font "Wingdings,normal,700" not found. Substituting with "Wingdings,normal,400".
FOUserAgent For Ubuntu
org.apache.fop.apps.FOUserAgent [METHOD: processEvent , LINE: 94] Font "Calibri,normal,400" not found. Substituting with "any,normal,400". Font "DejaVu Sans Mono,normal,400" not found. Substituting with "any,normal,400". Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400". Font "ZapfDingbats,normal,700" not found. Substituting with "ZapfDingbats,normal,400". Font "DejaVu Sans Mono,normal,700" not found. Substituting with "any,normal,700". Font "Calibri,normal,700" not found. Substituting with "any,normal,700". Glyph "ā" (0x101, amacron) not available in font "Times-Roman". Glyph "" (0xf0d8) not available in font "Times-Bold". Glyph "" (0xf0a7) not available in font "Times-Bold". Glyph "" (0xf0a7) not available in font "Times-Roman".
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>