> -----Original Message-----
> From: Jianhua Jin [SMTP:[EMAIL PROTECTED]
> Sent: Thursday, June 26, 2003 14:03
> To:   Paulo Soares; [EMAIL PROTECTED]
> Subject:      Re: [iText-questions] 'same font subset name' problem
> 
> Paulo,
>  
> I need to fix this problem myself because I only work with iText 0.96
> ('validated' against our compnay standards). Could you please explain what
> exact I need to do with the source code?
> 
        In BaseFont replace with this:

            public static String createSubsetPrefix() {
                String s = "";
                for (int k = 0; k < 6; ++k)
                    s += (char)(Math.random() * 26 + 'A');
                return s + "+";
            }
>  
> I am worried about the uniqueness of the subset name. According at PDF
> spec, the pseudoUniqueTag for subset name consists of exactly six
> uppercase alphabetic characters. If I generate a large number of files,
> chances are I end up with the same 
> subset name even the name is somewhat random. Our company will generate a
> lot of files and publish them in a documentum which uses Acrobat Distiller
> to assembly large documents (this reminds me it's about donation time
> now). Is it possible to completely prevent this subset collision from
> happening?
> 
        No but you have 1 in 308915776 chances of collision.
>  
> Acrobat is really dumb on this issue. It should be able to merge the
> subsets regardless of the subset name. 
>  
        I'm sure there are tools that take care of it. I'm doing a new
PdfCopy for splitting and concatenating documents and I'll certainly include
a renaming mechanism.

        Best Regards,
        Paulo Soares


> Paulo Soares <[EMAIL PROTECTED]> wrote:
> 
>       It's an iText bug that should have generated the subset prefix in a
> random
>       way. Of course that it wouldn't hurt if Acrobat was not that brain
> dead when
>       merging fonts. I'll have a new version fixing this tomorrow.
>       
>       Best Regards,
>       Paulo Soares
>       ----- Original Message -----
>       From: "Jianhua Jin" 
>       To: 
>       Sent: Wednesday, June 25, 2003 18:52
>       Subject: [iText-questions] 'same font subset name' problem
>       
>       
>       > I was combining two iText-pdf files into one in Adobe Acrobat
> Writer
>       > (through menubar Document-Insert Pages), I got the error message
> 'These
>       > documents contain subset fonts that have the same name and connot
> be
>       > merged'.
>       >
>       > If I do need to embed the font with the file, what options I have
> to
>       > prevent this problem?
>       >
>       > Thanks.
>       >
>       >
>       >
>       >
>       > _____
>       >
>       > Do you Yahoo!?
>       > SBC Yahoo! DSL
>       > 
>       > om/sbc/> - Now only $29.95 per month!
>       >
>       
>       
> 
>   _____  
> 
> Do you Yahoo!?
> SBC Yahoo! DSL
> <http://pa.yahoo.com/*http://rd.yahoo.com/evt=1207/*http://promo.yahoo.com
> /sbc/> - Now only $29.95 per month!


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to