Hi Folks,

i'm struggling with the following problem:

we use itext for filling out AcroForm-Fields in Designed Templates  
targeting to Offset/Digital-Print.
Therefore our preferred Output-Format is PDF-X/200x. PDF-X requires  
all Fonts to be embedded.

we instructed our Designer to Save his PDF-Templates as PDF-X/2003 in  
InDesign and then
add FormFields with Acrobat Professional and save the resulting form.
our application uses the PDFStamper Class to fill out the form, and  
flattens the output.

due to the fact, that the fonts used, may not be embedded due to  
license restrictions in a
standard pdf and pdf/x requires a pdf without AcroForms it seems, that  
the fonts that were
exported in indesign won't make it into the PDF-Template and are  
missing in the resulting
file. Or at least - some glyphs are missing as far as i can tell.

in the resulting pdf for example, field values with german umlauts are  
not displayed (there is
an empty space where the character should be rendered. i tried adding  
SubstitutionFonts
to the AcroFields-Instance before filling out the forms - but that  
only causes the space to
be displayed - before there was not even a space for the missing  
character)

is there an easy way to directly embed a complete font into the pdf  
while stamping it (or in
a later processing step ?) .. i found some work done  
(FontReplacingPdfSmartCopy) that requires
access to internal objects/methods of iText - i'ld like to avoid  
adding stuff to itext if possible.

What information is required to dig into this problem deeper??

the actual stamping is basically:
- open template in reader
- create stamper-instance
- set substitution fonts (ArrayList of BaseFonts loaded from Disk)
- iterate over form-fields and SetField with value from app
- set FormFlattening
- close stamper

the properties of resulting pdfs say that there is a subset of the  
font embedded (Type0) and a
Type1 that is not embedded <- this is what i probably want to change ;-)

any hints are greatly appreciated!!

thanks in advance

yours Ulrich Eck


-------------------------------------------------------------------------
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

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to