Bug 53295 - [PATCH] PostScript extension to place code just before %PageTrailer
Summary: [PATCH] PostScript extension to place code just before %PageTrailer
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: ps (show other bugs)
Version: all
Hardware: All All
: P2 enhancement
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-25 12:59 UTC by Luis Bernardo
Modified: 2012-05-28 08:47 UTC (History)
0 users



Attachments
new postscript extension (9.44 KB, patch)
2012-05-25 12:59 UTC, Luis Bernardo
Details | Diff
sample test case (1.53 KB, text/x-xslfo)
2012-05-25 13:00 UTC, Luis Bernardo
Details
output of test case (12.11 KB, application/postscript)
2012-05-25 13:02 UTC, Luis Bernardo
Details
new postscript extension (replaces previous submission) (10.68 KB, patch)
2012-05-25 14:20 UTC, Luis Bernardo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Luis Bernardo 2012-05-25 12:59:33 UTC
Created attachment 28834 [details]
new postscript extension

This patch adds a new FOP PostScript extension that allows setting up code just before the %PageTrailer comment. The use case behind this enhancement was the need to include a stapling command in the document that is sent to the printer, but the extension can be used in any other situation that requires a command just before the %PageTrailer.
Comment 1 Luis Bernardo 2012-05-25 13:00:30 UTC
Created attachment 28835 [details]
sample test case

the attached sample FO shows how to use the new extension
Comment 2 Luis Bernardo 2012-05-25 13:02:45 UTC
Created attachment 28836 [details]
output of test case

in the particular example, the command '<</Staple 0>> setpagedevice', is added before the %PageTrailer of the last page.
Comment 3 Luis Bernardo 2012-05-25 14:20:02 UTC
Created attachment 28838 [details]
new postscript extension (replaces previous submission)
Comment 4 Glenn Adams 2012-05-27 17:41:14 UTC
applied at http://svn.apache.org/viewvc?rev=1343072&view=rev

thanks luis!

please verify and close if satisfied
Comment 5 Luis Bernardo 2012-05-28 08:47:34 UTC
verified. wiki updated too.