Number of imported comments via op.document.importCommentsAndFields ?  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

Number of imported comments via op.document.importCommentsAndFields ?

Post by zarkogajic »

Hi Support,

How do I get the number of imported comments using op.document.importCommentsAndFields ?

As when using "Import comments from file" (from main menu - Comments) -> after the import has finished a message box will get displayed about the number of comments being imported.

How to get that number from the import IOperation?

-žarko
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2352
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Number of imported comments via op.document.importCommentsAndFields ?

Post by Vasyl-Tracker Dev Team »

Unfortunately, this info is inside internal (not public) data of import-operation. At the moment you cannot reach it.. :(
Vasyl Yaremyn
Tracker Software Products
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: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: Number of imported comments via op.document.importCommentsAndFields ?  SOLVED

Post by zarkogajic »

Hi Vasyl,

Ok, clear.

If there's any chance: please add NumberOfAnnotationsImported and NumberOfFieldsImported into the, currently empty, "Output" parameter....

-žarko
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2352
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Number of imported comments via op.document.importCommentsAndFields ?

Post by Vasyl-Tracker Dev Team »

Unfortunately but not the moment, maybe later...

From another side you may get number of added annots using idea like to:

1. build list of all unique names of existing annots on pages
2. import
3. build new list of all unique names of existing annots
4. compare two lists of names to detect newly added annots..
Vasyl Yaremyn
Tracker Software Products
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: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: Number of imported comments via op.document.importCommentsAndFields ?

Post by zarkogajic »

Hi Vasyl,

Thanks, that's it.

Post Reply