I am using react-pdf for rendering Pdf file and it's working perfectly fine. Below is the code for same:
<Document
inputRef={documentRef}
file={pdfUrl}
error={() => {}}
onLoadSuccess={(params) => {
console.log('paramsparams => ', params);
}}
>
<Page
renderTextLayer={true}
renderAnnotationLayer={true}
customTextRenderer={false}
pageNumber={1}
renderForms={true}
/>
</Document>
<button onCLick={()=>// access updated pdf buffer }>Save</button>
This is rendering text layer along with form fields. As pdf is having form fields I want my user to fill in it and I should be able to store copy of filled pdf.
currently user are able to fill in details but how can I get access to updated pdf buffer object which should contains pdf with filled form so that I can create and store pdf on server?