Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

276
Views
Save Form data on pdf with react-pdf

I'm trying to save the form data with a pdf that's being display with react-pdf. My current setup is calling the pdf bytes as a base64 string from a database entry, and loading the pdf through canvas. I've got all the necessary functions to save the actual data as strings, but I don't know how to "save" the pdf with the form fields saved with the pdf. Does someone know this last step?

<div>
<Document
  file={{
    data: fileBytes,
  }}
  onLoadSuccess={onDocumentLoadSuccess}
  options={options}
>
  <Page
    renderForms={true}
    pageNumber={pageNumber}
    onClick={setVariable}
    onInput={setVariable}
    canvasRef={canvasRef}
  />
</Document>
<p>
  Page {pageNumber} of {totalPages}
</p>
</div>
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!