Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8490609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:10:36+00:00 2026-06-10T22:10:36+00:00

I have a PDF template (designed using Adobe Livecycle designer), that has a subform

  • 0

I have a PDF template (designed using Adobe Livecycle designer), that has a subform and a textfield. The properties of those two objects is set to float. And the height of those objects is set to Autofit. All the enclosing parents heights of these objects were set to AutoFit.

My intention here is to increase the textfield height depending on the text content we enter into the textfield.

When I preview the template from the Adobe designer, the generated preview PDF, displays the textfield as floating (based on the test data I entered).

For our application purposes, we use iText.

Basically, we load these predefined templates, and fill in the data into those fields using iText API.

The current version of iText we use is iText 5.1.3

...

Document document = new Document();
document.open();
PdfReader reader = new PdfReader(<inputTemplate>);
ByteArrayOutputStream aStream2 = new ByteArrayOutputStream();
PdfStamper stamper2 = new PdfStamper(reader, aStream2);
AcroFields form = stamper2.getAcroFields();
form.setField("<fieldname>", "<fieldvalue>");

... 

and so on.

The PDF thus generated displays only text that fits into the size of the textbox, basically ignoring to overflow.

Hopefully, I have given enough description of the problem I am encountering. I want to dynamically embed the content and make rest of the PDF floatable. I wonder how else I can acheive this using iText?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T22:10:38+00:00Added an answer on June 10, 2026 at 10:10 pm

    You’re mixing different things.

    There are two types of form technology in PDF:
    – AcroForm technology: the form is described using PDF syntax, such as PDF dictionaries to describe a field using key/value pairs, and such as PDF arrays to store the coordinates of a field, and so on. If you use AcroForm technology, your requirement can’t be met. You’re using the wrong technology. Typically these forms are created using Adobe Acrobat, LibreOffice,…
    – the XML Forms Architecture (XFA): the form is described using XML. The PDF acts as a container for the XML. Typically, these forms are created using Adobe LiveCycle Designer.

    Sometimes a form uses both technologies (hybrid forms) in which case the form is defined using PDF syntax as well as XML syntax.

    The only way to achieve what you want, is to use pure, dynamix XFA forms. In that case, you can’t use the setField() method. Instead, you either have to use fillXfaForm() as is done in this example: http://itextpdf.com/examples/iia.php?id=165
    Or you have to use XFA Worker for which you can find a demo here: http://demo.itextsupport.com/xfademo/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My team has a template (XDP) that we've created with the Adobe LiveCycle designer.
I'm using FDF to populate a PDF template. On my PDF template, I have
Let's say I have two PDF templates created with Adobe Acrobat, which are both
I have a PDF file that functions as a template containing only textboxes. Is
i'm writing an application in objective-c (using cocoa). i have a PDF template, i
I have a template that can be rendered as either html or pdf. The
I have a template that has some Javascript used to generate graphs in the
I have an Excel template that I use to create PDF specification sheets for
I'm writing a program that fills in a pdf template (using fpdf) then captures
I have an existing PDF template that I have to edit. I know pretty

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.