Best js library for pdf editing

i am completely new in programing and this will be my second project. I am trying to build a webpage that allows users to copy data from pdf such as text and strings and paste it in desired destination. I did try chatgpt before for help but things didn’t work, can any help me with this specifically what library I should use and potential bugs I should be looking out for, I have tried chatgpt before but that code is throwing unknown errors, and they are quite impossible to solve as most of time I am going in loop with them