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

[PATCH] PCL Color printing

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1
    • None
    • renderer/pcl, renderer/svg
    • I'm currently testing in windows only, but should apply to all

    Description

      This patch adds the following:

      • Supports color printing
      • Replaces the run-length compression routine with one that will try run-length, tagged image file format, delta row and if need be unencoded, which ever is smallest.
      • Handles images set to the left of the printable area, it will clip the image by not sending down those bits.

      The code currently has these issues (and would love suggestions on how to do it):

      • Need a way to specify if the printer supports color. You will get garbage if you send color commands to an old black and white printer (although most newer black and white printers will emulate color with greyscale). It is currently controlled in the code with this line "final boolean printerSupportsColor=true;"
      • Color images are currently not scaled. This is because the application I'm writing only expects FOP files with SVG. And SVG is always rendered to a 300 dpi 24 bit color image before being sent to the PCL module. This works for me.
      • Should have a attribute for setting speed vs size of PCL output.

      Attachments

        1. tiger-before.pcl.pdf
          85 kB
          Luis Bernardo
        2. tiger-before.pcl
          185 kB
          Luis Bernardo
        3. tiger-after.pcl.pdf
          191 kB
          Luis Bernardo
        4. tiger-after.pcl
          405 kB
          Luis Bernardo
        5. FOP_1.1_colorPCL.patch
          28 kB
          James Burton
        6. ColorDuplexSVG.fop
          2 kB
          James Burton

        Activity

          People

            ssteiner Simon Steiner
            james.evy James Burton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: