[ 
https://issues.apache.org/jira/browse/DOXIA-555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16027603#comment-16027603
 ] 

Alex O'Ree commented on DOXIA-555:
----------------------------------

sure thing, i've actually got a functioning patch which i'll attach shortly but 
here's the quick summary
in: 
doxia\doxia-modules\doxia-module-fo\src\main\java\org\apache\maven\doxia\module\fo\FoAggregateSink.java
 - add/change the constructor to take a second parameter which is a reference 
to org.apache.maven.doxia.docrenderer.DocumentRendererContext
 - change the getFooter() code to check for the context for an override value, 
if present, return that value instead of the canned version

in: 
doxia-sitetools\doxia-doc-renderer\src\main\java\org\apache\maven\doxia\docrenderer\pdf\fo\FoPdfRenderer.java
 - change the call from   FoAggregateSink sink = new FoAggregateSink( writer ); 
to include the DocumentRendererContext

finally, some pom changes to override some of the versions. I had a lot of 
difficultly getting the dependency structure just right in order to test this 
but I did get it eventually

finally, in the maven pdf plugin, there's some code to gather some additional 
settings and add them to the DocumentRendererContext which enables the override.

Using this approach, no changes are needed for the document xsd. It's probably 
not the best solution but it seems to be the easier in the short term.

> Footer overrides for FO/PDF outputs
> -----------------------------------
>
>                 Key: DOXIA-555
>                 URL: https://issues.apache.org/jira/browse/DOXIA-555
>             Project: Maven Doxia
>          Issue Type: New Feature
>          Components: Module - FO
>            Reporter: Alex O'Ree
>
> Related https://issues.apache.org/jira/browse/MPDF-81
> I have a use case where I cannot have the copyright symbol on the bottom of 
> generated PDF documents. Currently, it looks like the footer is hard coded 
> and cannot be customized.
> http://svn.apache.org/viewvc/maven/doxia/doxia/tags/doxia-1.7/doxia-modules/doxia-module-fo/src/main/java/org/apache/maven/doxia/module/fo/FoAggregateSink.java?view=markup#l762
> ideally, this should be configurable either properties or better yet, the pdf 
> descriptor document (maven-pdf-plugin). This would require a change in the 
> schema used for the pdf descriptor 
> http://maven.apache.org/xsd/document-1.0.1.xsd 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to