trying to create a basic pdf document using iText7 core community,
using iText.Kernel.Pdf;
using iText.Layout;
using iText.Layout.Element;
FileInfo dest = new FileInfo("C:\\Users\\Utente\\OneDrive\\Desktop\\....\\titlepage_17886.pdf");
var writer = new PdfWriter(dest.FullName);
var pdf = new PdfDocument(writer);
var document = new Document(pdf);
document.Add(new Paragraph("Hello World!"));
document.Close();
when I execute hello word example as above always get System.NullReferenceException: 'Object reference not set to an instance of an object.':
(https://i.stack.imgur.com/VTwnQ.png)
Thanks in advance
Michele