see http://wiki.apache.org/xmlgraphics-fop/ExtensionsForPostScript for full details of <ps:ps-comment-before/> and <ps:ps-comment-after/>. The requirement for the comment-before and comment-after is for post-processing the postscript output. Both these elements may only be declared as child nodes of fo:declarations and/or fo:simple-page-master. In a fo:declarations context, ps-comment-before is placed in the postscript output just before the %%EndComments DSC comment in the header and ps-comment-after is placed just after the %%Trailer DSC comment in the footer of the output. In a fo:simple-page-master context, ps-comment-before is placed in the postscript output just after the %%BeginPageSetup DSC comment and a ps-comment-after just after the %%PageTrailer DSC comment in each page of a simple page master referring page sequence. Patch (with dependency on http://issues.apache.org/bugzilla/show_bug.cgi?id=42144 being applied) to follow.
Created attachment 20625 [details] patch file Again, please note this patch depends upon http://issues.apache.org/bugzilla/show_bug.cgi?id=42144 being applied first. Adrian.
Created attachment 20635 [details] patch file This patch file superceeds the last one. It fixes a bug that I introduced on PSRenderer.java in the patch file I provided yesterday. Adrian.
Patch Applied with one minor modification. The Abstract class AbstractPSComment extended PSExtensionAttachment but didn't appear to be adding any value. PSCommentAfter and PSCommentBefore both extended it but the Abstract class had nothing more than the constructors. There is no code that works with the Abstract class either, so it made sense to change PSCommentAfter & PSCommentBefore to extend PSExtensionAttachment directly. I then tested the patch using my local PS Printer (and Text Editor) and it works great. Thanks Adrian!
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed