FitR destination bottom vs top  SOLVED

PDF-XChange Editor SDK for Developers

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

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
zarkogajic
User
Posts: 1429
Joined: Thu Sep 05, 2019 12:35 pm

FitR destination bottom vs top

Post by zarkogajic »

Hi Support,

This might go to EUEditor forum, but since technical I'm asking here.

Using EUEditor to create a GoTo link type annotation with FitR destination type.

Result:

7 0 obj
<<
/A <<
/D [6 0 R /FitR 50.009598 754.797791 282.312225 641.900574]
/S /GoTo
>>
/Border [0 0 0]
/C [0 0 0]
/F 4
/M (D:20241209160718+01'00')
/NM (d306e6b3-33b3-427b-859bb1200b779272)
/P 5 0 R
/Rect [62.477901 722.115784 357.512451 788.078247]
/Subtype /Link
/Type /Annot
>>
endobj


Please note the "FitR 50.009598 754.797791 282.312225 641.900574" section.

The FitR type should specify: left, bottom, right and top.

How come top (641.900574) is smaller than bottom (754.797791)?

Should it not be the opposite (0 value at bottom of page, page_height value at top)?

-žarko
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19306
Joined: Mon Jan 12, 2009 8:07 am
Contact:

Re: FitR destination bottom vs top

Post by Stefan - PDF-XChange »

Hello zarkogajic,

Could it be that the coordinates are in rotated user space and that page has been "flipped" at some earlier point without the coordinate system being normalized for the new page orientation?

Kind regards,
Stefan
zarkogajic
User
Posts: 1429
Joined: Thu Sep 05, 2019 12:35 pm

Re: FitR destination bottom vs top

Post by zarkogajic »

Hi Stefan,

New doc created and then link created (to test / confirm this)...

User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2426
Joined: Thu Jun 30, 2005 4:11 pm

Re: FitR destination bottom vs top  SOLVED

Post by Vasyl - PDF-XChange »

There is a bug definitely... :(
Thanks for the report.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
zarkogajic
User
Posts: 1429
Joined: Thu Sep 05, 2019 12:35 pm

Re: FitR destination bottom vs top

Post by zarkogajic »

Hi Vasyl,

Thanks for confirming.

User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19306
Joined: Mon Jan 12, 2009 8:07 am
Contact:

FitR destination bottom vs top

Post by Stefan - PDF-XChange »

:)
Post Reply