Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-103018

QPdfDocument : AntiAliasing flags : turning AA in turns it off

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.3
    • PDF
    • None
    • Linux/X11
    • 1

    Description

      As you can easily see (or try out):

      the Qt Flags are "positive" the pdfium flags are "negativ".
      Therefore a negation is missing in the code

       

      if (renderFlags & QPdf::RenderTextAliased)
      flags |= FPDF_RENDER_NO_SMOOTHTEXT;
      if (renderFlags & QPdf::RenderImageAliased)
      flags |= FPDF_RENDER_NO_SMOOTHIMAGE;
      if (renderFlags & QPdf::RenderPathAliased)

      flags |= FPDF_RENDER_NO_SMOOTHPATH;

       

      Turning AntiAliasing on in Qt's RenderFlags actually turns them off in pdfium.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              srutledg Shawn Rutledge
              caduel74 Christoph Duelli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes