Page 1 of 1

Export/Import annotation

Posted: Thu Mar 07, 2019 8:48 am
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

Re: Export/Import annotation

Posted: Thu Mar 07, 2019 10:34 am
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

Re: Export/Import annotation

Posted: Thu Mar 07, 2019 10:45 am
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

Re: Export/Import annotation

Posted: Thu Mar 07, 2019 10:49 am
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

Re: Export/Import annotation

Posted: Thu Mar 07, 2019 10:51 am
by Audros
hello
:) , bellow you find example.
best regards

Re: Export/Import annotation

Posted: Thu Mar 07, 2019 12:37 pm
by Sasha - Tracker Dev Team
Hello Audros,

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

Cheers,
Alex

Re: Export/Import annotation

Posted: Thu Mar 07, 2019 3:57 pm
by Audros
Hello Sir,
yes exactlly
best regards

Re: Export/Import annotation

Posted: Fri Mar 08, 2019 8:37 am
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??

Re: Export/Import annotation

Posted: Sat Mar 09, 2019 8:52 am
by Sasha - Tracker Dev Team
Hello Audros,

I will forward this to our testers for investigation.

Cheers,
Alex

Re: Export/Import annotation

Posted: Tue Mar 12, 2019 1:21 pm
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

Re: Export/Import annotation

Posted: Wed Mar 13, 2019 8:07 am
by Audros
Hello,
Ok thank you :)
best regard

Re: Export/Import annotation

Posted: Wed Mar 13, 2019 8:13 am
by Sasha - Tracker Dev Team
:)

Re: Export/Import annotation

Posted: Wed Mar 13, 2019 9:58 am
by Audros
Hello,
Is there a way to ensure this import / export while retaining the AP dictionary?
Best regards

Re: Export/Import annotation

Posted: Fri Mar 15, 2019 8:12 am
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