1

i am trying to display a PDF in UI that has some fields to be filled by the user and i am trying to access the filled data but i cannot access can anyone suggest a way to access the form data in PDF or any other easy method to implement this feature

i already tried using embed to display PDF but i cannot access the user filled data

final result is like user should be able to edit any number of times the fields in the PDF only once he can submit the data to database

Haroon nasir
  • 648
  • 1
  • 7
  • 21
Ch Srinu
  • 13
  • 4

1 Answers1

0

Whilst trying to achieve the same thing, I ended up using pdfmake.org to render the pdf.

The user is editing the front-end website that looks like the pdf which updates the variables the rendered pdf references with every focus-out event.

van
  • 550
  • 4
  • 15
  • 2
    i have pdf with many textboxes and radio buttons i want to user to fill the form. and i want that details to be saved to databases. i have different pdf with different fields so i am trying not to write html a for each pdf and directly render and get the filled data to send to database – Ch Srinu May 02 '19 at 08:09
  • The thing is, editing the pdf directly in your browser will be hard imo. If you assume page size is always the same Letter/A4 you can style it with css for it to be fixed in size with min/max width/height. After that you can order your database user/document1/page1/field1 and so on and bundle requests and send them all together. With pdfmake I think you'll be more flexible towards your design choices. – van May 02 '19 at 08:56
  • we have multiple pdf then we need to make multiple html pages to render dynamically is there any other to avoid writing html code – Ch Srinu May 02 '19 at 09:40
  • I really doubt it! – van May 03 '19 at 09:27