1

I'm using onlyoffice to convert a file from docx to pdf (Documentation here : https://api.onlyoffice.com/editors/conversionapi).

I use curl to execute the example, and it works. I get the file url back, but the only issue is that when I try using this url (in a browser or downloading with file_get_contents), I have a 403 error.

There is nothing in the documentation that speak about the next steps post conversion, so I was wondering if someone could give me a hint. Is there an api method undocumented or something like that ?

Thanks

Bdloul
  • 882
  • 10
  • 27

2 Answers2

1

I get the file url back, but the only issue is that when I try using this url

Please make sure that you use the link with all parameters. secure_link should also be included into the download link. If that doesn't help send us the link that you get.

ibnpetr
  • 472
  • 2
  • 5
  • Yes I use the link with all the arguments. Still get 403. What do you mean by including secure_link in the download link ? – Bdloul May 15 '18 at 22:35
1

The url in the xml back is sent back with html characters in it.

htmlspecialchars_decode on the url resolved my issue.

Bdloul
  • 882
  • 10
  • 27