I found the solution to fix "fopen(document.pdf): failed to open stream: Permission denied in C:\Program Files\VertrigoServ\www\Project\makePDF.php on line 8". It was suggested that to open terminal and run the command
sudo chmod filename.php
But i don't know which terminal should I open to run this command?
Please help me. I'll be very thankful to you.