-
Notifications
You must be signed in to change notification settings - Fork 2
Description
I keep receiving the following error and I can't determine what is going wrong.
info: EaPdfCmd.EmailToEaPdfProcessor[0]
Script Latin: 100%
fail: EaPdfCmd.EmailToEaPdfProcessor[0]
Error: (name='check-params') The value 'UNKNOWN VERSION' is not a valid value for fo-processor-version param; allowed values must start with 'FOP' or 'XEP'.
fail: EaPdfCmd.EmailToEaPdfProcessor[0]
Error at xsl:text on line 84 column 16 of eaxs_to_fo.xsl:
XTMM9000 Processing terminated by xsl:message at line 84 in eaxs_to_fo.xsl
at template check-params on line 78 column 36 of eaxs_to_fo.xsl:
invoked by xsl:call-template at file:/home/s/Downloads/EaPdfCmd_0.5.0-beta.2/XResources/eaxs_to_fo.xsl#95
In template rule with match="/" on line 93 of eaxs_to_fo.xsl
crit: EaPdfCmd.EmailToEaPdfProcessor[0]
Processing terminated by xsl:message at line 84 in eaxs_to_fo.xsl
trce: EaPdfCmd.EmailToEaPdfProcessor[0]
Running: java -Xmx1024m -cp "/home/s/Downloads/saxon/saxon-he-11.6.jar" net.sf.saxon.Transform -s:"/home/s/Downloads/test.eml.xml" -xsl:"/home/s/Downloads/EaPdfCmd_0.5.0-beta.2/XResources/eaxs_to_fo.xsl" -o:"/home/s/Downloads/test.eml.fo" "fo-processor-version"="UNKNOWN VERSION" "SerifFont"="serif" "SansSerifFont"="sans-serif" "MonospaceFont"="monospace" "ContinuedFrom"="" "ContinuedIn"="" "creator"="UIUCLibrary.EaPdf 0.5.0-beta.2" "enhancer"="iTextSharp.LGPLv2.Core 3.4.20" "complex-script"="false"
trce: EaPdfCmd.EmailToEaPdfProcessor[0]
Current Directory: /home/s/Downloads/EaPdfCmd_0.5.0-beta.2
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
Content root path: /home/s/Downloads/EaPdfCmd_0.5.0-beta.2
trce: EaPdfCmd.EmailToEaPdfProcessor[0]
OnStarted called.
info: Microsoft.Hosting.Lifetime[0]
Application is shutting down...
trce: EaPdfCmd.EmailToEaPdfProcessor[0]
OnStopping called.
dbug: Microsoft.Extensions.Hosting.Internal.Host[2]
Hosting started
dbug: Microsoft.Extensions.Hosting.Internal.Host[3]
Hosting stopping
trce: EaPdfCmd.EmailToEaPdfProcessor[0]
StopAsync called
trce: EaPdfCmd.EmailToEaPdfProcessor[0]
OnStopped called.
dbug: Microsoft.Extensions.Hosting.Internal.Host[4]
Hosting stopped
Error: EAXS transformation to FO failed, status: 2; review log details.
Here is my appsettings.json file:
{
"Logging": {
"LogLevel": {
"Default": "Information"
}
},
"XsltProcessors": {
"Default": "Saxon", // "Saxon" is currently the only supported XSLT processor
"Saxon": {
"ClassPath": "/home/s/Downloads/saxon/saxon-he-11.6.jar"
}
},
"FoProcessors": {
"Default": "FOP", // "Fop" or "Xep" If you are only using one of these, the unused section can be removed, but the "Default" must still be set to the remaining processor
"Fop": {
"ClassPath": "/home/s/Downloads/fop-2.9-src/fop-2.9/fop/target/fop-2.9.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/target/fop-core-2.9.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/target/fop-events-2.9.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/target/fop-util-2.9.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/lib/batik-anim-1.17.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/lib/batik-awt-util-1.17.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/lib/batik-bridge-1.17.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/lib/batik-codec-1.17.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/lib/batik-constants-1.17.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/lib/batik-css-1.17.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/lib/batik-dom-1.17.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/lib/batik-ext-1.17.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/lib/batik-extension-1.17.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/lib/batik-gvt-1.17.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/lib/batik-i18n-1.17.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/lib/batik-parser-1.17.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/lib/batik-script-1.17.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/lib/batik-shared-resources-1.17.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/lib/batik-svg-dom-1.17.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/lib/batik-svggen-1.17.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/lib/batik-transcoder-1.17.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/lib/batik-util-1.17.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/lib/batik-xml-1.17.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/lib/commons-io-2.11.0.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/lib/commons-logging-1.0.4.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/lib/fontbox-2.0.27.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/lib/xml-apis-1.4.01.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/lib/xml-apis-ext-1.3.04.jar; /home/s/Downloads/fop-2.9-src/fop-2.9/fop/lib/xmlgraphics-commons-2.9.jar",
"ConfigFilePath": "XResources/fop.xconf"
}
},
"EmailToEaxsProcessorSettings": {
"HashAlgorithmName": "MD5",
"SaveAttachmentsAndBinaryContentExternally": true,
"WrapExternalContentInXml": true, //this must be true if the FO processor is XEP (really only if there are PDF attachments)
"PreserveBinaryAttachmentTransferEncodingIfPossible": false,
"PreserveTextAttachmentTransferEncoding": false,
"IncludeSubFolders": false,
"ExternalContentFolder": "ExtBodyContent",
"AllowMultipleSourceFilesPerOutputFile": false,
"MaximumXmlFileSize": 0, //no limit
"SaveTextAsXhtml": true,
"LogToXmlThreshold": "Information",
"DefaultFileExtension": ".mbox",
"SkipUntilMessageId": null,
"SkipAfterMessageId": null,
"ExtraHtmlCharacterEntities": {
"QUOT": 134
},
"ForceParse": false
},
"EaxsToEaPdfProcessorSettings": {
"XsltFoFilePath": "XResources/eaxs_to_fo.xsl",
"XsltDpartFilePath": "XResources/eaxs_to_dpart.xsl",
"XsltRootXmpFilePath": "XResources/eaxs_to_root_xmp.xsl",
"SaveFoFiles": false,
/*
Mapping of unicode language scripts to font families. This is used to select the appropriate font family for a given script. The font family names must exist in the FO processor's font configuration.
The outer element name is an ISO 15924 4-letter codes for the script. A special entry with key 'default' should be in the dictionary with all three base font families specified.
This will be used as the default if a script entry is not found in the list. Usually, this will be fonts with Latin or Western character sets, but could be fonts for a specific language.
If a 'default' entry is not present, an entry for 'latn' (Latin) will be used as the default. If neither 'default' nor 'latn' is found, the first alphabetical entry in the dictionary will be used
as the default which may produce unintended results. Regardless of original order, the mappings are sorted alphabetically when loaded from the config file.
The inner element name is the base font family, <Serif>, <SansSerif>, or <Monospace>; the first element is the default if no base font family is specified
The value is a comma-separated list of font family names; these names must exist in the FO processor's font configuration
*/
"ScriptFontMapping": {
"Default": { //This will be the default of no other entry matches the script
"Serif": "serif",
"SansSerif": "sans-serif",
"Monospace": "monospace"
},
"Hebr": { //Hebrew
"Serif": "serif",
"SansSerif": "sans-serif",
"Monospace": "monospace"
},
"Arab": { //Arabic
"Serif": "Traditional Arabic,serif",
"SansSerif": "Simplified Arabic,sans-serif",
"Monospace": "Simplified Arabic Fixed,monospace"
},
"Hira": { //Hiragana (Japanese)
"Serif": "Kurinto Text JP",
"SansSerif": "Kurinto Sans JP",
"Monospace": "Kurinto Mono JP"
},
"Kana": { // Katakana (Japanese)
"Serif": "Kurinto Text JP",
"SansSerif": "Kurinto Sans JP",
"Monospace": "Kurinto Mono JP"
},
"Hrkt": { //Hiragana or Katakana (Japanese)
"Serif": "Kurinto Text JP",
"SansSerif": "Kurinto Sans JP",
"Monospace": "Kurinto Mono JP"
},
"Hang": { //Hangul (Korean)
"Serif": "Kurinto Text KR",
"SansSerif": "Kurinto Sans KR",
"Monospace": "Kurinto Mono KR"
},
"Hani": { //Han (Chinese: Simplified - SC, Traditional - TC, Hong Kong - HK, and Rare - CJK)
"Serif": "Kurinto Text SC,Kurinto Text TC,Kurinto Text HK,Kurinto Text CJK",
"SansSerif": "Kurinto Sans SC,Kurinto Sans TC,Kurinto Sans HK,Kurinto Sans CJK",
"Monospace": "Kurinto Mono SC,Kurinto Mono TC,Kurinto Mono HK,Kurinto Mono CJK"
}
}
}
}
I have FOP 2.9 installed (via Maven), can confirm that the ClassPaths are correct. Saxon is also installed and working with the 0.26 alpha version of this program.