You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Jos Snellings (JIRA)" <ji...@apache.org> on 2012/05/08 16:21:56 UTC
[jira] [Created] (COCOON3-99) Provide FopSerializer with an
embedded user configuration present in the cocoon block
Jos Snellings created COCOON3-99:
------------------------------------
Summary: Provide FopSerializer with an embedded user configuration present in the cocoon block
Key: COCOON3-99
URL: https://issues.apache.org/jira/browse/COCOON3-99
Project: Cocoon 3
Issue Type: Improvement
Components: cocoon-optional
Affects Versions: 3.0.0-beta-1
Reporter: Jos Snellings
Priority: Minor
Fix For: 3.0.0-beta-1
The current FopSerializer creates an instance of FopFactory. Only the defaults are used. This is a problem if you want to generate PDFs
from Unicode data. The Cyrillic and Greek characters have no glyphs in these fonts, causing those strings to be displayed as "#" sequences.
This patch adds an override for the method "setConfiguration" to add a user configuration location via a sitemap parameter.
In sitemap.xmap of the block, add the parameter "userConfigurationPath" indicating the location of the user configuration file.
Example:
<map:match pattern="editor/publish/thesaurus.pdf">
<map:generate type="publish"/>
<map:transform src="presentation/xslt/thesaurusfo.xslt"/>
<map:serialize type="flo2pdf">
<map:parameter name="userConfigurationPath" value="fopconf/fop.xconf"/>
</map:serialize>
</map:match>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (COCOON3-99) Provide FopSerializer with an
embedded user configuration present in the cocoon block
Posted by "Jos Snellings (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COCOON3-99?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jos Snellings updated COCOON3-99:
---------------------------------
Attachment: patch-fopserializer.txt
A patch for adding the user configuration to
the fop serializer via a sitemap construct.
> Provide FopSerializer with an embedded user configuration present in the cocoon block
> -------------------------------------------------------------------------------------
>
> Key: COCOON3-99
> URL: https://issues.apache.org/jira/browse/COCOON3-99
> Project: Cocoon 3
> Issue Type: Improvement
> Components: cocoon-optional
> Affects Versions: 3.0.0-beta-1
> Reporter: Jos Snellings
> Priority: Minor
> Fix For: 3.0.0-beta-1
>
> Attachments: patch-fopserializer.txt
>
>
> The current FopSerializer creates an instance of FopFactory. Only the defaults are used. This is a problem if you want to generate PDFs
> from Unicode data. The Cyrillic and Greek characters have no glyphs in these fonts, causing those strings to be displayed as "#" sequences.
> This patch adds an override for the method "setConfiguration" to add a user configuration location via a sitemap parameter.
> In sitemap.xmap of the block, add the parameter "userConfigurationPath" indicating the location of the user configuration file.
> Example:
> <map:match pattern="editor/publish/thesaurus.pdf">
> <map:generate type="publish"/>
> <map:transform src="presentation/xslt/thesaurusfo.xslt"/>
> <map:serialize type="flo2pdf">
> <map:parameter name="userConfigurationPath" value="fopconf/fop.xconf"/>
> </map:serialize>
> </map:match>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira