Re: [iText-questions] Error reading TIFF Image

2010-08-23 Thread mkl
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,

Re: [iText-questions] Error reading TIFF Image

2010-08-23 Thread Adam Mork
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.ne

Re: [iText-questions] Error reading TIFF Image

2010-08-23 Thread wasegraves
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 To: "itext-questions@lists.sourceforge.net" Sent: Mon, August 23, 2010 8:50:20 AM Subject: [iText-questions] Error

Re: [iText-questions] PDF gets sent as XML in email in IE f ile -> sendas page option

2010-08-23 Thread pankaj
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 -- Sell

Re: [iText-questions] Error reading TIFF Image

2010-08-23 Thread mkl
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:

Re: [iText-questions] The document has been changed since it was created and these rights are no longer valid

2010-08-23 Thread Keith O
> 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

Re: [iText-questions] iText Flattening causing data loss/distortion?

2010-08-23 Thread Paulo Soares
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

Re: [iText-questions] The document has been changed since it was created and these rights are no longer valid

2010-08-23 Thread Paulo Soares
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: [

Re: [iText-questions] iText Flattening causing data loss/distortion?

2010-08-23 Thread Craig Garvis
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? -

Re: [iText-questions] Error reading TIFF Image

2010-08-23 Thread Adam Mork
Hi Mkl, I tried the same thing using an image I exported from a image editing program, and i 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

Re: [iText-questions] iText-questions Digest, Vol 51, Issue 65

2010-08-23 Thread Adam Mork
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@

Re: [iText-questions] issue with hidden field

2010-08-23 Thread Mark Storer
I'm pretty sure that even if you do manage to call a JS function to close the document, the security manager will let the user choose whether or not to allow it. Wow. doc.closeDoc(); And the only "security" issue is whether or not the document has been changed and what to do about it. Users ca

Re: [iText-questions] PDF gets sent as XML in email in IE file -> sendas page option

2010-08-23 Thread Mark Storer
Do you have this problem with any PDF, or just those you build in iText? --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; Disclaimer DisCard = null; > -Original Message- > From: pankaj [mailto:pankaj.p.ku...@gs.com] > Sent: Monday, August 23, 2010

Re: [iText-questions] how to get font color --iTextSharp.text.pdf.parser

2010-08-23 Thread Mark Storer
I believe you just check the current graphic state's fill color. Huh... TextRenderInfo has the current graphic state, but doesn't give you 'bare' access to it, or to the color directly. Lucky for you, iText is Open Source, so you can fix that quite easily... or not. The GraphicState class doesn

Re: [iText-questions] Generating PDFs from Java Beans

2010-08-23 Thread Mark Storer
No. Beans can vary so wildly, there's no standard. As far as I know, you're the first person to ask. I suppose you could use the PropertyEditorManager to get property editors for each bean attribute and draw them to a PdfGraphics2D using propertyEditor.paintValue, but even then layout could get

Re: [iText-questions] delete temp files after streaming to client?

2010-08-23 Thread Keith O
> From: calvin.street...@bailygarner.co.uk > To: itext-questions@lists.sourceforge.net > Date: Mon, 23 Aug 2010 14:46:26 +0100 > Subject: [iText-questions] delete temp files after streaming to client? > > Hi. > dose anyone know how/ the order to delete temp files after streaming to > client.. as i

Re: [iText-questions] The document has been changed since it was created and these rights are no longer valid

2010-08-23 Thread 1T3XT info
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 f

Re: [iText-questions] The document has been changed since it was created and these rights are no longer valid

2010-08-23 Thread Keith O
> Date: Mon, 23 Aug 2010 17:00:02 +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 > > Keith O wrote: > > Maybe it's the PDF file? > > The OP has pos

Re: [iText-questions] The document has been changed since it was created and these rights are no longer valid

2010-08-23 Thread 1T3XT info
Keith O wrote: > Maybe it's the PDF file? The OP has posted the PDF file. I used it with iText and it works. (This is confirmed by the OP who tried iText.) So the PDF file is OK. > Tried OP's example code with iTextSharp 5.0.4.0, "newFile.pdf" is 163KB. > Also, the Chapter 8 example, part2.chapte

Re: [iText-questions] The document has been changed since it was created and these rights are no longer valid

2010-08-23 Thread 1T3XT info
rajeev2012 wrote: > 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 Your only option is to hire somebody who compares what happens in iText with what happens in iTextSharp, and fixes t

Re: [iText-questions] About the error "PDF header signature not found" while trying to open PdfReader with existing stream

2010-08-23 Thread leparachute
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:

Re: [iText-questions] PDF Header signature not found

2010-08-23 Thread tmiddlebrook
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).

Re: [iText-questions] The document has been changed since it was created and these rights are no longer valid

2010-08-23 Thread rajeev2012
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-tp2167197p2335

[iText-questions] delete temp files after streaming to client?

2010-08-23 Thread Calvin Streeting
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") + "\\" + Sys

Re: [iText-questions] The document has been changed since it was created and these rights are no longer valid

2010-08-23 Thread Keith O
> 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

Re: [iText-questions] Error reading TIFF Image

2010-08-23 Thread mkl
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

[iText-questions] MS word/wodpad line spacing in iTextSharp Phrase and Paragraph

2010-08-23 Thread Brian Akehurst
Hi, I have a project to write PDF files from content that has some RTF generated from a .Net C# rich textbox. I've parsed the rtf into a model that has Paragraphs and Text elements. In the following code I'm adapting these to iTextSharp objects. Whatever I try I cannot seems to repeat is the

[iText-questions] Error reading TIFF Image

2010-08-23 Thread Adam Mork
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.

Re: [iText-questions] The document has been changed since it was created and these rights are no longer valid

2010-08-23 Thread 1T3XT info
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.

[iText-questions] Generating PDFs from Java Beans

2010-08-23 Thread Alexander Orlov
Is there a "best practice" to generate PDFs out of Java Beans. Any hints are appreciated :) Cheers Alex -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge ht

Re: [iText-questions] The document has been changed since it was created and these rights are no longer valid

2010-08-23 Thread rajeev2012
Sir, I have tried it with the latest iTextSharp (5.04) but still I am having the said issue :( Regards Rajeev -- View this message in context: http://itext-general.2136553.n4.nabble.com/iText-IKVM-C-stream-to-browser-issues-tp2167197p2335023.html Sent from the iText - General mailing list arch

Re: [iText-questions] The document has been changed since it was created and these rights are no longer valid

2010-08-23 Thread rajeev2012
Ok sir, I will check with upgraded iText and i hope this is not a platform (.NET) related issue. In case, if it works fine in JAVA but not in .NET then do we we have any other option ? Regards Rajeev -- View this message in context: http://itext-general.2136553.n4.nabble.com/iText-IKVM-C-strea

Re: [iText-questions] The document has been changed since it was created and these rights are no longer valid

2010-08-23 Thread 1T3XT info
rajeev2012 wrote: > Sir, > > I had checked the book and have written below code That's almost exactly the code I have (but I have it in Java). > (with the line that you > had put) to meet this requirement, but still I do get the same error > message, The result I get was sent in attachment. >

Re: [iText-questions] The document has been changed since it was created and these rights are no longer valid

2010-08-23 Thread rajeev2012
Sir, I had checked the book and have written below code (with the line that you had put) to meet this requirement, but still I do get the same error message, when I try to open newly created file (Please see attached) http://itext-general.2136553.n4.nabble.com/file/n2334924/newFile.pdf newFile.pd

[iText-questions] PDF gets sent as XML in email in IE file -> send as page option

2010-08-23 Thread pankaj
Hi, I use iText to insert custom data using pdfstamper in my pdf documents. Now, when I try to send this pdf document as an attachment using the following stps, it gets send as XML File -> send ->Page By Email in IE , the document gets attached as XML file. can someone please help me , if I a

Re: [iText-questions] The document has been changed since it was created and these rights are no longer valid

2010-08-23 Thread rajeev2012
Sir, http://itext-general.2136553.n4.nabble.com/file/n2334791/Form1B.PDF Form1B.PDF Please find attached, the file that we are getting from our Govt. and we need to fill in the relevant data in it and submit the same. If I insert data manually and opt for 'save/save as', it worked perfectly fi