Hi MKL,

I tested with a tiff file I made in an image editing program, and I still get 
the same error.

-----Original Message-----
From: itext-questions-requ...@lists.sourceforge.net 
[mailto:itext-questions-requ...@lists.sourceforge.net] 
Sent: Monday, August 23, 2010 7:30 AM
To: itext-questions@lists.sourceforge.net
Subject: iText-questions Digest, Vol 51, Issue 65

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 (mkl)
   2. Re: The document has been changed since it was created and
      these rights are no longer valid (Keith O)
   3. delete temp files after streaming to client? (Calvin Streeting)
   4. Re: The document has been changed since it was created and
      these rights are no longer valid (rajeev2012)
   5. Re: PDF Header signature not found (tmiddlebrook)
   6. Re: About the error "PDF header signature not found" while
      trying to open PdfReader with existing stream (leparachute)


----------------------------------------------------------------------

Message: 1
Date: Mon, 23 Aug 2010 06:26:35 -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: <1282569995877-2335102.p...@n4.nabble.com>
Content-Type: text/plain; charset=us-ascii


Adam,

are you sure you actually have a TIFF image? When I download your file, I
get an image in jpg format.

Regards,   Michael.
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Error-reading-TIFF-Image-tp2335081p2335102.html
Sent from the iText - General mailing list archive at Nabble.com.



------------------------------

Message: 2
Date: Mon, 23 Aug 2010 13:35:01 +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-w377d0043705b58312689a6c4...@phx.gbl>
Content-Type: text/plain; charset="iso-8859-1"


> Date: Mon, 23 Aug 2010 14:39:40 +0200
> From: i...@1t3xt.info
> To: itext-questions@lists.sourceforge.net
> Subject: Re: [iText-questions] The document has been changed since it was 
> created and these rights are no longer valid
> 
> rajeev2012 wrote:
> > Sir,
> > 
> > I have tried it with the latest iTextSharp (5.04) but still I am having the
> > said issue :(
> 
> One thing I noticed:
> When you fill out one field in the form using iTextSharp,
> your file is 149 KB.
> When I fill out the same field in the form using iText,
> the file is 163 KB.
> That's a significant difference.
> 
> I think you should look at this difference, and fix the problem
> in iTextSharp. If you have found the fix, please post it back to
> this list so that other people can be helped too.

Maybe it's the PDF file? Tried OP's example code with iTextSharp 5.0.4.0, 
"newFile.pdf" is 163KB. Also, the Chapter 8 example, 
part2.chapter08.ReaderEnabledForm worked with all iTextSharp  5.XX versions, 
and just confirmed it works with iTextSharp 5.0.4.0 too.
                                          


------------------------------

Message: 3
Date: Mon, 23 Aug 2010 14:46:26 +0100
From: Calvin Streeting <calvin.street...@bailygarner.co.uk>
Subject: [iText-questions] delete temp files after streaming to
        client?
To: "'itext-questions@lists.sourceforge.net'"
        <itext-questions@lists.sourceforge.net>
Message-ID:
        <8a9f5f899c888547bcfba014638eaf3d5bc4cfc...@bgex1.bailygarner.co.uk>
Content-Type: text/plain; charset="us-ascii"

Hi.
dose anyone know how/ the order to delete temp files after streaming to 
client.. as if i use this it errors the client, prusumabley because it is still 
sending it to them..

    string filein = Server.MapPath("Data") + "\\test.pdftmp";
    string fileout = Server.MapPath("Data") + "\\" + 
System.Guid.NewGuid().ToString() + ".pdf";
   //-----------------
    do other stuff.......
   //-----------------
   Response.ContentType = "text/pdf";
   Response.AppendHeader("Content-Disposition", "attachment; filename=" + 
filein);
   Thread.Sleep(1000);
   Response.TransmitFile(fileout);
   Thread.Sleep(5000);
   System.IO.File.Delete(Server.MapPath("Data") + "\\" + filein + "tmp");
   System.IO.File.Delete(fileout); //<--------nead to fix this
   Response.End();

Calvin Streeting
Systems Developer
For and on behalf of Baily Garner LLP
Tel: 0208 294 1000 (EXT: 8570)
Fax: 0208 2941320

www.bailygarner.co.uk

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 4
Date: Mon, 23 Aug 2010 06:51:06 -0700 (PDT)
From: rajeev2012 <rajeevs2...@gmail.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: <1282571466578-2335139.p...@n4.nabble.com>
Content-Type: text/plain; charset=us-ascii


Sir,

I have tried it with JAVA and t worked. But, the problem is my project is in
.NET (C#), hence have got stuck on this point.

Any suggestion .... 

Regards
Rajeev
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/iText-IKVM-C-stream-to-browser-issues-tp2167197p2335139.html
Sent from the iText - General mailing list archive at Nabble.com.



------------------------------

Message: 5
Date: Mon, 23 Aug 2010 06:51:47 -0700 (PDT)
From: tmiddlebrook <timothy.d.middlebr...@chase.com>
Subject: Re: [iText-questions] PDF Header signature not found
To: itext-questions@lists.sourceforge.net
Message-ID: <1282571507062-2335140.p...@n4.nabble.com>
Content-Type: text/plain; charset=us-ascii


Let me first say thank you for all your help. I wasn't using the correct
variable within the IO Stream. I was checking the sizes and thought I was
using the correct variable but I wasn't. Again Thanks for all your help. As
thanks I will purchase another copy of your itext book (the ebook version).


-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/PDF-Header-signature-not-found-tp2330180p2335140.html
Sent from the iText - General mailing list archive at Nabble.com.



------------------------------

Message: 6
Date: Mon, 23 Aug 2010 16:29:48 +0200
From: leparachute <leparach...@gmail.com>
Subject: Re: [iText-questions] About the error "PDF header signature
        not found" while trying to open PdfReader with existing stream
To: Post all your questions about iText here
        <itext-questions@lists.sourceforge.net>
Message-ID:
        <aanlktinjcegpds6fzpnz6wwjhqyq2iwzzvfj4njc_...@mail.gmail.com>
Content-Type: text/plain; charset="windows-1252"

Thanks for your answer. If all is still not really clear for me, I managed
to create and then sign the pdf using a MemoryStream object (equivalent to
ByteArrayOutputStream in java I guess). I'm going back to learn this
library, thanks again.

Best regards, leparachute.


On Sat, Aug 21, 2010 at 10:29 AM, 1T3XT info <i...@1t3xt.info> wrote:

> On 20/08/2010 16:50, leparachute wrote:
> > Hi,
> >
> > Using the last iTextSharp library (5.0.2), I have an issue and didn?t
> > find on the web how to manage with this.
> >
> > What I want to do :
> >
> > - Create a pdf based on HTML
>
> That's possible, but there are other tools (some of them using iText)
> that are better at converting HTML to PDF.
> For simple HTML snippets, you can use the HTMLWorker class in iText.
>
> > - Sign the pdf
>
> That's very well documented.
>
> > The objective would be to create the whole .pdf before having to write
> > it on the hard disk.
>
> You can write the PDF to a ByteArrayOutputStream to create the PDF in
> memory.
>
> > When I?m trying to use my ?Stream? to create a new PdfReader, I get the
> > following error :
> > An unhandled exception of type
> > 'iTextSharp.text.exceptions.InvalidPdfException' occurred in
> itextsharp.dll
> > Additional information: PDF header signature not found.
> >
> > My code :
> >
> > ------------------------------------------
> >
> > Document doc = new Document(PageSize.A4);
> >
> > PdfWriter writer = PdfWriter.GetInstance(doc, new
> > FileStream(Environment.CurrentDirectory + "\\testPdfCreation.pdf",
> > FileMode.Create));
>
> You are creating a file, why not write to a memory stream?
>
> > string strURL = Environment.CurrentDirectory + "\\test.html";
>
> You are providing a path to an HTML file.
>
> > Uri uri = new Uri(strURL);
> > FileWebRequest req = (FileWebRequest)WebRequest.Create(uri);
> > WebResponse resp = req.GetResponse();
> > Stream stream = resp.GetResponseStream();
> > StreamReader sr = new StreamReader(stream);
> > string html = sr.ReadToEnd();
>
> You are reading the HTML into a stream?
>
> > PdfReader reader = new PdfReader(stream);
>
> You are feeding the HTML stream to PdfReader?
> PdfReader only accepts PDF.
>
> > I tried many things but no evolution? I read on the net that we have to
> > close the document before being able to create a Pdfreader, but nothing
> > works for the moment.
>
> I only know Java, so I don't understand all the .NET stuff.
> --
> This answer is provided by 1T3XT BVBA
> http://www.1t3xt.com/ - http://www.1t3xt.info
>
>
> ------------------------------------------------------------------------------
> 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...

------------------------------

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


End of iText-questions Digest, Vol 51, Issue 65
***********************************************

------------------------------------------------------------------------------
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/

Reply via email to