I am trying to use Datalogics PDF ( https://api.datalogics-cloud.com/docs#fillform ) to fill out a fillable pdf (made with adobe acrobat) in my rails.
It's hard for me to figure out how to make an api call. That is, I can not understand where / how to put the parameters. Any help is much appreciated! Thank!
One example is the use of curl, so in the controller action I put curl https://pdfprocess.datalogics.com/api/actions/render/pages --insecure --form 'application={"id": "xxxxx", "key": "xxxxxxx"}' --form input=@hello_world.pdf --form inputName=hello_world.pdf --output flattened.pdf
that aligns pdf hello_world (located in my rails root) into a pdf named flattened.pdf.
I am not sure how to understand this code.
In addition, I was thinking about using a form instead of using a controller whose action is a URL and has tags of different fields, is this a valid option?
For the fill form, I am trying to execute this curl command:
`curl https://pdfprocess.datalogics.com/api/actions/fill/form --insecure --form 'application={"id": "xxxxx", "key": "xxxxxx"}' --form input=@private/fillable/CG1218_6-95.pdf --form filename=@input.json --output flattened.pdf`
source
share