# Do annotations from setCustomDrawHandler make it to the downloadable file?

**URL:** <https://pdfjs.community/t/do-annotations-from-setcustomdrawhandler-make-it-to-the-downloadable-file/927>\
**Category:** Technical Support\
**Created:** [August 3, 2021, 5:31pm UTC](https://pdfjs.community/t/do-annotations-from-setcustomdrawhandler-make-it-to-the-downloadable-file/927 "2021-08-03T17:31:03Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![rlaw](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rlaw](https://pdfjs.community/u/rlaw)\
**Post date:** [August 3, 2021, 5:31pm UTC](https://pdfjs.community/t/do-annotations-from-setcustomdrawhandler-make-it-to-the-downloadable-file/927/1 "2021-08-03T17:31:03Z")

</div>

**PDF.js Express Version**

**Detailed description of issue**

Hi Logan,

Another question related to custom annotations. I am currently using setCustomDrawHandler to display a a number within a circle at the bottom-right corner of the annotation. The method above is achieved through redrawing the canvas but that does not actually modify the xfdf file, correct? I am using annotManager.exportAnnotations() to grab the latest xfdf file, but I do not see a correlation or a pattern with the numbers. My concern is that when we “merge” the pdf file and xfdf file, I will not see the numbered annotations on the downloadable pdf.

Will the numbered annotations be present in that file? If not, is there a way to grab the xfdf file with those custom annotations? Is there a way to directly modify the xfdf file to include numbers?

If so, do you see a way to include these numbered annotations only when exporting the pdf?

Thanks,  
Ryan

**Expected behaviour**  
{Provide a screenshot or description of the expected behaviour}

**Does your issue happen with every document, or just one?**  
{Answer here}

**Link to document**  
{Provide a link to the document in question if possible}

**Code snippet**  
{Provide a relevant code snippet}

---

_[View the full topic](https://pdfjs.community/t/do-annotations-from-setcustomdrawhandler-make-it-to-the-downloadable-file/927)._
