One potentially flaky option would be to mess with the Default
Appearance string (/DA).

It won't let you do kerning, but you can set the character and word
spacing.  Whether or not they'll be OBEYED is the flaky part.  

Our form supported "comb" fields before Acrobat added a comb flag for
same.  We achived this by messing with the character and word spacing,
drawing a funky backround into the page, and limiting the field to a
certain length.  round Acrobat 7, this stopped working for more than a
single word.  I think.  Sorry, it's been a while.  This was (none too
coincidentally) around the time we started using the "comb" flag
instead, and dropped support for older versions.

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

> -----Original Message-----
> From: 1T3XT BVBA [mailto:[email protected]] 
> Sent: Monday, February 14, 2011 7:46 AM
> To: [email protected]
> Subject: Re: [iText-questions] PDFReader getPageContent() 
> method returning weird escape codes
> 
> Op 14/02/2011 16:36, Wyatt Biker schreef:
> > So far all I understand is that I would have to get some 
> information 
> > from the field (using which methods?),
> 
> getFieldPositions(), see page 263-264.
> 
> > flatten it (which methods?),
> 
> One possible way to do it, is the addParagraph method in listing 8.17.
> This method is probably more sofisticated than you need, and 
> it doesn't allow to use kerning.
> 
> > then use showTextAlignedKerned() . But where do I actually give the 
> > kern values?
> 
> Use the coordinates obtained with getFieldPositions as 
> parameters for showTextAlignedKerned().
> The kerning values are retrieved automatically from the font by iText.
> 
> --------------------------------------------------------------
> ----------------
> The ultimate all-in-one performance toolkit: Intel(R) 
> Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> 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
> 
> 

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
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