You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Da...@KeyBank.com on 2004/06/15 16:57:59 UTC

font embedding and encoding, ANSI vs CID





Hi,

I am using FOP 0.20.5 to create PDF's and have some questions/problems with
my approach towards font embedding and encoding. I need to embed the fonts
into the PDF to ensure a consistent rendering across various systems
because they are legal docs distributed to the public via the web.

I was originally using the default CID encoding, but the FOP FAQ describes
some problems with the CID encoding, and worse than those, when I print it
using adobe 4.0 it is completely mangled. ( It looks like the fonts are
scrambled, many different chars, sizes, etc ).

I am using iText to post process the document to encrypt it and prevent
editing, etc, perhaps it is the combination of CID and encryption, I'm not
really sure. At any rate, I need to keep the encryption.

When I use the -enc ansi option when creating my font metrics file
everything looks and prints great, but the entire font(s) end up in the
file, making even a 1 page document 742KB. (Obviously it depends on the
number/size of the fonts in the doc).

I seem to be in a pickle. I need to support Adobe 4.0, encryption, and font
embedding, but don't want to pay the price of extremely large files.

Is it possible to get FOP to only embed the font partially even if I use
ansi encoding? Does anyone have any recommendations on how to deal with
this scenario?

I don't know much about the CID vs ANSI encoding, which do most people use,
and is there a recommendation on when to use what? I have read the FOP
pages, and looked through the email archives, but have not yet been able to
find much guidance here.

Any help is greatly appreciated!

Thanks,
dave













<center><font size=2><hr>
This communication may contain privileged and/or confidential information.
It is intended solely for the use of the addressee. If you are not the
intended recipient, you are strictly prohibited from disclosing, copying,
distributing or using any of this information. If you received this
communication in error, please contact the sender immediately and destroy
the material in its entirety, whether electronic or hard copy.   This
communication may contain nonpublic personal information about consumers
subject to the restrictions of the Gramm-Leach-Bliley Act. You may not
directly or indirectly reuse or redisclose such information for any purpose
other than to provide the services for which you are receiving the
information.
<br>127 Public Square, Cleveland, OH 44114<hr>If you prefer not to receive
future e-mail offers for products or services from Key<br> <A
HREF=mailto:DNERequests@Key.com?subject=No%20Promotional%20E-mails>Click
Here</A>
<br> or send an e-mail to <A
HREF=mailto:DNERequests@Key.com?subject=No%20Promotional%20E-mails>DNERequests@Key.com</A>
 with 'No Promotional E-mails' in the SUBJECT line.
</font><hr></center>

Re: font embedding and encoding, ANSI vs CID

Posted by Clay Leeds <cl...@medata.com>.
On Jun 15, 2004, at 7:57 AM, Dave_S_White@KeyBank.com wrote:

SNIP'd

>  I am using iText to post process the document to encrypt it and 
> prevent editing, etc, perhaps it is the combination of CID and 
> encryption, I'm not really sure. At any rate, I need to keep the 
> encryption.

SNIP'd

>  Any help is greatly appreciated!
>
>  Thanks,
>  dave

Have you tried using FOP's encryption functionality[1]? I hear it's 
nice (although I haven't used it yet...). BTW, it would be nice to get 
feedback how it compares to using iText for the same task. Comparisons 
would be appreciated based on: speed; functionality; implementation; 
ease of use; resulting file size: and anything else you can think of!

Web Maestro Clay

[1]
http://xml.apache.org/fop/pdfencryption.html

Web Maestro Clay


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: font embedding and encoding, ANSI vs CID

Posted by SE...@dstsystems.com.



We use only ANSI because the CID takes much longer to render.

Scott


                                                                           
             Dave_S_White@KeyB                                             
             ank.com                                                       
                                                                        To 
             06/15/2004 09:57          fop-user@xml.apache.org             
             AM                                                         cc 
                                                                           
                                                                   Subject 
             Please respond to         font embedding and encoding, ANSI   
             fop-user@xml.apac         vs CID                              
                  he.org                                                   
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Hi,

I am using FOP 0.20.5 to create PDF's and have some questions/problems with
my approach towards font embedding and encoding. I need to embed the fonts
into the PDF to ensure a consistent rendering across various systems
because they are legal docs distributed to the public via the web.

I was originally using the default CID encoding, but the FOP FAQ describes
some problems with the CID encoding, and worse than those, when I print it
using adobe 4.0 it is completely mangled. ( It looks like the fonts are
scrambled, many different chars, sizes, etc ).

I am using iText to post process the document to encrypt it and prevent
editing, etc, perhaps it is the combination of CID and encryption, I'm not
really sure. At any rate, I need to keep the encryption.

When I use the -enc ansi option when creating my font metrics file
everything looks and prints great, but the entire font(s) end up in the
file, making even a 1 page document 742KB. (Obviously it depends on the
number/size of the fonts in the doc).

I seem to be in a pickle. I need to support Adobe 4.0, encryption, and font
embedding, but don't want to pay the price of extremely large files.

Is it possible to get FOP to only embed the font partially even if I use
ansi encoding? Does anyone have any recommendations on how to deal with
this scenario?

I don't know much about the CID vs ANSI encoding, which do most people use,
and is there a recommendation on when to use what? I have read the FOP
pages, and looked through the email archives, but have not yet been able to
find much guidance here.

Any help is greatly appreciated!

Thanks,
dave















This communication may contain privileged and/or confidential information.
  It is intended solely for the use of the addressee. If you are not the
 intended recipient, you are strictly prohibited from disclosing, copying,
    distributing or using any of this information. If you received this
 communication in error, please contact the sender immediately and destroy
    the material in its entirety, whether electronic or hard copy. This
 communication may contain nonpublic personal information about consumers
  subject to the restrictions of the Gramm-Leach-Bliley Act. You may not
directly or indirectly reuse or redisclose such information for any purpose
    other than to provide the services for which you are receiving the
                               information.
 127 Public Square, Cleveland, OH 44114If you prefer not to receive future
              e-mail offers for products or services from Key
                                Click Here
 or send an e-mail to DNERequests@Key.com with 'No Promotional E-mails' in
                             the SUBJECT line.




---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org