# Make own Snap feature

**URL:** <https://pdfjs.community/t/make-own-snap-feature/2235>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [December 14, 2022, 10:44am UTC](https://pdfjs.community/t/make-own-snap-feature/2235 "2022-12-14T10:44:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev\_onehub](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@dev\_onehub](https://pdfjs.community/u/dev_onehub)\
**Post date:** [December 14, 2022, 10:44am UTC](https://pdfjs.community/t/make-own-snap-feature/2235/1 "2022-12-14T10:44:05Z")

</div>

**Which product are you using?**  
PDF.js Express Plus

**PDF.js Express Version**  
v8.7.0

**Detailed description of issue**  
Hi,

As we know PDFJS doesn’t have snap feature. So I’m thinking of making my own. let say i have the coordinates should be snapped. What steps or any example to achieve this ? right now I’m thinking of to override `PolylineCreateTool`

Thank guys 😁

---

<div class="post-metadata">

**Author:** ![kkim](https://avatars.discourse-cdn.com/v4/letter/k/3ab097/32.png) [@kkim](https://pdfjs.community/u/kkim)\
**Post date:** [December 14, 2022, 6:54pm UTC](https://pdfjs.community/t/make-own-snap-feature/2235/3 "2022-12-14T18:54:54Z")

</div>

Hi there,

Thank you for contacting pdf.js express forums,

As you mentioned, snapping is not supported for pdf.js but our sister product WebViewer has this feature.  
An example documentation can be found here, but you will need to define your own snapToNearest method

> **[PDFTron Systems Inc. | Documentation](https://www.pdftron.com/documentation/samples/js/ViewerSnapToNearestTest/)**
>
> World's #1 PDF SDK Library for Web, Mobile, Server, Desktop

Best regards,  
Kevin Kim
