Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    problem printing a selected part of a file

    Help wanted · · · – – – · · ·
    5
    11
    913
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Osvaldo Correa
      Osvaldo Correa last edited by

      Hello,

      I’m having a problem printing a selected part of a file. The selected text, when printed, has a background color. I want to print in Black/White. How do I remove background color from selected text when I print?

      I’m using :
      In Preferences / Print: Black and White
      Theme: Deep Black

      Thanks

      Osvaldo

      PeterJones 1 Reply Last reply Reply Quote 0
      • PeterJones
        PeterJones @Osvaldo Correa last edited by

        @osvaldo-correa ,

        Are you the same user as created this issue ?

        I ask, because it looks like a similar bug was created a few hours earlier. I can confirm that when I have a selection in Deep Black theme, ensure that Black on White is selected for printing, and I use a print-to-PDF printer, I can confirm:

        ----
        ad1e78d2-1947-4b5d-afef-05d0bc40cd35-image.png
        c32dad80-f592-442c-b770-37fad9d416cc-image.png
        33fce0f2-b768-4630-a65e-91253231d18b-image.png
        ----

        I definitely agree that it is a bug if the settings are set to Black on White but it still prints selected text with a background color. So I have added the extra info and my screenshots to the existing bug report.

        donho 1 Reply Last reply Reply Quote 1
        • R
          rdipardo last edited by

          FYI, Notepad++ 8.4.3 does not have the definitive patch for this issue: https://sourceforge.net/p/scintilla/code/ci/fc46d7ed1f9393b8f0a577d72016c3c4da9c465c

          It will have to wait until N++ moves up to Scintilla 5.2.4.

          donho 1 Reply Last reply Reply Quote 0
          • donho
            donho @PeterJones last edited by

            @PeterJones said in problem printing a selected part of a file:

            I definitely agree that it is a bug if the settings are set to Black on White but it still prints selected text with a background color. So I have added the extra info and my screenshots to the existing bug report.

            So for you selection should not be printed?

            PeterJones 1 Reply Last reply Reply Quote 0
            • PeterJones
              PeterJones @donho last edited by

              @donho said in problem printing a selected part of a file:

              So for you selection should not be printed?

              Sorry, I apparently wasn’t clear. Yes, the selected text should be printed. But the selected text should be printed without a background color (or with the background color at white) if the print options say “no background colour” (or “black on white”)

              PeterJones donho 2 Replies Last reply Reply Quote 0
              • PeterJones
                PeterJones @PeterJones last edited by

                @donho,

                To clarify:

                in v8.3.3, this is the behavior, and it worked as expected with “no background colour”:
                b83f40a9-0f73-4e6f-958c-739abfce5d4e-image.png

                in v8.4.3, this is the behavior, where there is grey background which users do not expect (because “no background colour” means no background color):
                2b0f9cbf-5f0a-4839-b0db-98eca403955e-image.png

                (My screenshots show the state of Notepad++ selection when I printed from Notepad++ to PDF, and the PDF viewer shows what that printout looks like)

                The old v8.3.3 behavior is the expected behavior in such circumstances. The reason it is expected, other than the weight of Notepad++ history, is because other applications (like MS Word or MS Wordpad), if you do a selection and tell the print dialog to only print the selection, it will print without the highlighting. This is true of every application I use that allows printing of just the selected text… until Notepad++ v8.4.0-and-following.

                f609f243-215e-4cae-83f6-4ae9f91d8a1f-image.png
                c1c3cecd-79d2-48e4-b056-25bb05804a2c-image.png

                1 Reply Last reply Reply Quote 0
                • donho
                  donho @PeterJones last edited by

                  @PeterJones said in problem printing a selected part of a file:

                  So for you selection should not be printed?

                  Sorry, I apparently wasn’t clear. Yes, the selected text should be printed. But the selected text should be printed without a background color (or with the background color at white) if the print options say “no background colour” (or “black on white”)

                  It was me who wasn’t clear about this point.
                  But now I see your point.
                  Thank you for taking time to explain to me the problem.

                  I will see what I can do about this regression.

                  1 Reply Last reply Reply Quote 1
                  • Alan Kilborn
                    Alan Kilborn last edited by

                    As an aside, printing a selection, even with 8.3.3, does not provide what I expect for the settings chosen.

                    Example:

                    663e4475-789a-4f4c-81fa-1bbee5e7c481-image.png

                    yields this when choosing to print only the “Selection”:

                    9e77c8d9-123f-4798-bf73-ba4fc8860d00-image.png

                    My Colour Option is WYSIWYG and that is definitely not the case for the printed page.

                    Note that I am using enableSelectFgColor.xml.

                    This is rather minor, but I thought I’d mention it.

                    donho 1 Reply Last reply Reply Quote 0
                    • donho
                      donho @Alan Kilborn last edited by

                      @Alan-Kilborn
                      It’s rather Scintilla issue.
                      What I can do is apply the patch that @rdipardo has pointed out to fix the regression.
                      Hope you understand.

                      Alan Kilborn 1 Reply Last reply Reply Quote 0
                      • Alan Kilborn
                        Alan Kilborn @donho last edited by

                        @donho said in problem printing a selected part of a file:

                        What I can do is apply the patch that @rdipardo has pointed out to fix the regression.
                        Hope you understand.

                        I’m not sure what I pointed out is the same or not, but I wanted to share what I noticed in case it actually is different and you want to deal with it while you’re “in there”. Regardless, it isn’t that important to me at all.

                        1 Reply Last reply Reply Quote 0
                        • donho
                          donho @rdipardo last edited by

                          @rdipardo @PeterJones

                          I’ve applied Scintilla fix here:
                          https://github.com/notepad-plus-plus/notepad-plus-plus/pull/11911

                          But I still can reproduce the bug.
                          Obviously, the bug is not fixed by this commit :(

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright © 2014 NodeBB Forums | Contributors