I don't know where Acrobat stands now but with earlier versions it would get 
confused with different subset fonts with the same prefix. It may be wiser to 
call PdfReader.shuffleSubsetNames() just in case.

Paulo

________________________________________
From: Carsten Hammer [carsten.ham...@t-online.de]
Sent: Tuesday, November 10, 2009 11:42 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] is a pdf file coming out of pdf file concatination 
always valid?

Hi,
while investigating some problems with concatenation of pdf files the
question came up if it is neccessary to recreate the
"font-subset-prefix" to prevent a name clash. I do not see a obvious
problem not doing this in the pdf reference manual. Acrobat does not
seem to care. If you run the attached Java class two nearly identical
pdf files will be generated "StandardType1Fonts1.pdf" and
"StandardType1Fonts2.pdf". In another step these two files are joined in
another file "out.pdf". There seems to be no prefix processing.
PDFSmartcopy throws out one copy of the font. The last file "out2.pdf"
is created by copying "StandardType1Fonts1.pdf" twice into the same
file. Because of using the same input file twice the prefix is always
the same. There is no big difference - Acrobat shows only one font
because of the same name.

Are there any known problems using itext's PDFCopy/PDFSmartCopy to merge
pdf files?

Best regards,
Carsten

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.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to