When I'm trying to create a pdf file on a specific file path, this exception is thrown.
N.B. I'm using iTextSharp 1.3.2 and .net Core 1.0
var physicalDocPath = "C:\\Users\\rajdeep\\Desktop\\testing.pdf";
var document = new Document(PageSize.A4, 50, 50, 50, 50);
PdfWriter writer = PdfWriter.GetInstance(document, new FileStream(physicalDocPath, FileMode.OpenOrCreate));
document.Open();
var parser = new XmlParser();
parser.Go(document, pdfContent);
document.Close();
The exception is thrown when I'm executing parser.Go()
method.