Annotations not drawing correctly

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Annotations not drawing correctly

Post by lidds »

I have a PDF document and am drawing a rectangle over existing graphics. For some reason the annotation is not matching up with the correct area picked. It seems to be offset by an amount of pixels. I have attached a video to clearly show this behaviour.

Thanks

Simon
Attachments
notDrawnCorrectly.zip
(227.58 KiB) Downloaded 89 times
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Annotations not drawing correctly

Post by Sasha - Tracker Dev Team »

Hello Simon,

Can you recreate that with the End-User Editor with normal rectangle tool?

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Annotations not drawing correctly

Post by lidds »

Hi Alex,

Yes this can be reproduced within the End User Editor, see screen shot.
EndUserEditor.png
I have also attached the native PDF.

Thanks

Simon
Attachments
PID_001.pdf
(115.76 KiB) Downloaded 102 times
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Annotations not drawing correctly

Post by Sasha - Tracker Dev Team »

Hello Simon,

It seems that there is a bug with matrices and border width. It differs from starting point (if you are drawing from bottom left everything would work OK). We will look into this.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Annotations not drawing correctly

Post by lidds »

Hi Alex,

I have tested drawing from the bottom left and it gives the following results:
Border.png
As you can see the rectangle is drawn inside the black square that I snapped to. However should this not be drawn as half the border width outside and half the border width inside the black rectangle? This is normally how other 2D drawing applications function.

Thanks

Simon
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Annotations not drawing correctly

Post by Sasha - Tracker Dev Team »

Hello Simon,

We will look into this.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Annotations not drawing correctly

Post by Sasha - Tracker Dev Team »

Hello Simon,

The PDF annotations differ from the 2D applications - the rectangle annotation draw it's border that way, so that all of it is inside the area, not just it's skeleton.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Annotations not drawing correctly

Post by lidds »

OK Alex, that is good to know.

However is there any idea on a timescale for resolving the initial drawing over snapped content from top, left to bottom, right?

Thanks

Simon
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Annotations not drawing correctly

Post by Sasha - Tracker Dev Team »

Hello Simon,

We've created a bug on this matter for the appropriate developer. I'm afraid that there is no timescale for this one.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3549
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: Annotations not drawing correctly

Post by Ivan - Tracker Software »

Fixed in 328
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Annotations not drawing correctly

Post by lidds »

Ivan,

Is v328 available for download?

Thanks

Simon
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Annotations not drawing correctly

Post by Sasha - Tracker Dev Team »

Hello Simon,

Nope, it will be in a week or so.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Annotations not drawing correctly

Post by lidds »

Thanks Alex,

Will this issue be resolved in build 328 as it is quite a big one for me

viewtopic.php?f=66&t=31834

Thanks

Simon
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Annotations not drawing correctly

Post by Sasha - Tracker Dev Team »

Hello Simon,

From what I see, this was not fixed yet.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply