Results 1 to 2 of 2

Thread: Checkbox in Itext 7 PDF VB

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2011
    Posts
    42

    Checkbox in Itext 7 PDF VB

    Hi

    Not sure where to post this....

    I'm tring to add a empty non-functional check box to a PDF document using Itext7. Using VS 2022 vbnet VB .
    It's driving me nutsd. I have the pdf doc working and the last thing I need is a checkbox.

    Any Ideas?

    Dazed and Confused

    Thanks

    -dan

  2. #2

    Thread Starter
    Member
    Join Date
    Aug 2011
    Posts
    42

    Re: Checkbox in Itext 7 PDF VB

    This worked. My thanks to Konstantin Makarov for providing the answer



    Imports System.IO

    Dim wdFont = PdfFontFactory.CreateFont(System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder .Fonts),"wingding.ttf"))

    Table.Add(New Text(ChrW(&HA8)).SetFont(wdFont).

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width