Product: WebViewer
Product Version: 10.2.3
Please give a brief summary of your issue:
XFDF serializes all annotation types to stamp
Please describe your issue and provide steps to reproduce it:
After trying to export annotations using:
const annotData = await core.exportAnnotations({ options: { fields: true, widgets: true, links: true } });
I notice the xfdf results always serializes the annotations as stamp regardless of the type. So it is always imported as a RubberStampAnnotation and I loose all vital properties of the original annotation.
For instance after adding a text widget, I got:
<?xml version=\"1.0\" encoding=\"UTF-8\" ?>
<xfdf xmlns=\"http://ns.adobe.com/xfdf/\" xml:space=\"preserve\">
<pdf-info xmlns=\"http://www.pdftron.com/pdfinfo\" version=\"2\" import-version=\"4\"/>
<fields/>
<annots>
<stamp page=\"0\" rect=\"295.200,716.578,375.200,734.960\" color=\"#56CAE5\" flags=\"print\" name=\"7JCE5GtnOEG7\" title=\"Guest\" subject=\"Free Text\" date=\"D:20230801132456+01'00'\" creationdate=\"D:20230801132438+01'00'\" TextColor=\"#111633\" FontSize=\"12\">
<trn-custom-data bytes=\"{"trn-auto-size-type":"fixedWidth","dataLabel":"1/individual/7JCE5GtnOEG7","trn-annot-type":"TEXT","trn-annot-data":"{}","trn-wrapped-text-lines":"[\\" Text \\"]","customJson":"{\\"type\\":\\"TEXT\\",\\"assignee\\":{\\"id\\":1,\\"status\\":\\"A\\",\\"createdAt\\":\\"2023-06-15T16:17:09.000Z\\",\\"createdBy\\":\\"SYSTEM\\",\\"updatedAt\\":\\"2023-06-16T16:46:21.000Z\\",\\"updatedBy\\":\\"SYSTEM\\",\\"deletedAt\\":null,\\"name\\":\\"su\\",\\"email\\":\\"dsd@gmail.com\\",\\"role\\":\\"needs_to_sign\\",\\"accessCode\\":null,\\"customMessage\\":null,\\"teamId\\":null,\\"corporateId\\":null,\\"color\\":\\"#56cae5\\",\\"recipientType\\":\\"individual\\",\\"order\\":1},\\"required\\":true,\\"readOnly\\":false}"}\"/>
<contents> Text</contents>
<appearance xmlns=\"http://www.w3.org/1999/xhtml\">PD94b...</appearance>
<imagedata>data:image/png;base64,....</imagedata>
<defaultappearance>0 0.6 0.702 rg /LucidaConsole 12 Tf</defaultappearance>
<defaultstyle>font: 'Lucida Console' 12pt; text-align: left; text-vertical-align: top; color: #111633</defaultstyle>
</stamp>
</annots>
<pages>
<defmtx matrix=\"1,0,0,-1,0,792\"/>
</pages>
</xfdf>
Please provide a link to a minimal sample where the issue is reproducible: