Re: [iText-questions] tiff2pdf - pdf image does not match tiff

2008-12-29 Thread Xavier Le Vourch
Ravi Desai wrote: > Hi, > > We are trying to use iText Library for converting Fax TIFF images to > PDF. We are observing that with the following code snippet, the output > PDF page size matches the input TIFF page size but the image within the > PDF is shrunk by approx 1/4inch when compared to the

[iText-questions] tiff2pdf - pdf image does not match tiff

2008-12-29 Thread Ravi Desai
Hi, We are trying to use iText Library for converting Fax TIFF images to PDF. We are observing that with the following code snippet, the output PDF page size matches the input TIFF page size but the image within the PDF is shrunk by approx 1/4inch when compared to the input TIFF File. For

Re: [iText-questions] tiff2pdf byte Array problem

2008-03-18 Thread marlonbrando
Thank You!! your solution work fine! Fabrizio Accatino wrote: > > Hello, > > I'm not sure but try to close Document and PdfWrite before reading > content from "baos". > > > Fabrizio > > - > This SF.net email is spo

Re: [iText-questions] tiff2pdf byte Array problem

2008-03-18 Thread 1T3XT info
Fabrizio Accatino wrote: > Hello, > > I'm not sure but try to close Document and PdfWrite before reading > content from "baos". That's correct. Upon document.close() the Cross-Reference table is written to the byte array. Without the Cross-Reference table the PDF is not valid. -- This answe

Re: [iText-questions] tiff2pdf byte Array problem

2008-03-18 Thread Fabrizio Accatino
Hello, I'm not sure but try to close Document and PdfWrite before reading content from "baos". Fabrizio - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdm

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(); RandomA

Re: [iText-questions] tiff2pdf byte Array problem

2008-03-17 Thread Fabrizio Accatino
Post the source code where you use ByteArrayOutputStream. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/_

Re: [iText-questions] tiff2pdf byte Array problem

2008-03-17 Thread Paulo Soares
7, 2008 5:04 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] tiff2pdf byte Array problem > > > hello to alli have write a little application that > convert a multipage > tiff to a multipage pdf... > > OutputStream fout =new Fil

[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 {

Re: [iText-questions] tiff2pdf problem

2007-04-30 Thread Paulo Soares
Post a link to some of the failing tiff files so that the problem can be reproduced. Paulo - Original Message - From: "Vikram Vijayraghavan" <[EMAIL PROTECTED]> To: Sent: Monday, April 30, 2007 8:33 PM Subject: [iText-questions] tiff2pdf problem > Hi, > >

[iText-questions] tiff2pdf problem

2007-04-30 Thread Vikram Vijayraghavan
Hi, We have some tiff files which we convert to a pdf using the PhotoAlbum feature in iText 2.0.2 on a Windows XP box. The resultant pdf opens fine with Adobe Acrobat Reader . However when it is opened with either Adobe Acrobat or Adobe Distiller (various versions) and some pages are deleted man

Re: [iText-questions] Tiff2Pdf

2007-03-09 Thread beppecosta
Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On >> Behalf Of beppecosta >> Sent: Friday, March 09, 2007 2:33 PM >> To: itext-questions@lists.sourceforge.net >> Subject: Re: [iText-questions] Tiff2Pdf >> >&

Re: [iText-questions] Tiff2Pdf

2007-03-09 Thread Paulo Soares
f beppecosta > Sent: Friday, March 09, 2007 2:33 PM > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] Tiff2Pdf > > > I could get the DateTime TAG with > > TIFFField dt = dir.getField(306) > > but I would like to code > > TIFFFiel

Re: [iText-questions] Tiff2Pdf

2007-03-09 Thread beppecosta
- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On >> Behalf Of beppecosta >> Sent: Friday, March 09, 2007 2:08 PM >> To: itext-questions@lists.sourceforge.net >> Subject: Re: [iText-questions] Tiff2Pdf >> >> >> Paulo, >

Re: [iText-questions] Tiff2Pdf

2007-03-09 Thread Paulo Soares
What is the question? Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of beppecosta > Sent: Friday, March 09, 2007 2:08 PM > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] Tiff2Pdf > >

Re: [iText-questions] Tiff2Pdf

2007-03-09 Thread beppecosta
9, 2007 11:34 AM >> To: itext-questions@lists.sourceforge.net >> Subject: [iText-questions] Tiff2Pdf >> >> >> I've already posted on this subject but nobody answered >> because probably my >> question was not clear enough. >> >> I'm using t

Re: [iText-questions] Tiff2Pdf

2007-03-09 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of beppecosta > Sent: Friday, March 09, 2007 11:34 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Tiff2Pdf > > > I've alread

[iText-questions] Tiff2Pdf

2007-03-09 Thread beppecosta
I've already posted on this subject but nobody answered because probably my question was not clear enough. I'm using tiff2pdf to create pdf from scanned tiff images. Imagescaling, rotation and positioning work fine and the final pdf is perfect. However I would like to timestamp it at creation tim

[iText-questions] Tiff2Pdf

2007-03-05 Thread beppecosta
During tiff to pdf conversion is it possible to get tiff tags, like for example the DateTime Tag (Code 306 (hex 0x0132)), Software Tag, etc ? Thanks. -- View this message in context: http://www.nabble.com/Tiff2Pdf-tf3347760.html#a9308406 Sent from the iText - General mailing list archive at Na

Re: [iText-questions] tiff2pdf with jbig2

2007-01-23 Thread beppecosta
Hi Paulo, yesterday the unreadable pdf had this: 2 0 obj < -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of beppecosta > Sent: Monday, January 22, 2007 4:56 PM > To: itext-questions@lists.sourceforge.net > Subject: Re: [iTex

Re: [iText-questions] tiff2pdf with jbig2

2007-01-22 Thread Paulo Soares
Here's what I got. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of beppecosta > Sent: Monday, January 22, 2007 4:56 PM > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] tiff2pdf wit

Re: [iText-questions] tiff2pdf with jbig2

2007-01-22 Thread beppecosta
AIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On >> Behalf Of beppecosta >> Sent: Monday, January 22, 2007 4:24 PM >> To: itext-questions@lists.sourceforge.net >> Subject: Re: [iText-questions] tiff2pdf with jbig2 >> >> >> Paulo, >> >> Fi

Re: [iText-questions] tiff2pdf with jbig2

2007-01-22 Thread Paulo Soares
; > > dp.put(new PdfName("JBIG2Globals"), iref); > > dic.put(PdfName.DECODEPARMS, dp); > > img.setAdditional(dic); > > img.scalePercent(10); > > doc.add(img); > > doc.close(); > > > > I'll have to make a couple of changes in Image to

Re: [iText-questions] tiff2pdf with jbig2

2007-01-22 Thread beppecosta
> "Document.compress = false". > > Paulo > >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On >> Behalf Of Paulo Soares >> Sent: Friday, January 19, 2007 11:40 AM >> To: Post all your question

Re: [iText-questions] tiff2pdf with jbig2

2007-01-19 Thread Paulo Soares
PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Paulo Soares > Sent: Friday, January 19, 2007 11:40 AM > To: Post all your questions about iText here > Subject: Re: [iText-questions] tiff2pdf with jbig2 > > Clever script. I'll need the jbig2 files and the re

Re: [iText-questions] tiff2pdf with jbig2

2007-01-19 Thread Paulo Soares
gt; Sent: Friday, January 19, 2007 10:58 AM > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] tiff2pdf with jbig2 > > > This is the Python script. > > > --- > import sys > import re > import struct > import glob > import

Re: [iText-questions] tiff2pdf with jbig2

2007-01-19 Thread beppecosta
;Kids'] = '[' + ' '.join([ref(x.id) for x in page_objs]) + ']' print str(doc) def usage(script, msg): if msg: sys.stderr.write("%s: %s\n"% (script, msg)) sys.stderr.write("Usage: %s [file_basename] > out.pdf\n"% script) sys.e

Re: [iText-questions] tiff2pdf with jbig2

2007-01-19 Thread Paulo Soares
Show us the Python script and I'll tell you something about it. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of beppecosta > Sent: Friday, January 19, 2007 10:27 AM > To: itext-questions@lists.sourceforge.net >

[iText-questions] tiff2pdf with jbig2

2007-01-19 Thread beppecosta
At present on our iSeries(as400) we use iText/tiff2pdf to create pdf from scanned tiff documents. We produce thousands of documents per day and this works perfecty. However because these pdf's should be archived on optical disks and kept for one year (and because optical media cost a lot) we are i

Re: [iText-questions] Tiff2Pdf

2006-07-19 Thread Antoine
On 19/07/06, sirisha <[EMAIL PROTECTED]> wrote: > > > Hi, > I am using Tiff2Pdf.java from iText.If i have a tiff image of 800 kb it is > converting it to 250-300kb of pdf file.I need that pdf file size to be > reduced to the least size around 50-80kb.Is that possible with this > api?.Please sugges

Re: [iText-questions] Tiff2Pdf

2006-07-19 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Bill Ensley > Sent: Wednesday, July 19, 2006 5:28 PM > To: 'Post all your questions about iText here' > Subject: Re: [iText-questions] Tiff2Pdf > > > >

Re: [iText-questions] Tiff2Pdf

2006-07-19 Thread Bill Ensley
; -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of > > sirisha > > Sent: Wednesday, July 19, 2006 9:05 AM > > To: itext-questions@lists.sourceforge.net > > Subject: [iText-questions] Tiff2Pdf > > > > Hi

Re: [iText-questions] Tiff2Pdf

2006-07-19 Thread Paulo Soares
iText can't subset images. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of sirisha > Sent: Wednesday, July 19, 2006 9:05 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Tiff2

[iText-questions] Tiff2Pdf

2006-07-19 Thread sirisha
Hi,  I am using Tiff2Pdf.java from iText.If i have a tiff image of 800 kb it is converting it to 250-300kb of pdf file.I need that pdf file size to be reduced to the least size around 50-80kb.Is that possible with this api?.Please suggest me how to do that.  Thanks in advance.  Sirisha.K.L --

Re: [iText-questions] tiff2pdf can it create pdf from certain tiff page?

2006-07-06 Thread Paulo Soares
Thursday, July 06, 2006 9:47 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] tiff2pdf can it create pdf from > certain tiff page? > > Hi Paulo, > > I am able to run Tiff2Pdf , but it creates pdf from the > entire tiff file, > I want to

[iText-questions] tiff2pdf can it create pdf from certain tiff page?

2006-07-06 Thread carl lang
Hi Paulo,   I am able to run Tiff2Pdf , but it creates pdf from the entire tiff file, I want to be able to specifiy which page of the tiff must be used to create the pdf, is that possible? also when Tiff2Pdf creates pdf it adds file name to the top of each page in the pdf , is it possible to leave

Re: [iText-questions] tiff2pdf and pdf2tiff

2005-04-13 Thread Leonard Rosenthol
At 09:04 AM 4/13/2005, Ben Anderson wrote: Also, it seems it would be easy to go from pdf2tiff, but I can't seem to grasp it. Is this possible with itext? No, it is not. If not, can someone refer me to a good open source library that does? JPEDAL - http://www.jpedal.org Leonard --

Re: [iText-questions] tiff2pdf and pdf2tiff

2005-04-13 Thread Bruno Lowagie
Ben Anderson wrote: actually I tried using the Tiff2Pdf tool: public void testTiff2PdfTest() { String tiffFile = rootDir+"400dpiCCITTGroup4.tif"; String pdfFile = rootDir+"pdfer.pdf"; Tiff2Pdf.main(new String[] {tiffFile, pdfFile}); } This works, but the top margin is w

Re: [iText-questions] tiff2pdf and pdf2tiff

2005-04-13 Thread bruno
Ben Anderson wrote: The only problem is that it only grabs the first page of the tiff. Does anyone know how I can grab the second page of the tiff? Try the Tiff2Pdf tool in this JWS app: www.lowagie.com/iText/itext.jnlp The code can be found in package com.lowagie.tools.plugins Also, it seems i

Re: [iText-questions] tiff2pdf and pdf2tiff

2005-04-13 Thread Ben Anderson
actually I tried using the Tiff2Pdf tool: public void testTiff2PdfTest() { String tiffFile = rootDir+"400dpiCCITTGroup4.tif"; String pdfFile = rootDir+"pdfer.pdf"; Tiff2Pdf.main(new String[] {tiffFile, pdfFile}); } This works, but the top margin is way too big an

[iText-questions] tiff2pdf and pdf2tiff

2005-04-13 Thread Ben Anderson
Hi, we need to do both of these things. The tiff2pdf works for the most part... just grabbed some sample code of the web site: public void testTiff2PdfTest() { //String tiffFile = rootDir+"crl2688.tif"; String tiffFile = rootDir+"400dpiCCITTGroup4.tif"; String pdfFil

RE: [iText-questions] tiff2pdf using iText

2002-10-29 Thread Paulo Soares
} Best Regards, Paulo Soares > -Original Message- > From: Damien Collis (NSW) [SMTP:[EMAIL PROTECTED]] > Sent: Monday, October 28, 2002 22:53 > To: [EMAIL PROTECTED] > Subject: [iText-questions] tiff2pdf using iText > > I have a tiff file that I cannot get

[iText-questions] tiff2pdf using iText

2002-10-28 Thread Damien Collis (NSW)
Title: tiff2pdf using iText I have a tiff file that I cannot get imported into an itext PDF.  I have read the similar listing by 'Padmanabhan, Shobana', read through the discussions on the 'JAI-INTEREST archives' and tried converting the image (every which way) using JAI to 8bit, argb (Buffer