I have project which is have this function. After i take the build i need to open the pdf file. I had one button in my scene i did code for that button when i click that button tha pdf should open.
I use this code to do that function:
i copy my pdf file in Data/ Resources folder and i use that above code.
But its not open i dont know whats the problemm in this.
please help me to find the solution
its very urgent
I got this working on my end. At first I got an “Access Denied” error in reader, but just had to right click on pdf file in explorer, then unblock the file. You shouldn’t have that problem, just try this:
public class AcroTest : MonoBehaviour
void Start ()
process = new ProcessStartInfo("AcroRd32.exe", Application.dataPath+"/Resources/Test.pdf");
I hope it’s for standalone. Maybe look at this or this.
Maybe you need to use the absolute path.
PDF docs can be opened with the help of pdf file recovery
Look at http://www.oemailrecovery.com/pdf_recovery.html