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

QPdfDocument : AntiAliasing flags : turning AA in turns it off

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes