Re: [iText-questions] Regarding PDF version

2007-12-20 Thread Bruno Lowagie
Sameer Borwankar wrote: Hi All, I am populating PDF template using iText 2.0.1. Version of the template is 1.5 (Acrobat 6.x). But after populating with data, version changes to 1.4 (Acrobat 5.x) Can anyone guide me regarding this issue? Yes, you are using the wrong constructor for PdfStampe

[iText-questions] Regarding PDF version

2007-12-20 Thread Sameer Borwankar
Hi All, I am populating PDF template using iText 2.0.1. Version of the template is 1.5 (Acrobat 6.x). But after populating with data, version changes to 1.4 (Acrobat 5.x) Can anyone guide me regarding this issue? TIA Sameer ___

Re: [iText-questions] Strange behaviour on itextSharp 2.0.7

2007-12-20 Thread Paulo Soares
- Original Message - From: "François Miermont" <[EMAIL PROTECTED]> To: "'Post all your questions about iText here'" Sent: Thursday, December 20, 2007 6:29 PM Subject: Re: [iText-questions] Strange behaviour on itextSharp 2.0.7 > Thanks for the feedback, keep up the good work ;) > > Wi

Re: [iText-questions] Using iText for merging documents

2007-12-20 Thread mixiff
> I need to merge a static PDF document and an Acroform document together, and > send the result on the screen. I would like a ‘real’ merge, not PDF > concatenated. However, I don't find the solution... Yes, surimpose a PDF (one page, generated from a simple Acroform) many times over another PDF

Re: [iText-questions] Pre-Populating fields in an XFA form

2007-12-20 Thread Richard S Akura
I looked at your message. Is it possible for you to share code for XDPDOMParser. I was trying it ths way .. XfaForm xfaForm = new XfaForm( pdfStamper.getReader() ); Node domDocument = xfaForm.getDomDocument(); Node newDoocument = modifyDomv(domDocument); xfaForm.se

Re: [iText-questions] Using iText for merging documents

2007-12-20 Thread mixiff
Answer is no longer necessary because I've found the solution by myself. // Create a stream ByteArrayOutputStream baos = new ByteArrayOutputStream(); // Open the AcroForm PdfReader readerAcroForm = new PdfReader("pdf/acroform.pdf"); // Create a stamper PdfStamper stamp

Re: [iText-questions] Strange behaviour on itextSharp 2.0.7

2007-12-20 Thread François Miermont
Thanks for the feedback, keep up the good work ;) Will be fixed in 4.0.8 ? -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Paulo Soares Envoyé : jeudi 20 décembre 2007 19:16 À : Post all your questions about iText here Objet : Re: [iText-questions] Stran

Re: [iText-questions] Strange behaviour on itextSharp 2.0.7

2007-12-20 Thread Paulo Soares
That's a bug in itextsharp and itext in that the non breaking space \u00a0 was not being processed for the winansi encoding. The fix is in the CVS. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of François Miermont > Sent: Thursday, Decem

Re: [iText-questions] Strange behaviour on itextSharp 2.0.7

2007-12-20 Thread François Miermont
Very weird : table.DefaultCell.HorizontalAlignment = Element.ALIGN_RIGHT; decimal montant = 2000.00m; string tmp = montant.ToString("n2", System.Globalization.CultureInfo.GetCultureInfo(1036)); Console.WriteLine(tmp); table.AddCell(new Phrase(montant.ToString("n2", System.Globalization.CultureI

Re: [iText-questions] Strange behaviour on itextSharp 2.0.7

2007-12-20 Thread François Miermont
Yep of course, it gives me "2 000,00", with ou without any reference to iTextSharp, and 4.0.4 correctly display it. -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Paulo Soares Envoyé : jeudi 20 décembre 2007 17:57 À : Post all your questions about iTex

Re: [iText-questions] Strange behaviour on itextSharp 2.0.7

2007-12-20 Thread Paulo Soares
Remove all references to itextsharp and send the strings to System.Console.Write(). What do you get? Is it different from what shows in the PDF? Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of François Miermont > Sent: Thursday, Decembe

Re: [iText-questions] Strange behaviour on itextSharp 2.0.7

2007-12-20 Thread François Miermont
I don't understand as I just explain how to reproduce it : Document doc = new Document(PageSize.A4); PdfWriter writer = PdfWriter.GetInstance(doc, new FileStream(@"C:\test.pdf", FileMode.Create)); doc.Open(); PdfPTable table = new PdfPTable(1); decimal amount = 2000.00m; table.DefaultCell.Hori

Re: [iText-questions] Strange behaviour on itextSharp 2.0.7

2007-12-20 Thread Paulo Soares
It would be interesting to know what you get sending the strings to System.Console.Write(). Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Bruno Lowagie > Sent: Thursday, December 20, 2007 4:21 PM > To: Post all your questions about iTe

Re: [iText-questions] Strange behaviour on itextSharp 2.0.7

2007-12-20 Thread Bruno Lowagie
François Miermont wrote: Any news about the stange behaviour ? If we can't reproduce it, we can't comment on it. There's a 99% chance the problem is not iText related, because as Paulo says: iText doesn't format anything. br, Bruno smime.p7s Description: S/MIME Cryptographic Signature --

Re: [iText-questions] Strange behaviour on itextSharp 2.0.7

2007-12-20 Thread François Miermont
Any news about the stange behaviour ? -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Paulo Soares Envoyé : mardi 18 décembre 2007 17:31 À : Post all your questions about iText here Objet : Re: [iText-questions] Strange behaviour on itextSharp 2.0.7 This

Re: [iText-questions] Using iText for merging documents

2007-12-20 Thread Bruno Lowagie
mixiff wrote: Hello, I need to merge a static PDF document and an Acroform document together, and send the result on the screen. I would like a ‘real’ merge, not PDF concatenated. However, I don't find the solution... What is a 'real' merge? Do you mean you want to superimpose one PDF with ano

Re: [iText-questions] SVG in PDF

2007-12-20 Thread Leonard Rosenthol
No, it is not possible to embed SVG into PDF and expect that SVG to render. There used to be a prototype method in Acrobat 6, but that was removed by Adobe in Acrobat 7. The method used by that Python script is an alternative solution which is more of a "replace PDF with SVG - but use Ado

Re: [iText-questions] System.Security.SecurityException: Thatassembly does not allow partially trusted callers.

2007-12-20 Thread Paulo Soares
It's impossible to please everyone so, you have the source, you build it as you like. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Fabrizio Accatino > Sent: Thursday, December 20, 2007 10:41 AM > To: Post all your questions about iText

Re: [iText-questions] System.Security.SecurityException: That assembly does not allow partially trusted callers.

2007-12-20 Thread Fabrizio Accatino
Christoph, iTextSharp assembly is not marked with AllowPartiallyTrustedCallersattribute. (if you want to understand more about that, read this very interesting post http://blogs.msdn.com/shawnfa/ar

[iText-questions] Using iText for merging documents

2007-12-20 Thread mixiff
Hello, I need to merge a static PDF document and an Acroform document together, and send the result on the screen. I would like a ‘real’ merge, not PDF concatenated. However, I don't find the solution... In the Acroform, I’m using something like this : PdfReader readerForm = new PdfReader("

Re: [iText-questions] Issue with large cell

2007-12-20 Thread Bruno Lowagie
Dominic Maricic wrote: Any idea why I'm getting the giant row that takes up all of page 2? It only happens when the content following it is greater than a page. This is expected behavior. Please read what the book says about splitting tables. I don't know exactly what you need, but I've made a

[iText-questions] SVG in PDF

2007-12-20 Thread kgoulding
I have seen some suggestions in forums that one can convert SVG to PDF using Batik and iText, however is it possible to simply embed the SVG in the PDF using iText? I believe this is possible using perl/python and Acrobat. However I would rather use iText. http://jan.kollhof.net/projects/svg/sv

[iText-questions] System.Security.SecurityException: That assembly does not allow partially trusted callers.

2007-12-20 Thread Christoph Vernimmen
Hello Recently I discovered IText and I want to use it to create a PDF document on a website. At this moment I'm testing ITextSharp. My web application is written in vb.net - ASP on framework 2.0, and is hosted on a server that has a partially trusted zone. Normally this means that al code mus

[iText-questions] Issue with large cell

2007-12-20 Thread Dominic Maricic
We use iText for our software program Home Inspector Pro @ http://www.HomeInspectorPro.com . First, thanks for the great library! I had a user who put more text into one area in the program than I ever thought would be necessary. Because of this he ended up with a PdfPCell that was actually larger