Generating pdf invoice error

hello dears , when generating an invoice as pdf file I got this error :

Warning : fopen(): Remote host file access not supported, file://documents/facture/IN2312-0001/IN2312-0001.pdf in H:\root\home\test-001\www\dolibarr\includes\tecnickcom\tcpdf\include\tcpdf_static.php on line 1875

Warning : fopen(file://documents/facture/IN2312-0001/IN2312-0001.pdf): Failed to open stream: no suitable wrapper could be found in H:\root\home\test-001\www\dolibarr\includes\tecnickcom\tcpdf\include\tcpdf_static.php on line 1875
TCPDF ERROR: Unable to create output file: documents/facture/IN2312-0001/IN2312-0001.pdf

Dolibarr 18.04
PHP Version 8.1

The pdf file can not be generated.
What are the paths that you configured in your conf.php?
It looks like you have not set those correctly for your documents folder

paths in conf.php
files on subdomain
document_root=‘h:/root/home/main-001/www/dolibarr’
root_alt=‘/custom’
document_root_alt=‘h:/root/home/main-001/www/dolibarr/custom’
main_data_root=‘documents’

And $dolibarr_main_data_root ?
check permission on directory documents/facture/IN2312-0001/
Can you also paste a screenshot of parameter “Registered PHP Streams” found into home - admin tools - PHP info.

fixed thank you for all.
path was :
main_data_root=‘documents’;

and fixed by adding the full path as below :
h:\root\home\main-001\www\dolibarr/documents
now pdf generated