When drawing a rectangle comment with 0 pt width, some edges are not rendered with high probability

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

User avatar
rakunavi
User
Posts: 1679
Joined: Sat Sep 11, 2021 5:04 am

When drawing a rectangle comment with 0 pt width, some edges are not rendered with high probability

Post by rakunavi »

Hello all,

In the PDF-XChange Editor, if you set the width of annotation to 0 pt, it appears on screen at 1 pixel, regardless of zoom level. However, there seem to be too many cases of missing edges when a rectangle comment is drawn with a width of 0 pt.

Besides the methods already described (the first method), the following second and third methods come to mind for rendering a rectangle with a width of 1 pixel to the screen.

  1. Create a rectangle comment with the width set to 0 pt.
  2. Create a rectangle comment with the width set to something other than 0 pt and display it in Thin Lines mode.
  3. Create a link annotation with the width set to 1 pt.
However, when rendered using the second and third methods, the edges appear at any zoom level. Incidentally, with the first method, the edge appears when the zoom level is changed, and the edge is missing when the annotation is set to the zoom level at which it was drawn. Even if you reopen the file, the situation is the same.

It is strange that only the leftmost first method partially does not show edges, even though all three methods should be doing exactly the same thing in terms of drawing a rectangle with a width of one pixel. Note that this report assumes, as reported earlier in the previous topic on links, that in PDF-XChange Editor, points, the unit of link width, can be considered practically equal to pixels.

The following verification video examines the three methods listed above, starting from the left side of the screen. As usual, I have started the verification after initializing all PDF-XChange Editor settings. Incidentally, I have hidden the mouse cursor coordinates at the beginning of the video, but this is done to reduce the file size of the GIF animation as much as possible, and has nothing to do with the verification.

  • figure1.png

    Animation1.gif
  • sample.pdf
The edges can be displayed by opening the Rendering dialog from the Page Display category of the Preferences dialog and changing the "Stroke Adjust" setting from Auto (default) to Off. However, this is only temporary. After changing to Thin Lines mode or reopening the file, some edges will not be displayed again.

  • figure2.png

    Animation2.gif
I report this because I thought in my layman's terms that the code used to render the second and third methods could possibly help improve the rendering of the first method. If this is a misplaced point, please disregard.

Hoping that the above information will be of some help to you.
Thank you so much for your continued support.

Best regards,
rakunavi

- PDF-XChange Editor PRO Version: 10.5.2 build 395
- OS Version: Windows 11 Pro / Home 24H2 Build 26100.3476
- PC Model: GMKtec Nucbox M7 Pro with HUION Kamvas Pro 19 / Lenovo IdeaPad C340-15IWL
You do not have the required permissions to view the files attached to this post.
TOP desires for PDFXCE
forum.pdf-xchange.com/viewtopic.php?t=39665 LassoTool
forum.pdf-xchange.com/viewtopic.php?t=38554 CmtGarbled
forum.pdf-xchange.com/viewtopic.php?t=37353 FulScrMultiMon
forum.pdf-xchange.com/viewtopic.php?t=41002 DisableTouchSelect
User avatar
PHK
User
Posts: 1396
Joined: Tue Nov 24, 2020 4:02 pm

Re: When drawing a rectangle comment with 0 pt width, some edges are not rendered with high probability

Post by PHK »

Rakunavi, I think you are on to something here because I can reproduce your experiences if I am at a few different, but not all, zoom levels.

If I use the mouse wheel with the control key to change the zoom level, sometimes border lines are missing and sometimes they are not. Likewise, if I set an arbitrary zoom level, I may get full borders or not. See the various results below where the blue ovals show the zoom levels where the rectangles are fully rendered and the red ovals show where they are not. It does not seem to matter if the page is flattened or not.
image.png
You do not have the required permissions to view the files attached to this post.
All best,

FringePhil
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11036
Joined: Wed Jan 03, 2018 6:52 pm

Re: When drawing a rectangle comment with 0 pt width, some edges are not rendered with high probability

Post by Daniel - PDF-XChange »

Hello,

Thank you both for the details, I see the same, and the Dev team has been informed. Hopefully we can see some improvements to this in the future.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
User avatar
PHK
User
Posts: 1396
Joined: Tue Nov 24, 2020 4:02 pm

Re: When drawing a rectangle comment with 0 pt width, some edges are not rendered with high probability

Post by PHK »

Thank you, Daniel.
All best,

FringePhil
User avatar
rakunavi
User
Posts: 1679
Joined: Sat Sep 11, 2021 5:04 am

Re: When drawing a rectangle comment with 0 pt width, some edges are not rendered with high probability

Post by rakunavi »

Hello PHK and Daniel,

@PHK
Thank you for taking the time out of letting me know the results of your review.

@Daniel
I am relieved to share the situation with you.
Please give my best regards to the developer.

Best regards,
rakunavi
TOP desires for PDFXCE
forum.pdf-xchange.com/viewtopic.php?t=39665 LassoTool
forum.pdf-xchange.com/viewtopic.php?t=38554 CmtGarbled
forum.pdf-xchange.com/viewtopic.php?t=37353 FulScrMultiMon
forum.pdf-xchange.com/viewtopic.php?t=41002 DisableTouchSelect
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19868
Joined: Mon Jan 12, 2009 8:07 am

When drawing a rectangle comment with 0 pt width, some edges are not rendered with high probability

Post by Stefan - PDF-XChange »

:)
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11036
Joined: Wed Jan 03, 2018 6:52 pm

Re: When drawing a rectangle comment with 0 pt width, some edges are not rendered with high probability

Post by Daniel - PDF-XChange »

Hello, All

I have just heard back from the dev team. They have informed that there is very little we can do in such specific cases. We will be investigating further when there is time, but I cannot promise change will be coming anytime soon.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
User avatar
rakunavi
User
Posts: 1679
Joined: Sat Sep 11, 2021 5:04 am

Re: When drawing a rectangle comment with 0 pt width, some edges are not rendered with high probability

Post by rakunavi »

Hello Daniel,

Thank you for taking the time out of your busy schedule to let me know the result of your review.
Please give my best regards to the developer.

Best regards,
rakunavi
TOP desires for PDFXCE
forum.pdf-xchange.com/viewtopic.php?t=39665 LassoTool
forum.pdf-xchange.com/viewtopic.php?t=38554 CmtGarbled
forum.pdf-xchange.com/viewtopic.php?t=37353 FulScrMultiMon
forum.pdf-xchange.com/viewtopic.php?t=41002 DisableTouchSelect
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11036
Joined: Wed Jan 03, 2018 6:52 pm

When drawing a rectangle comment with 0 pt width, some edges are not rendered with high probability

Post by Daniel - PDF-XChange »

:)
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com