単純な直線

単純な直線のみのPDFファイルを出力するサンプルです。

'以下のImportsを追加する。
'Imports PdfGeneratorNetFree
'Imports PdfGeneratorNetFree.PdfContentItem
'Imports PdfGeneratorNetFree.PgnStyle

Dim doc As New PdfDocument
doc.AddPage("page1")
Dim content() As AbstractPdfContentItem = {New Line(0, 100, 200, 300)}
doc.AddContent("page1", content)
File.WriteAllBytes("SimpleLineSampleVb.pdf", doc.GetBinary())

実行結果:SimpleLineSampleVb.pdf

※ソースコードの色付けにgoogle-code-prettifyを使用しています。
inserted by FC2 system