Results 1 to 7 of 7

Thread: iTextsharp + Header-Footer.

Threaded View

  1. #1

    Thread Starter
    Fanatic Member vijy's Avatar
    Join Date
    May 2007
    Location
    India
    Posts
    548

    iTextsharp + Header-Footer.

    Is there any way to assign a image as HeaderFooter for a PDF?

    Below code will keep "Hello World" text as heade for all page with some pre-defined font(_oFont22B).

    But i am struggling to insert a image.
    Code:
    Dim header As iTextSharp.text.HeaderFooter = New iTextSharp.text.HeaderFooter(New iTextSharp.text.Phrase("Hello World", _oFont22B), False)
    header.Border = iTextSharp.text.Rectangle.NO_BORDER
    oDoc.Header = header
    Last edited by vijy; Dec 3rd, 2009 at 07:49 AM.
    Visual Studio.net 2010
    If this post is useful, rate it


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