Flattening
only works with appearances and your file only has the fields filled and no
appearances.
Paulo,
In the sample code I sent
to you, if I comment out the following lines in method mergePDFAndFDF(…)
//FdfReader
fdfReader = new FdfReader(fdf);
//AcroFields
form = stamp.getAcroFields();
//orm.setFields(fdfReader);
That means I don’t
need to fill the fields with data from FDF, but I still want to flatten the
fields. (in case I need to concat
multiple PDF files which have same field name on them)
The fields all disappear
in the output file.
What is correct way to
flatten the fields without merging FDF data?
Thanks.
Dan
-----Original Message-----
From: Paulo Soares
[mailto:[EMAIL PROTECTED]
Sent: Friday, December 03, 2004
5:40 AM
To: Dan Chen; [EMAIL PROTECTED]
Subject: RE: [iText-questions]
Bold font changed to plain font after flattening
It's a semi-bug. If you take your pdf and do a "save as"
in Acrobat then the field merge and flattening will work correctly. In any case
I've changed iText to support this kind of PDF. If you have urgency I can send
you the changed source file.
Best Regards,
Paulo Soares
From: Dan Chen
[mailto:[EMAIL PROTECTED]
Sent: Thursday, December 02, 2004
7:43 PM
To: Paulo Soares; [EMAIL PROTECTED]
Subject: RE: [iText-questions]
Bold font changed to plain font after flattening
Paulo,
Thanks.
Attached are the zipped PDF and FDF files (don’t unzip it) and the java
code. Comment out stamp.setFormFlattening(true) to see the difference.
Dan
-----Original Message-----
From: Paulo Soares
[mailto:[EMAIL PROTECTED]
Sent: Thursday, December 02, 2004
9:39 AM
To: Dan Chen;
[EMAIL PROTECTED]
Subject: RE: [iText-questions]
Bold font changed to plain font after flattening
I need the the pdf and the code so that I can reproduce the
problem.
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dan Chen
Sent: Thursday, December 02, 2004
3:15 PM
To:
[EMAIL PROTECTED]
Subject: [iText-questions] Bold
font changed to plain font after flattening
Hi,
I have a form field as below:
17 0 obj
<</Type/Annot/AP<</N
8 0 R>>
/F 4
/T(patient.name.fn)
/BS<</W 0>>
/V(Smith)
/Ff 1
/Rect[56.692 660.214 93.062
648.214]
/Subtype/Widget
/DA(/HeBo 10.0 Tf 0 g\n)
/FT/Tx>>
endobj
The name was displayed as bold font before flattening.
After flattening, the name was changed to plain font.
Does anyone know why? If I want to keep the bold font
after flattening, what I need to do?
Thanks in advance
Dan