Thanks Leonard.  Since having editable text is no longer allowable, I'm 
amending the pdf templates instead.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: 26 February 2008 20:26
To: [email protected]
Subject: iText-questions Digest, Vol 21, Issue 79

Send iText-questions mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/itext-questions
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific than "Re: 
Contents of iText-questions digest..."


Today's Topics:

   1. Re: Truncation of text fields in iTextSharp PDF   vs FDF
      (Leonard Rosenthol)
   2. Need help Flattening an XFA PDF (Samuel B. Quiring)
   3. acroform and embedded fonts (Erik Rise)
   4. Re: acroform and embedded fonts (Paulo Soares)
   5. Re: RTF Add Image & Line Break (Mark Hall)


----------------------------------------------------------------------

Message: 1
Date: Tue, 26 Feb 2008 06:57:44 -0500
From: Leonard Rosenthol <[EMAIL PROTECTED]>
Subject: Re: [iText-questions] Truncation of text fields in iTextSharp
        PDF     vs FDF
To: Post all your questions about iText here
        <[email protected]>
Content-Type: text/plain; charset="us-ascii"

So the "+" works in fields  because the field is actually LIVE
(editable) TEXT, but because you are flattening, you lose that option.  If you 
didn't flatten, then the "+" would appear just as it did in the FDF days...

Leonard

On Feb 26, 2008, at 3:37 AM, [EMAIL PROTECTED] wrote:

> Hi Leonard
>
> I'm flattening the form, not the individual field (if this is 
> possible).  (PDF should be unamendable since it forms part of a 
> contract.).  Here's my code:
>
> PdfReader reader = new PdfReader(new RandomAccessFileOrArray 
> (documentPath), null); MemoryStream ms = new MemoryStream(); 
> PdfStamper stamper = new PdfStamper(reader, ms); AcroFields fields = 
> stamper.AcroFields;
>
> foreach (Mapping mapping in mappingList) {
>     fields.SetField(mapping.Fieldname, mapping.Value); }
>
> stamper.FormFlattening = true;
> stamper.Close();..........
>
>
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 2
Date: Tue, 26 Feb 2008 07:01:14 -0800
From: "Samuel B. Quiring" <[EMAIL PROTECTED]>
Subject: [iText-questions] Need help Flattening an XFA PDF
To: "'Post all your questions about iText here'"
        <[email protected]>
Content-Type: text/plain; charset="us-ascii"

I need help flattening a PDF file where isXfaPresent() is true.  I am trying to 
use the following routine.  It works fine for older PDF forms.
When isXfaPresent() is true this routine creates the new file without error, 
but Adobe Reader claims I need a newer version of Adobe Reader to read the 
result.
 
function void flattener(String filename) {
    PdfReader reader = new PdfReader(filename);
    FileOutputStream pdfOutput;
    
    String outputFile = filename.replace(".pdf", "_flat.pdf");
    pdfOutput = new FileOutputStream(outputFile);
    
    PdfStamper stamper = new PdfStamper(reader, pdfOutput);
    stamper.setFormFlattening(true);
    stamper.close();
    pdfOutput.close();
    reader.close();
}
 
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 3
Date: Tue, 26 Feb 2008 14:46:37 +0100
From: "Erik Rise" <[EMAIL PROTECTED]>
Subject: [iText-questions] acroform and embedded fonts
To: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

I'm using itextsharp to:
1. Fill formfields with text
2. Flatten the form

I noticed that, if the formfield uses a truetype (eg comic sans) the font 
(subset) used with the formfield is embedded.
If the font used is type1 (helvetica), its not embedded.

I would like all fonts to be embedded in the final PDF. Is it possible?

Regards,
Erik
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 4
Date: Tue, 26 Feb 2008 16:30:43 -0000
From: "Paulo Soares" <[EMAIL PROTECTED]>
Subject: Re: [iText-questions] acroform and embedded fonts
To: "Post all your questions about iText here"
        <[email protected]>
Content-Type: text/plain;       charset="US-ASCII"

You can embedd the font Helvetica if you buy it from Adobe.

Paulo

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Erik Rise
> Sent: Tuesday, February 26, 2008 1:47 PM
> To: [email protected]
> Subject: [iText-questions] acroform and embedded fonts
> 
> Hi,
>  
> I'm using itextsharp to:
> 1. Fill formfields with text
> 2. Flatten the form
>  
> I noticed that, if the formfield uses a truetype (eg comic
> sans) the font (subset) used with the formfield is embedded.
> If the font used is type1 (helvetica), its not embedded.
>  
> I would like all fonts to be embedded in the final PDF. Is it 
> possible?
>  
> Regards,
> Erik
> 


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.




------------------------------

Message: 5
Date: Tue, 26 Feb 2008 20:25:02 +0000
From: Mark Hall <[EMAIL PROTECTED]>
Subject: Re: [iText-questions] RTF Add Image & Line Break
To: "'Post all your questions about iText here'"
        <[email protected]>
Content-Type: text/plain; charset="utf-8"

Hi,

yes you are right. Sorry, my answer was incorrect. You need to place the Image 
in a Paragraph, not a Chunk. It's been some time since I've used this 
functionality. I've tested it now and  Paragraph par = new Paragraph();  
par.add(image);  doc.add(par); works.

Mark

On Tuesday 26 February 2008, Anil Kumar wrote:
> Hi Mark
>
> Thanks for the help, I tried it, but wrapping it in chunk made no 
> difference. Here is the code I am using and sample output.
>
> Image image = Image.getInstance(imageData); int percent = (int)(100 * 
> (PageSize.A4.width()-100) / (image.width())); percent = 
> Math.min(percent, 100); image.scalePercent(percent, percent); Document 
> document = (Document) documentObj; document.add(new Chunk(image,0,0));
>
> Thanks
> Anil
>
> -----Original Message-----
> From: Mark Hall [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 26 February 2008 8:39 PM
> To: Post all your questions about iText here
> Cc: Anil Kumar
> Subject: Re: [iText-questions] RTF Add Image & Line Break
>
> Hi,
>
> place the Image in a Chunk, that will display the image in-line.
>
> Mark
>
> On 26 Feb 2008, at 06:22, Anil Kumar wrote:
> > There is one automatic line-break / CR gets added after image, is 
> > there anyway to stop this happening.
> >
> > I am using this code.
> >
> > Image image = Image.getInstance(imageData); int percent = (int)(100 
> > * (PageSize.A4.width()-100) / image.width()); 
> > mage.scalePercent(percent, percent); document.add(image);
> >
> > Thanks for the help.
> >
> >
> >
> > --------------------------------------------------------------------
> > ----- This SF.net email is sponsored by: Microsoft Defy all 
> > challenges. Microsoft(R) Visual Studio 2008.
>
> 
>http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/________________
>____
>_ __________________________
>
> > iText-questions mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > Buy the iText book: http://itext.ugent.be/itext-in-action/



-- 
Q:      Why haven't you graduated yet?
A:      Well, Dad, I could have finished years ago, but I wanted
        my dissertation to rhyme.

My GPG public key is available at:
http://www.room3b.eu/data_box/download?path=%2Fsecurity%2FMarkHall.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: This is a digitally signed message part.

------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) 
Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

------------------------------

_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions


End of iText-questions Digest, Vol 21, Issue 79
***********************************************



.
--------------------------------------------------------------------------------------------------------------------

HBOS plc, Registered in Scotland No. SC218813. Registered Office: The Mound, 
Edinburgh EH1 1YZ. HBOS plc is a holding company, subsidiaries of which are 
authorised and regulated by the Financial Services Authority.
==============================================================================


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to