Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-1514

[PATCH] FOP API does not allow using preconfigured PrinterJob object

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.5
    • None
    • renderer/awt
    • Operating System: Windows XP
      Platform: PC
    • 44678

    Description

      Currently it is not possible to use a custom configured java.awt.print.PrinterJob when printing via FOP. This makes it somewhat awkward to use for printing via its API. See the implementation of org.apache.fop.render.print.PrintRenderer, specifically how instance variable printerJob is initialized in method initializePrinterJob().

      There should be some way to parameterize printing w/ custom PrinterJob object. The most natural place for this (from the point of view of the caller) would be a method in org.apache.fop.apps.Fop, since the basic interaction w/ FOP happens via an instance of that class.

      Attachments

        1. fop_printerjob.patch
          3 kB
          Antti Karanta

        Activity

          People

            fop-dev@xmlgraphics.apache.org fop-dev
            antti.karanta@napa.fi Antti Karanta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: