This is the code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using sharpPDF;
namespace Lightnings_Extractor
{
class PDF
{
pdfDocument myDoc = new pdfDocument("Lightnings-Graphs", "Daniel");
public PDF()
{
pdfPage myPage = myDoc.addPage();
myPage.addText("Hello World!", 200, 450, predefinedFont.csHelvetica, 20);
myDoc.createPDF(@"d:\mypdf.pdf");
myPage = null;
myDoc = null;
}
}
}
predefinedFont
does not exist.
So I tried to write:
sharpPDF.Fonts.pdfAbstractFont font;
But then when I tried to create font, there is no csHelvetica
What am I missing here ?
Try replacing
predefinedFont.csHelvetica
withmyDoc.getFontReference("Helvetica")