How to Get the data from a textbox as header of pdf(using itextpdf)

asked 2013-12-26 14:24:17 +0800

MVarun gravatar image MVarun flag of India
268 1 6

updated 2013-12-26 14:31:35 +0800

Hi there,

I am Using

  1. zk 6.5.0
  2. iTextPdf 5.2.0 (to Create PDF Documents)

here i am trying to create a pdf document with the data provided in a form with text Fields (Ex: Title of Document, Sub Title, and some Content).

i am unable to get Data from title & sub title Fields as Header in the PDF.

This is How i need...

   Title of the Document
 Sub Title of the Document



Thanks, M Varun.

delete flag offensive retag edit

1 Answer

Sort by » oldest newest most voted

answered 2014-12-07 22:01:08 +0800

Darksu gravatar image Darksu
1991 1 4

Hello MVarun,

You have to bind the components with a model, or retrieve the values of the components.

Please refer to the following document:


Then you will send the values to your pdf creation method.

Best Regards,


link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2013-12-26 14:24:17 +0800

Seen: 11 times

Last updated: Dec 07 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More