Dim strm As System.IO.Stream = System.IO.File.OpenWrite("test.pdf") Dim doc As GrapeCity.PDF.Document = New GrapeCity.PDF.Document() Dim page As GrapeCity.PDF.Objects.PageObject = doc.Pages.CreatePage() Dim g As GrapeCity.PDF.Drawing.Graphics = page.GetGraphics() g.DrawString("Hello", New Font("MS UI Gothic", 10), Brushes.Black, 10, 10) GrapeCity.PDF.Writer.Write(doc, strm) strm.Close()
System.IO.Stream strm = (System.IO.Stream)System.IO.File.OpenWrite("test.pdf"); GrapeCity.PDF.Document doc = new GrapeCity.PDF.Document(); GrapeCity.PDF.Objects.PageObject page = doc.Pages.CreatePage(); GrapeCity.PDF.Drawing.Graphics g = page.GetGraphics(); g.DrawString("Hello", new Font("MS UI Gothic", 10), Brushes.Black, 10, 10); GrapeCity.PDF.Writer.Write(doc, strm); strm.Close();