有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

itextsharp:java到vb。网

我正在尝试更改pdftable上的字体,我在java中有这个提示,但需要一些帮助才能将其放到vb中。网

 PdfPTable table = new PdfPTable(3);
    table.AddCell("Cell 1");
    PdfPCell cell = new PdfPCell(new Phrase("Cell 2", new Font(Font.HELVETICA, 8f, Font.NORMAL, Color.YELLOW)));

共 (1) 个答案

  1. # 1 楼答案

    Imports iTextSharp.text
    Imports iTextSharp.text.pdf
    
    Module Module1
    
        Sub Main()
    
            Dim table As New PdfPTable(3)
            table.AddCell("Cell 1")
            Dim f As New Font(Font.HELVETICA, 8.0F, Font.NORMAL, Color.YELLOW)
            Dim ph As New Phrase("Cell 2", f)
            Dim cell As New PdfPCell(ph)
    
        End Sub
    
    End Module