> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Lari Hotari
> Sent: Wednesday, March 12, 2008 9:02 AM
> To: itext-questions@lists.sourceforge.net
> Subject: Re: [iText-questions] contribution: 
> FontReplacingPdfSmartCopy: duplicate TTF font subset merging 
> and replacement (was: How to remove embedded fonts from a pdf 
> document)
> 
> 
> I think that the usecase of replacing & merging fonts is 
> pretty usual. 
>

Not really.
 
> Anyone who merges a lot of small pdfs will need this. 
> Therefore it would
> help also others if this feature would be included in the main iText
> distribution.
>

Yes.
 
> Paulo, What are the criterias of the code so that it could be added to
> iText? You said that the scope is too narrow. Aren't most iText users
> handling pdfs with truetype fonts (or document fonts) using 
> single byte
> encoding (winansi)? Is it possible that the first version 
> only supports ttf
> + winansi encoding?
>

Yes.
 
> Anyways, Could we do some kind of requirements analysis for 
> the full scope? 
> 
> required features:
> - support for all font types: T1, T3, TTF, TTF unicode, CJK, 
> document fonts

T1 and TTF.

> - support for all font encodings (winansi, macroman, 
> macexpert, unicode,
> identity)

Just single byte.

> - support for merging differences arrays 
>     - this means that the pagestreams have to be re-written 
> so that one
> merged differences array can be used

No. You can have the same font with different differences array. iText
can't (easily) do it.

>          - is there code available in iText for parsing and 
> modifying the
> pagestream?

PdfContentParser.

>               - support rewriting string in text-showing PDF 
> operators (' ,
> ", Tf)

See above.

>          - rewriting acroform fields?

If needed.

> - restriction: the original font file has to be available in 
> order to do
> font merging (no need to merge font glyphs in that case).
>

That font or other if you are doing font replacement.

The bottom line is that I'll include your code in iText and hope that it
will be improved later, by you or someone else.

Paulo
 
> 
> Lari
> 
> 
> Paulo Soares wrote:
> > 
> > Classes in the same iText package is not a patch to iText. 
> Licensewise
> > as long as you don't change iText you don't have to tell 
> anybody what
> > you are doing even if your classes are in the com.lowagie 
> package. About
> > your changes, as I said, the scope is too narrow (supporting only
> > truetype, no difference array, etc.). Without going into 
> Unicode fonts,
> > it's possible to extend you code without too much work to 
> support a lot
> > more single byte font features.
> > 
> > Paulo 
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/How-to-remove-embedded-fonts-from-a-pdf-
> document-tp14033717p16000144.html
> Sent from the iText - General mailing list archive at Nabble.com.
> 
> 
> --------------------------------------------------------------
> -----------
> 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
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
> 


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.


-------------------------------------------------------------------------
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
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to