0

I have researched and researched and have turned to stackoverflow for help.

I am using PDF.co's web API to convert a PDF to JSON. However, the PDF is a form fill in. When I get the JSON back, it has '@' in the key field. Since I am using jQuery(id assume other languages have similar issues) but the syntax rejects the accessability of that object since you cant do obj.@thiskey or even obj."@thiskey".

So my questions are this.

  • How do you get rid of the @ before the key?
  • If you cant, would it be better to convert PDF to another file? Such as CSV, or HTML? The problem with these are that I dont know about using a file that is being generated within an ajax then using it without it being saved on the users computer.
  • Is there an easier way you can see to do this from a form fill in pdf?

Attached is a picture of the issue.

enter image description here

End Goal: To be able to take in a PDF file from user that is form filled in, read the data from it, extract the data, manipulate data to make a different PDF. Any help is appreciated. Thanks.

  • [How do I ask a good question?](https://stackoverflow.com/help/how-to-ask) – Andreas Dec 01 '20 at 15:39
  • And [How can I access a JavaScript object which has spaces in the object's key?](https://stackoverflow.com/questions/4968406/javascript-property-access-dot-notation-vs-brackets), [How to access object property with invalid characters](https://stackoverflow.com/questions/21056075/how-to-access-object-property-with-invalid-characters) – Andreas Dec 01 '20 at 15:43

0 Answers0