I get illegal characters in transit using the codes below:
string fileNameExisting = Application.StartupPath + "\\CodesLocation\\Template.pdf";
PdfReader templateFile = new PdfReader(fileNameExisting);
I checked a few options:
string fileNameExisting = @Application.StartupPath + "\CodesLocation\Template.pdf";
PdfReader templateFile = new PdfReader(fileNameExisting);
But he still gets the same illegal error.
Can someone help me see if my code is wrong?
Thank.
source
share