Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-678

Support missing Text Rendering Modes when rendering a PDF

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • Rendering
    • None

    Description

      Of the 7 different Text Rendering Modes only mode 0 (Fill Text) is correctly implemented. Mode 1 (Stroke Text) falls back to Mode 0 and the others are not implemented. I'm looking to implement the missing modes (at least some of them).

      Before doing so I'm proposing a structural change to when rendering really occurs. Currently it's done within the PDxxxFont classes. I'd rather implement the (AWT) text output in PageDrawer (or helper classes within the same package) and use the font classes to return an AWT font by adding a getAwtFont method. Doing so we get a better separation between the PDF related stuff (PDxxx) and applications like PageDrawer. The current rendering specific code within the PDxxxFont classes can be retained for compatibility and marked deprecated at a later stage.

      WDYT?

      Attachments

        1. Java Printing.pdf
          87 kB
          Maruan Sahyoun
        2. TextRenderingModes.java.patch
          8 kB
          Petr Slaby
        3. example_026.pdf
          30 kB
          Tilman Hausherr
        4. bugzilla867751.pdf-5-new.png
          30 kB
          Tilman Hausherr
        5. bugzilla867751.pdf-5-old.png
          29 kB
          Tilman Hausherr

        Issue Links

          Activity

            People

              jahewson John Hewson
              msahyoun Maruan Sahyoun
              Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: