> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Brian McKeever
> Sent: Friday, March 23, 2007 5:56 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] CCITTFaxDecode support
>
> >> I notice that there is a TIFFFaxDecoder class for reading
> in compressed
> >> Tiff files. How hard would it be to get one to call the
> other? Are
> >> the algorithms identical or just similar? Is there
> anything I should
> >> know before I try to implement it myself?
>
> > GetStreamBytes() is there to decode content streams, not
> image streams.
> > You can call GetStreamBytesRaw() and apply whatever
> decoding algorithms
> > you want to it.
>
> Ok. But do you think it's as simple as calling into TIFFFaxDecoder,
> or is there more to it? I've tried a few different options (guessing
> at fillorder, which DecodeXXX method to call) but I'm not even sure it
> will work in theory. I've looked at the PDF spec, and it seems a
> little vague on this point.
It should works directy but you need to look at the params dictionary to
know if it's a g4 or g3 code. Note that apparently nobody knows how to
create correct G3/G4 code so you should expect errors even if other
viewers work correctly.
Paulo
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.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/