FOP
  1. FOP
  2. FOP-2069

[PATCH] PostScript extension to place code just before %PageTrailer

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: trunk
    • Fix Version/s: None
    • Component/s: renderer/ps
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All
    • External issue ID:
      53295

      Description

      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.

      1. ps_setup_code_before_page_trailer.patch
        9 kB
        Luis Bernardo
      2. test.fo
        2 kB
        Luis Bernardo
      3. test.ps
        12 kB
        Luis Bernardo
      4. ps_setup_code_before_page_trailer.patch
        11 kB
        Luis Bernardo

        Activity

        Hide
        Luis Bernardo added a comment -

        Attachment ps_setup_code_before_page_trailer.patch has been added with description: new postscript extension

        Show
        Luis Bernardo added a comment - Attachment ps_setup_code_before_page_trailer.patch has been added with description: new postscript extension
        Hide
        Luis Bernardo added a comment -

        the attached sample FO shows how to use the new extension

        Show
        Luis Bernardo added a comment - the attached sample FO shows how to use the new extension
        Hide
        Luis Bernardo added a comment -

        Attachment test.fo has been added with description: sample test case

        Show
        Luis Bernardo added a comment - Attachment test.fo has been added with description: sample test case
        Hide
        Luis Bernardo added a comment -

        in the particular example, the command '<</Staple 0>> setpagedevice', is added before the %PageTrailer of the last page.

        Show
        Luis Bernardo added a comment - in the particular example, the command '<</Staple 0>> setpagedevice', is added before the %PageTrailer of the last page.
        Hide
        Luis Bernardo added a comment -

        Attachment test.ps has been added with description: output of test case

        Show
        Luis Bernardo added a comment - Attachment test.ps has been added with description: output of test case
        Hide
        Luis Bernardo added a comment -

        Attachment ps_setup_code_before_page_trailer.patch has been added with description: new postscript extension (replaces previous submission)

        Show
        Luis Bernardo added a comment - Attachment ps_setup_code_before_page_trailer.patch has been added with description: new postscript extension (replaces previous submission)
        Hide
        Glenn Adams added a comment -

        applied at http://svn.apache.org/viewvc?rev=1343072&view=rev

        thanks luis!

        please verify and close if satisfied

        Show
        Glenn Adams added a comment - applied at http://svn.apache.org/viewvc?rev=1343072&view=rev thanks luis! please verify and close if satisfied
        Hide
        Luis Bernardo added a comment -

        verified. wiki updated too.

        Show
        Luis Bernardo added a comment - verified. wiki updated too.

          People

          • Assignee:
            fop-dev
            Reporter:
            Luis Bernardo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development