I'm looking everywhere in the internet but my code doesn't match the others. I have this
string outputFile = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), fullname);
I can't have the Environment.SpecialFolder.Desktop
to make it to Documents/Files
How can I specify which folder my pdf document will be saved?
here is my full code.
string outputFile = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), fullname);
FileStream fs = new FileStream(outputFile, FileMode.Create, FileAccess.Write, FileShare.None);
Document doc = new Document(PageSize.A4, 60, 60, 40, 30);
PdfWriter w = PdfWriter.GetInstance(doc, fs);
doc.Open();
.
.
.
doc.Close();