Annotations moving in pdf if I change the size of the pdf? Is there any way I can make them stick to their original positions?

PDF.js Express Version

Detailed description of issue
I am adding header and footer to an annotated pdf which is causing the initial annotations to move from their original positions. Is there any way that we can avoid that to happen.

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}

Hi there,

PDF.js Express doesn’t support adding a header and footer to a document, so this issue seems like it is outside the scope of Express, and is instead an issue with the tool you are using to manipulate the document.

Please let me know if this is incorrect.


Hey Logan ,
Thanks for your input . Yes we are using PYPDF2 to add headers to it and maybe that is causing the shift in annotations .

Thanks again!