Issue while Importing annotations in Web-Viewer by using XFDF string

HI,
I want to import Annoations in same document at synchronization time in Multiple screens
Here are the steps to reproduce the issue

  1. I have imported some Annotations Manually in document.(screen 1), Here is the XFDF string for that

     <annots>
     	<square page="0" rect="65.670,704.010,321.980,758.850" color="#E44234" flags="print" name="e9182352-4d28-d247-7ac8-e1c8571ed10c" title="Romit Dasgupta" subject="Rectangle" date="D:20231013172708+05'30'" creationdate="D:20231013172706+05'30'"/>
     	<highlight page="0" rect="72.030,686.358,242.640,697.918" color="#00CC63" flags="print" name="ae9f245b-5245-2c25-6afa-6751cfb4b17f" title="Romit Dasgupta" subject="Highlight" date="D:20231013174815+05'30'" creationdate="D:20231013174815+05'30'" coords="72.03,697.918,242.64000000000007,697.918,72.03,686.3580000000001,242.64000000000007,686.3580000000001">
     		<trn-custom-data bytes="{&quot;trn-annot-preview&quot;:&quot;This is a small demonstration .pdf file -&quot;}"/>
     	</highlight>
     </annots>
    

  1. Then I am deleting Highlight Annotation from Screen 1, Screen 1 looks like below

     <annots>
     	<square page="0" rect="65.670,704.010,321.980,758.850" color="#E44234" flags="print" name="e9182352-4d28-d247-7ac8-e1c8571ed10c" title="Romit Dasgupta" subject="Rectangle" date="D:20231013172708+05'30'" creationdate="D:20231013172706+05'30'"/>
     </annots>
    

  1. But in the Screen 2, Even though XFDF string got updated, Deleted Annnotations are still present in Web viewer.
    If we refresh the page then it is updating Annotations in UI . But Without refresh the page I want to update the Annotations in UI in Screen 2 as well

Here is the XFDF string for that

	<annots>
		<square page="0" rect="65.670,704.010,321.980,758.850" color="#E44234" flags="print" name="e9182352-4d28-d247-7ac8-e1c8571ed10c" title="Romit Dasgupta" subject="Rectangle" date="D:20231013172708+05'30'" creationdate="D:20231013172706+05'30'"/>
	</annots>

1 Like

Hello laxmidurga.subhadrad,

We will take a look at the issue presented, but we require more info. Can you please provide the following:

Also, you have already made a thread about this issue here: How to refresh the UI in pdfwebviewer by using pdftron inbuilt methods?
But haven’t provided the required info. I think these two tickets might be merged, just a little heads-up.

1 Like