If you open the file with a text editor you will see that at the coupler of
first bytes JFIF is written. It stands for Jpeg File Interchange Format.
So it is a jpeg image and not tiff.
2010/8/24 Adam Mork <ad...@windward.net>
> Hi MKL,
>
> Ok, thanks for looking at that. What are you doing to determine the file
> type of the images ?
>
> -----Original Message-----
> From: itext-questions-requ...@lists.sourceforge.net [mailto:
> itext-questions-requ...@lists.sourceforge.net]
> Sent: Tuesday, August 24, 2010 12:26 AM
> To: itext-questions@lists.sourceforge.net
> Subject: iText-questions Digest, Vol 51, Issue 69
>
> Send iText-questions mailing list submissions to
> itext-questions@lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> or, via email, send a message with subject or body 'help' to
> itext-questions-requ...@lists.sourceforge.net
>
> You can reach the person managing the list at
> itext-questions-ow...@lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of iText-questions digest..."
>
>
> Today's Topics:
>
> 1. Re: Error reading TIFF Image (Adam Mork)
> 2. Re: Error reading TIFF Image (mkl)
> 3. Re: The document has been changed since it was created and
> these rights are no longer valid (1T3XT info)
> 4. Every text in Hebrew not written to the pdf.How can I create
> pdf with Hebrew text? (yaf...@harel-ins.co.il)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 24 Aug 2010 00:30:19 -0600
> From: Adam Mork <ad...@windward.net>
> Subject: Re: [iText-questions] Error reading TIFF Image
> To: "itext-questions@lists.sourceforge.net"
> <itext-questions@lists.sourceforge.net>
> Message-ID:
> <ebe1b358174e3f4da96c5733262de20b06839c8...@zelda.windward.local>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi,
>
> I uploaded the other tiff file I created using an image editing program.
> Here is the link.
>
> https://sites.google.com/site/windwardapps/xml/test.tiff
>
> If you could take a look I would greatly appreciate it.
>
> thanks
>
> -----Original Message-----
> From: itext-questions-requ...@lists.sourceforge.net [mailto:
> itext-questions-requ...@lists.sourceforge.net]
> Sent: Monday, August 23, 2010 11:20 PM
> To: itext-questions@lists.sourceforge.net
> Subject: iText-questions Digest, Vol 51, Issue 68
>
> Send iText-questions mailing list submissions to
> itext-questions@lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> or, via email, send a message with subject or body 'help' to
> itext-questions-requ...@lists.sourceforge.net
>
> You can reach the person managing the list at
> itext-questions-ow...@lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of iText-questions digest..."
>
>
> Today's Topics:
>
> 1. Re: iText Flattening causing data loss/distortion? (Craig Garvis)
> 2. Re: The document has been changed since it was created and
> these rights are no longer valid (Paulo Soares)
> 3. Re: iText Flattening causing data loss/distortion? (Paulo Soares)
> 4. Re: The document has been changed since it was created and
> these rights are no longer valid (Keith O)
> 5. Re: Error reading TIFF Image (mkl)
> 6. Re: PDF gets sent as XML in email in IE file -> sendas
> page option (pankaj)
> 7. Re: Error reading TIFF Image (wasegraves)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 23 Aug 2010 18:21:36 -0500
> From: Craig Garvis <craig.gar...@merge.com>
> Subject: Re: [iText-questions] iText Flattening causing data
> loss/distortion?
> To: Post all your questions about iText here
> <itext-questions@lists.sourceforge.net>
> Message-ID:
> <5286d680d732434ab1f57ec071ca5bc6effb2...@fir.network.internal>
> Content-Type: text/plain; charset="us-ascii"
>
> After doing some light reading on the XFA spec and reading the content of
> the files I'm satisfied that the documents in question are, if anything,
> static XFA which should rule that out as a possible cause of the problem. Is
> there anything else that I should look into?
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 24 Aug 2010 00:46:20 +0100
> From: "Paulo Soares" <psoa...@glintt.com>
> Subject: Re: [iText-questions] The document has been changed since it
> was created and these rights are no longer valid
> To: "Post all your questions about iText here"
> <itext-questions@lists.sourceforge.net>
> Message-ID: <00bf01cb431d$65b08190$4301a...@psoaresw>
> Content-Type: text/plain; charset="iso-8859-1"
>
> The problem was with the XML serializer in .NET that did not preserved the
> whitespaces correctly in some cases. It's fixed in the SVN.
>
> Paulo
> ----- Original Message -----
> From: 1T3XT info
> To: Post all your questions about iText here
> Sent: Monday, August 23, 2010 4:55 PM
> Subject: Re: [iText-questions] The document has been changed since it was
> created and these rights are no longer valid
>
>
> Keith O wrote:
> > the reason I thought it was a problem with the OP's PDF file is
> > because I used the referenced book example code (converted to C#)
> > with supplied resource file you created (xfa_enabled.pdf).
> > All 5.XX versions of iTextSharp correctly preserve the usage
> > rights of **that** PDF file.
>
> Thanks for the clarification.
> The most important information for me is that the book example works
> with the provided PDF and iTextSharp. I have no idea why the OP's PDF
> works with iText but not with iTextSharp. Just a guess: maybe the
> problem is caused by an external problem, for instance: the way a stream
> is compressed (this is a very wild guess).
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.itextpdf.com/book/
> 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/
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 3
> Date: Tue, 24 Aug 2010 00:59:21 +0100
> From: "Paulo Soares" <psoa...@glintt.com>
> Subject: Re: [iText-questions] iText Flattening causing data
> loss/distortion?
> To: "Post all your questions about iText here"
> <itext-questions@lists.sourceforge.net>
> Message-ID: <00cc01cb431f$368f28b0$4301a...@psoaresw>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Please post a PDF with the problem, it's impossible to give any advice
> without one.
>
> Paulo
> ----- Original Message -----
> From: Craig Garvis
> To: Post all your questions about iText here
> Sent: Tuesday, August 24, 2010 12:21 AM
> Subject: Re: [iText-questions] iText Flattening causing data
> loss/distortion?
>
>
> After doing some light reading on the XFA spec and reading the content of
> the files I'm satisfied that the documents in question are, if anything,
> static XFA which should rule that out as a possible cause of the problem. Is
> there anything else that I should look into?
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 4
> Date: Tue, 24 Aug 2010 01:57:19 +0000
> From: Keith O <kuuji...@hotmail.com>
> Subject: Re: [iText-questions] The document has been changed since it
> was created and these rights are no longer valid
> To: <itext-questions@lists.sourceforge.net>
> Message-ID: <col107-w45f35f128afdcc1df3f207c4...@phx.gbl>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
> > From: psoa...@glintt.com
> > To: itext-questions@lists.sourceforge.net
> > Date: Tue, 24 Aug 2010 00:46:20 +0100
> > Subject: Re: [iText-questions] The document has been changed since it
> > was created and these rights are no longer valid
> >
> > The problem was with the XML serializer in .NET that did not preserved
> > the whitespaces correctly in some cases. It's fixed in the SVN.
>
> XmlDomWriter, nice!
>
> It looks like Microsoft chose to replace newlines with \r\n by default. If
> CR is the only problem this works too:
>
> XmlWriterSettings settings = new XmlWriterSettings();
> settings.NewLineHandling = NewLineHandling.Entitize;
> settings.OmitXmlDeclaration = true;
> XmlWriter xw = XmlWriter.Create(fout, settings);
> ...
>
>
>
> ------------------------------
>
> Message: 5
> Date: Mon, 23 Aug 2010 22:07:16 -0700 (PDT)
> From: mkl <m...@wir-sind-cool.org>
> Subject: Re: [iText-questions] Error reading TIFF Image
> To: itext-questions@lists.sourceforge.net
> Message-ID: <1282626436362-2336129.p...@n4.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
>
> Adam,
>
> adamm_wr wrote:
> > I tried the same thing using an image I exported from a image editing
> > program, and i get the same error.
>
> In that case, please post that new example file.
>
> Regards, Michael.
>
> PS: Quoting the whole digest mail isn't exactly necessary...
> --
> View this message in context:
> http://itext-general.2136553.n4.nabble.com/Error-reading-TIFF-Image-tp2335081p2336129.html
> Sent from the iText - General mailing list archive at Nabble.com.
>
>
>
> ------------------------------
>
> Message: 6
> Date: Tue, 24 Aug 2010 06:01:33 +0000 (UTC)
> From: pankaj <pankaj.p.ku...@gs.com>
> Subject: Re: [iText-questions] PDF gets sent as XML in email in IE
> file -> sendas page option
> To: itext-questions@lists.sourceforge.net
> Message-ID: <loom.20100824t075943-...@post.gmane.org>
> Content-Type: text/plain; charset=us-ascii
>
> Hi Mark,
>
> Thanks for getting back to me.
>
> This problem is there on any pdf including one generated by iText.
>
> This problem comes after I include the custom attributes using pdfstamper
> from
> iText.
>
> Thanks,
> Pankaj
>
>
>
>
>
> ------------------------------
>
> Message: 7
> Date: Mon, 23 Aug 2010 23:19:52 -0700 (PDT)
> From: wasegraves <wasegra...@bellsouth.net>
> Subject: Re: [iText-questions] Error reading TIFF Image
> To: Post all your questions about iText here
> <itext-questions@lists.sourceforge.net>
> Message-ID: <677765.19646...@web180804.mail.gq1.yahoo.com>
> Content-Type: text/plain; charset=us-ascii
>
> Adam, your image is a JPEG. iText handles it just fine. If you treat it as
> a
> JPEG, I think you'll be OK.
>
> Best regards,
> Bill Segraves
>
>
>
> ----- Original Message ----
> From: Adam Mork <ad...@windward.net>
> To: "itext-questions@lists.sourceforge.net"
> <itext-questions@lists.sourceforge.net>
> Sent: Mon, August 23, 2010 8:50:20 AM
> Subject: [iText-questions] Error reading TIFF Image
>
> Hi,
>
> I get this error when trying to read a TIFF Image, is anyone familiar with
> this
> exception and how to fix the image files ?
>
>
> Here is a link to the image -
> http://sites.google.com/site/windwardapps/xml/Fidelity.tif
>
> Exception: Source array type cannot be assigned to destination array
> type.
>
> Stack: at System.Array.Copy(Array sourceArray, Int32 sourceIndex,
> Array destinationArray, Int32 destinationIndex, Int32 length, Boolean
> reliable)
>
> at iTextSharp.text.pdf.RandomAccessFileOrArray.Read(Byte[] b, Int32
> off, Int32 len)
>
> at iTextSharp.text.pdf.RandomAccessFileOrArray.ReadFully(Byte[] b,
> Int32 off, Int32 len)
>
> at
> iTextSharp.text.pdf.codec.TIFFDirectory.Initialize(RandomAccessFileOrArr
> ay stream)
>
> at
> iTextSharp.text.pdf.codec.TIFFDirectory..ctor(RandomAccessFileOrArray
> stream, Int32 directory)
>
> at
> iTextSharp.text.pdf.codec.TiffImage.GetTiffImage(RandomAccessFileOrArray
> s, Int32 page, Boolean direct)
>
> at iTextSharp.text.Image.GetInstance(Byte[] imgb)
>
> thanks
> Adam M
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.itextpdf.com/book/
> 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/
>
>
>
>
> ------------------------------
>
>
> ------------------------------------------------------------------------------
> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> Be part of this innovative community and reach millions of netbook users
> worldwide. Take advantage of special opportunities to increase revenue and
> speed time-to-market. Join now, and jumpstart your future.
> http://p.sf.net/sfu/intel-atom-d2d
>
> ------------------------------
>
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>
> End of iText-questions Digest, Vol 51, Issue 68
> ***********************************************
>
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 23 Aug 2010 23:51:09 -0700 (PDT)
> From: mkl <m...@wir-sind-cool.org>
> Subject: Re: [iText-questions] Error reading TIFF Image
> To: itext-questions@lists.sourceforge.net
> Message-ID: <1282632669593-2336187.p...@n4.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
>
> Adam,
>
> adamm_wr wrote:
> > I uploaded the other tiff file I created using an image editing program.
> > Here is the link.
> >
> > https://sites.google.com/site/windwardapps/xml/test.tiff
> >
> > If you could take a look I would greatly appreciate it.
>
> This image also is a JPEG, not a TIFF image.
>
> Regards, Michael.
> --
> View this message in context:
> http://itext-general.2136553.n4.nabble.com/Error-reading-TIFF-Image-tp2335081p2336187.html
> Sent from the iText - General mailing list archive at Nabble.com.
>
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 24 Aug 2010 09:00:28 +0200
> From: 1T3XT info <i...@1t3xt.info>
> Subject: Re: [iText-questions] The document has been changed since it
> was created and these rights are no longer valid
> To: Post all your questions about iText here
> <itext-questions@lists.sourceforge.net>
> Message-ID: <4c736e0c.2040...@1t3xt.info>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> On 24/08/2010 1:46, Paulo Soares wrote:
> > The problem was with the XML serializer in .NET that did not preserved
> > the whitespaces correctly in some cases. It's fixed in the SVN.
>
> That's great news!
> Thanks!
>
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 24 Aug 2010 10:18:13 +0300
> From: <yaf...@harel-ins.co.il>
> Subject: [iText-questions] Every text in Hebrew not written to the
> pdf.How can I create pdf with Hebrew text?
> To: <itext-questions@lists.sourceforge.net>
> Message-ID:
> <
> 3b448e50bccbf546969566fc5fe0311004d41...@hhw-rghoex01.harel-office.com>
>
> Content-Type: text/plain; charset="windows-1255"
>
> I create PDF file by use in ITEXT:
>
> Document document=new Document();
>
> PdfWriter writer=PdfWriter.getInstance(document,new
> FileOutputStream("hello.pdf"));
>
> document.open();
>
> document.add(new Paragraph("hello"));
>
> document.add(new Paragraph("????"));
>
> document.close();
>
> but I got a pdf with no the second Paragraph , because the text is in
> Hebrew.
>
> Every text in Hebrew not written to the pdf.
>
> How can I create pdf with Hebrew text?
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: image/jpeg
> Size: 17923 bytes
> Desc: not available
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: image/gif
> Size: 1993 bytes
> Desc: not available
>
> ------------------------------
>
>
> ------------------------------------------------------------------------------
> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> Be part of this innovative community and reach millions of netbook users
> worldwide. Take advantage of special opportunities to increase revenue and
> speed time-to-market. Join now, and jumpstart your future.
> http://p.sf.net/sfu/intel-atom-d2d
>
> ------------------------------
>
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>
> End of iText-questions Digest, Vol 51, Issue 69
> ***********************************************
>
>
> ------------------------------------------------------------------------------
> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> Be part of this innovative community and reach millions of netbook users
> worldwide. Take advantage of special opportunities to increase revenue and
> speed time-to-market. Join now, and jumpstart your future.
> http://p.sf.net/sfu/intel-atom-d2d
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.itextpdf.com/book/
> 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/
>
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.itextpdf.com/book/
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/