Export/Import annotation

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
Audros
User
Posts: 77
Joined: Fri Jun 08, 2018 1:39 pm

Export/Import annotation

Post by Audros »

Hello,
i export annotations using "op.document.exportCommentsAndFields" and imort them with "op.document.importCommentsAndFields" but w have some difference in result.
you find bellow sceenshots of pdf source and pdf destination. Pic1=>Pic2
Attachments
pic2.png
pic2.png (9.02 KiB) Viewed 4830 times
pic1.png
pic1.png (9.01 KiB) Viewed 4830 times
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17818
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Export/Import annotation

Post by Tracker Supp-Stefan »

Hello Audros,

I've moved your topic to the Editor SDK section of our forums, and a colleague from our dev team will comment shortly!
In the mean time - can you please tell us - are the export and import done on the same machine? Or are they performed on separate ones? If it's separate machines - is the same version of our DLLs used, and are the font sets installed similar or does one machine have significantly more fonts than the other?

Regards,
Stefan
Audros
User
Posts: 77
Joined: Fri Jun 08, 2018 1:39 pm

Re: Export/Import annotation

Post by Audros »

Hello ,

thanks for answer, the export and import are done on the same machine. can i get link of new topic to follow it? thank you


Regards,
Audros
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17818
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Export/Import annotation

Post by Tracker Supp-Stefan »

Hi Audros,

This is still the correct topic - I moved the whole of it to the SDK forum! :)

And thanks for the details!
Can we have a sample with the original file with the comment, the exported comment, and a copy of the target file before and after the comment is inserted?

Thanks,
Stefan
Audros
User
Posts: 77
Joined: Fri Jun 08, 2018 1:39 pm

Re: Export/Import annotation

Post by Audros »

hello
:) , bellow you find example.
best regards
Attachments
Src.pdf
(1.48 MiB) Downloaded 104 times
Dst.pdf
(1.45 MiB) Downloaded 101 times
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Export/Import annotation

Post by Sasha - Tracker Dev Team »

Hello Audros,

Does this reoccur when exporting/importing the same comment via the End-User Editor?

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Audros
User
Posts: 77
Joined: Fri Jun 08, 2018 1:39 pm

Re: Export/Import annotation

Post by Audros »

Hello Sir,
yes exactlly
best regards
Audros
User
Posts: 77
Joined: Fri Jun 08, 2018 1:39 pm

Re: Export/Import annotation

Post by Audros »

Hello,
the problem actualy appear when we open pdf result with adobe acrobat reader, but with pdf xchange editor, they look like each other??
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Export/Import annotation

Post by Sasha - Tracker Dev Team »

Hello Audros,

I will forward this to our testers for investigation.

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: Export/Import annotation

Post by Sasha - Tracker Dev Team »

Hello Audros,

When using the import/export operations, the AP dictionary is omitted from the annotation dictionary (by the specification it can be), thus the PDF reader that you are opening the file in will behave like it's programmed to in case when this dictionary is absent. The Editor does render them as you see, the Acrobat renders the appearances slightly different. When using the End-User Editor to import/export the annotations, the appearance dictionary is being created when the appearance is being rebuild after the operation execution, thus it shows the same result in all of the programs.
image.png
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Audros
User
Posts: 77
Joined: Fri Jun 08, 2018 1:39 pm

Re: Export/Import annotation

Post by Audros »

Hello,
Ok thank you :)
best regard
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Export/Import annotation

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Audros
User
Posts: 77
Joined: Fri Jun 08, 2018 1:39 pm

Re: Export/Import annotation

Post by Audros »

Hello,
Is there a way to ensure this import / export while retaining the AP dictionary?
Best regards
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Export/Import annotation

Post by Sasha - Tracker Dev Team »

Hello Audros,

Just spoke with one of our lead devs - we won't be implementing this in the nearest future.

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