Save the unity screenshot in pdf format

Hi friends,

I have tried to save my unity scene as a pdf format, i can export the image as a pdf, but i cannot able to open that file. I dont know what the issue in this, i have tried to open that file in another system too but there also it didn’t open.

Please help me to solve this issue.

I have used this code:

if(GUI.Button(Rect(200,100, 50,50), "Print")){


Application.CaptureScreensoht does not convert an image into a PDF, thats your job to do through some form of scripting somewhere. All that code does is capture the image into a *.PNG file.

There are plenty of resources online that will help you convert an image into a PDF file, here’s one I googled quickly using C#