Export/Import annotation

PDF-XChange Editor SDK for Developers

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

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: 63
Joined: Fri Jun 08, 2018 1:39 pm

Export/Import annotation

Post by Audros » Thu Mar 07, 2019 8:48 am

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 2421 times
pic1.png
pic1.png (9.01 KiB) Viewed 2421 times

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

Re: Export/Import annotation

Post by Tracker Supp-Stefan » Thu Mar 07, 2019 10:34 am

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: 63
Joined: Fri Jun 08, 2018 1:39 pm

Re: Export/Import annotation

Post by Audros » Thu Mar 07, 2019 10:45 am

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: 13508
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Export/Import annotation

Post by Tracker Supp-Stefan » Thu Mar 07, 2019 10:49 am

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: 63
Joined: Fri Jun 08, 2018 1:39 pm

Re: Export/Import annotation

Post by Audros » Thu Mar 07, 2019 10:51 am

hello
:) , bellow you find example.
best regards
Attachments
Src.pdf
(1.48 MiB) Downloaded 33 times
Dst.pdf
(1.45 MiB) Downloaded 30 times

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

Re: Export/Import annotation

Post by Sasha - Tracker Dev Team » Thu Mar 07, 2019 12:37 pm

Hello Audros,

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

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Audros
User
Posts: 63
Joined: Fri Jun 08, 2018 1:39 pm

Re: Export/Import annotation

Post by Audros » Thu Mar 07, 2019 3:57 pm

Hello Sir,
yes exactlly
best regards

Audros
User
Posts: 63
Joined: Fri Jun 08, 2018 1:39 pm

Re: Export/Import annotation

Post by Audros » Fri Mar 08, 2019 8:37 am

Hello,
the problem actualy appear when we open pdf result with adobe acrobat reader, but with pdf xchange editor, they look like each other??

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

Re: Export/Import annotation

Post by Sasha - Tracker Dev Team » Sat Mar 09, 2019 8:52 am

Hello Audros,

I will forward this to our testers for investigation.

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

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

Re: Export/Import annotation

Post by Sasha - Tracker Dev Team » Tue Mar 12, 2019 1:21 pm

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
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Audros
User
Posts: 63
Joined: Fri Jun 08, 2018 1:39 pm

Re: Export/Import annotation

Post by Audros » Wed Mar 13, 2019 8:07 am

Hello,
Ok thank you :)
best regard

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

Re: Export/Import annotation

Post by Sasha - Tracker Dev Team » Wed Mar 13, 2019 8:13 am

:)
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Audros
User
Posts: 63
Joined: Fri Jun 08, 2018 1:39 pm

Re: Export/Import annotation

Post by Audros » Wed Mar 13, 2019 9:58 am

Hello,
Is there a way to ensure this import / export while retaining the AP dictionary?
Best regards

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

Re: Export/Import annotation

Post by Sasha - Tracker Dev Team » Fri Mar 15, 2019 8:12 am

Hello Audros,

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

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Post Reply