[iText-questions] how to invert color of tiff using itext

2009-05-22 Thread marlonbrando
Hello to all...when i convert tiff2pdf i found a little problem, for some particular tiff (wich have COMP_FAX_G3_2D compression) the result pdf have color inverted (black to white and white to black). Is there a way using itext to invert the colors of the image? my code is:

Re: [iText-questions] tiff2pdf byte Array problem

2008-03-18 Thread marlonbrando
Ok, ByteArrayOutputStream baos =new ByteArrayOutputStream(); Document document = new Document(); PdfWriter writer = PdfWriter.getInstance(document,baos); try { int pages = 0; document.open(); PdfContentByte cb = writer.getDirectContent();

[iText-questions] tiff2pdf byte Array problem

2008-03-17 Thread marlonbrando
hello to alli have write a little application that convert a multipage tiff to a multipage pdf... OutputStream fout =new FileOutputStream(result.pdf); Document document = new Document(); PdfWriter writer = PdfWriter.getInstance(document,fout); try {