I see two options, neither of which are particularly viable.

1) Custom rendering code in iText.  You pass extra layout info (new dict
key or whatever) to some custom code you write in iText to lay things
out the way you want.

Doesn't work because:  The first time someone changes your field value
in reader/foxit/whatever, they're layout code runs, and yours gets
pitched out the window.

2) Multiple text fields with a text value that is chunked into the
various fields within field format scripts.

Doesn't work because: You can't do text layout in JavaScript.  You have
no access to font width data.

EXCEPTION: If you use a monospace font, this is trivially easy.  The
first N characters are written to field A, the next O characters are
displayed in B, and so on.

People (other than programmers doing text layout and similar fringe
types) dislike monospace fonts, so that may not fly, at which point
you're back to "doesn't work".


Bottom Line:  Text fields aren't paragraphs that can be flowed around
some Other Thing.  You've strapped a steering wheel to a horse and can't
figure out where to put your car key: It just doesn't work like that.
You need another approach.

--Mark Storer
  Senior Software Engineer
  Cardiff.com
 
import legalese.Disclaimer;
Disclaimer<Cardiff> DisCard = null;
 
 

> -----Original Message-----
> From: Chris Ulbright [mailto:[email protected]] 
> Sent: Tuesday, November 16, 2010 10:17 AM
> To: [email protected]
> Subject: [iText-questions] Non-rectangular multi-line Text Field?
> 
> Hello,
> 
> I am interested in creating a TextField that has multiple 
> lines that aren't necessarily the same length. Is this 
> something that can be done?
> 
> Thanks for any input on this.
> 
> -Chris Ulbright
> ________________________________
> Confidentiality Notice: This communication (including any 
> attachments) may contain privileged or confidential 
> information intended for a specific individual and purpose, 
> and is protected by law. If you are not the intended 
> recipient, you should delete this communication and/or shred 
> the materials and any attachments and are hereby notified 
> that any disclosure, copying, or distribution of this 
> communication, or the taking of any action based on it, is 
> strictly prohibited.
> 
> Please consider the environment before printing this email.
> 
> --------------------------------------------------------------
> ----------------
> Beautiful is writing same markup. Internet Explorer 9 
> supports standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, 
> and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time 
> creating great experiences on the web. Be a part of the beta 
> today http://p.sf.net/sfu/msIE9-sfdev2dev
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Many questions posted to this list can (and will) be answered 
> with a reference to the iText book: 
> http://www.itextpdf.com/book/ Please check the keywords list 
> before you ask for examples: http://itextpdf.com/themes/keywords.php
> 
> 

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to