op.document.exportCommentsAndFields ignores "Link" annotations - a bug or by design?  SOLVED

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

op.document.exportCommentsAndFields ignores "Link" annotations - a bug or by design?

Post by zarkogajic »

Hi Support,

Ref: "Export a specific annot": https://forum.pdf-xchange.com/viewtopic.php?f=66&t=35701#p148620

Given the new "AnnotsList" Options parameter to op.document.exportCommentsAndFields I've tried using it to export (then import to a different core document) "Link" type annotation.

It seems the export operation completely ignores Links ?

p.s.
I've also tried leaving the AnnotsList unassigned (and just using "ExportAnnots=true"). Importing the resulting file to a different core document, all various annotations are imported, but Links are not.

image.png

left hand side document is the "source", right hand side is the target - 2 annotations copied over, links not.

image.png

So, only links not copied over.

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

Re: op.document.exportCommentsAndFields ignores "Link" annotations - a bug or by design?

Post by Sasha - Tracker Dev Team »

Hello zarkogajic,

There is a LinksOnly option in the operation's Options - try setting it to true.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: op.document.exportCommentsAndFields ignores "Link" annotations - a bug or by design?

Post by zarkogajic »

Hi Alex,

Nope, still no links saved.

Here's the resulting FDF
%FDF-1.4
%âăĎÓ
1 0 obj
<<
/FDF <<
/ID [<91F5043296AF9686FB653F715BC0BEC5> <91F5043296AF9686FB653F715BC0BEC5>]
>>
/Type /Catalog
>>
endobj
trailer
<<
/Root 1 0 R
>>
%%EOF

p.s.
Btw, "LinksOnly" does not appear here: https://sdkhelp.pdf-xchange.com/view/PXV:op_document_exportCommentsAndFields_Options
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: op.document.exportCommentsAndFields ignores "Link" annotations - a bug or by design?

Post by Sasha - Tracker Dev Team »

Hello zarkogajic,

Replied here:
viewtopic.php?f=66&t=35701&p=150525#p150525

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: op.document.exportCommentsAndFields ignores "Link" annotations - a bug or by design?  SOLVED

Post by zarkogajic »

Hi Alex,

ok, we continue this there ...

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

op.document.exportCommentsAndFields ignores "Link" annotations - a bug or by design?

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply