Rending documents in PHP using GroupDocs.Viewer REST API error

Hi,

Trying to run a php sample code from Render all layouts | GroupDocs.Viewer Cloud | Documentation and getting error (screenshot below). Intention is to show word file in browser. looking for urgent help to give demo to the client.

image.png (75.3 KB)

image.png (97.4 KB)

Thanks.

@bhupendra8773

I have tested the PHP code with a sample document and unable to reproduce the exception. Please share your input document here as a zip file. We will further investigate the issue and will guide you.

Hi Tilal,

Attached files in zip format. Please try to run php_viewer.php

Thanks,
Bhupendra

@bhupendra8773

You are getting the error because the API call is unable to find test_file.docx. Please upload the target file to storage and then run_php_viewer.php. It will resolve the issue. Furthermore, please never share your credentials in forums until we ask you. And we use the private message for sharing confidential information.

I have removed your shared project from the post and it is recommended to regenerate your secret from groupdocs.cloud dashboard.