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

  • Home
  • SEARCH
  • 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 8866061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:41:05+00:00 2026-06-14T16:41:05+00:00

I created a .PDF file using Adobe Acrobat Pro. The file has several text

  • 0

I created a .PDF file using Adobe Acrobat Pro. The file has several text fields. Using iTextSharp, I’m able to populate all the fields and mail out the .PDF.

One thing is bugging me – some of the next will not “fit” in the textbox. In Adobe, if I type more that the allocated height, the scroll bar kicks in – this happens when font size is NOT set to auto and multi-line is allowed.

However, when I attempt to set the following properties:

//qSize is float and set to 15;
//auto size of font is not being set here.
pdfFormFields.SetFieldProperty("notification_desc", "textsize", qSize, null);

// set multiline
pdfFormFields.SetFieldProperty("notification_desc", "setfflags", PdfFormField.FF_MULTILINE, null);

//fill the field
pdfFormFields.SetField("notification_desc", complaintinfo.OWNER_DESC);

However upon compilation and after stamping, the scroll bar does not appear in the final .PDF.

I’m not sure if this is the right thing to do. I’m thinking that perhaps I should create a table and flood it with the the text but the documentation makes little or no reference to scroll bars….

  • 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-14T16:41:07+00:00Added an answer on June 14, 2026 at 4:41 pm

    When you flatten a document, you remove all interactivity. Expecting working scroll bars on a flattened form, is similar to expecting working scroll bars on printed paper. That’s why you don’t get a lot of response to your question: it’s kind of absurd.

    When you fill out a rectangle with text, all text that doesn’t fit will be omitted. That’s why some people set the font size to 0. In this case, the font size will be adapted to make the text fit. I don’t know if that’s an option for you as you clearly state that the font size must be 15 pt.

    If you can’t change the font size, you shouldn’t expect the AcroForm form field to adapt itself to the content. ISO-32000-1 is clear about that: the coordinates of a text field are fixed.

    Your only alternative is to take control over how iText should fill the field. I made an example showing how to do this in the context of my book: MovieAds.java/MovieAds.cs. In this example, I ask the field for its coordinates:

    AcroFields.FieldPosition f = form.GetFieldPositions(TEXT)[0];
    

    This object gives you the page number f.page and a Rectangle f.position. You can use these variables in combination with ColumnText to add the content exactly the way you want to (and to check if all content has been added).

    I hope you understand that:

    • it’s only normal that there are no scroll bars on a flattened form,
    • the standard way of filling out fields clips content that doesn’t fit,
    • you need to do more programming if you want a custom result.

    For more info: please consult "iText in Action – Second Edition".

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

Sidebar

Related Questions

I create a PDF file using itextsharp. It's created successfully and open with adobe
How to open the PDF file after created using iTextSharp on ASP.Net? I don't
I create a PDF file using iTextSharp and it's stored in my system desktop
A have created a pdf file from an .aspx page using the wkhtmltopdf converter.
hi guys how can i make a harizontal pdf file by using php.i created
In my case i created a pdf file using iText in java and im
I want to consume a file(pdf file created using iText library) from rest web
I'm creating a PDF file on the fly using ITextSharp and ASP.NET 1.1. My
I'm using AlivePDF to create a PDF file, then save it to the desktop.
I am using iTextSharp to create a PDF document in C#. I would like

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.