Re: [iText-questions] Bug for image in iTextSharp 4.1.6.0

2011-06-22 Thread Balder
Have you tried with iText 5.1.x maybe your problem has already been fixed. Kind regards Balder - Reply message - From: "David Thielen" Date: Thu, Jun 23, 2011 00:30 Subject: [iText-questions] Bug for image in iTextSharp 4.1.6.0 To: "itext-questions@lists.sourceforge.net"

Re: [iText-questions] C# embedded fonts

2011-06-22 Thread 1T3XT BVBA
On 22/06/2011 11:53, hhn000 wrote: > iTextSharp is developed by 1T3XT or iText Software Corp? All iText development is the responsibility of 1T3XT (EU). All iText sales are done through iText Software Corp (US). > The documentation for C# developers is: > - the book iText in Action > - the javado

Re: [iText-questions] iText 5.0.6

2011-06-22 Thread 1T3XT BVBA
On 22/06/2011 15:17, Bipin Mallik wrote: > Hi, > We are inprocess of migrating the application from older version of > iText (iText 1.5) to the newer version of iText (iText 5.0.6). We are > using the below code for header and footer settings. As the RTF is > removed, could you please help us to

Re: [iText-questions] ArrayIndexOutOfBoundsException while encrypting a PDF with AES 256 (IText pdf java)

2011-06-22 Thread Paulo Soares
Certificate encryption for AES 256 is not yet supported. It should be available in September. Paulo -Original Message- From: Alex Miller [mailto:reisnakea...@gmail.com] Sent: Wednesday, June 22, 2011 2:48 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] ArrayInde

Re: [iText-questions] Odd behavior when changing margins between pages

2011-06-22 Thread Paulo Soares
Use ColumnText, doc.add() won't do for precise layout. Paulo From: Carlos Miguel [mailto:cmi...@hotmail.com] Sent: Wednesday, June 22, 2011 2:45 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Odd behavior when changing margins between page

[iText-questions] Odd behavior when changing margins between pages

2011-06-22 Thread Carlos Miguel
Hi, I'm trying to generate a document from a single long text paragraph that needs to have different margins for odd and even pages (not necessarily in a mirrored fashion)Since I have no control of what page will the text render in, the obvious route was to code a page event to change margins

Re: [iText-questions] C# embedded fonts

2011-06-22 Thread hhn000
Ok, My story is straight, but my facts were off somewhat, sorry about that. But I didn't claim that it was your site. Are these facts correct? (I don't want to troll or insult anyone, but would like to clear up the facts) iTextSharp is developed by 1T3XT or iText Software Corp? The documentatio

Re: [iText-questions] Regarding automatic trim of whitespaces

2011-06-22 Thread 1T3XT BVBA
On 22/06/2011 11:31, sumeet gupta wrote: > I was trying to write some strings with extra speces in its rights > side in to a table , But generated pdf does not contains the white > spaces . Try "hello\u00a0\u00a0\u00a0\u00a0" and return to us if that doesn't work. --

[iText-questions] Regarding automatic trim of whitespaces

2011-06-22 Thread sumeet gupta
Hi members, I was trying to write some strings with extra speces in its rights side in to a table , But generated pdf does not contains the white spaces . I have tried this : Chunk chunk= new Chunk("hello"); Phrase phrase = new Phrase(chunk); PdfPCell c

Re: [iText-questions] C# embedded fonts

2011-06-22 Thread 1T3XT BVBA
On 22/06/2011 11:24, hhn000 wrote: > Not in this specific case, Paragraph.alignment. From Element.cs: > > public const int ALIGN_UNDEFINED = -1; > public const int ALIGN_LEFT = 0; > public const int ALIGN_CENTER = 1; > public const int ALIGN_RIGHT = 2; You aren't su

Re: [iText-questions] C# embedded fonts

2011-06-22 Thread 1T3XT BVBA
On 22/06/2011 11:20, hhn000 wrote: From http://itextsharp.com/ Tutorials for Learning iTextSharp Although the official documentation contains tutorials for Java developers only, .NET developers should find iText in Action a useful introduction to iTextSharp. Am I insul

Re: [iText-questions] C# embedded fonts

2011-06-22 Thread hhn000
Not in this specific case, Paragraph.alignment. From Element.cs: public const int ALIGN_UNDEFINED = -1; public const int ALIGN_LEFT = 0; public const int ALIGN_CENTER = 1; public const int ALIGN_RIGHT = 2; On Wed, Jun 22, 2011 at 11:09, 1T3XT BVBA wrote: > On 22

Re: [iText-questions] C# embedded fonts

2011-06-22 Thread hhn000
By "the official documentation" you mean the iText book, right? and you also think that it is documentation about the C# version, iTextSharp? I'm saying that the actual C# documentation, written about C# is very hard to find if it exists outside the book about the Java version. If you have any lin

Re: [iText-questions] C# embedded fonts

2011-06-22 Thread 1T3XT BVBA
On 22/06/2011 11:03, hhn000 wrote: > like a list of the valid values, constants in this case That's impossible, isn't it? The constants depend on the fonts in the directories you register. Typically, the list of valid values will be much shorter on American versions of Windows than on European ver

Re: [iText-questions] C# embedded fonts

2011-06-22 Thread hhn000
No, I didn't reverse engineer the entire library, and having the source doesn't exactly eliminate the need to extract information about the library (what is normally in the documentation) the hard way, just makes it easier. Proper documentation = the book? As I've said delivery is not instant. On

Re: [iText-questions] C# embedded fonts

2011-06-22 Thread hhn000
> > On 22/06/2011 10:26, hhn000 wrote: > > Are there plans to document the iTextSharp project? > There's a 386 page book about iText! > OK, that's about the Java version, but most of the examples were ported to > C#. > Are you saying there's a lack of documentation? If so, are you a troll? > HAND >

Re: [iText-questions] C# embedded fonts

2011-06-22 Thread 1T3XT BVBA
On 22/06/2011 10:46, hhn000 wrote: > I did read the full article 1. That article isn't part of the official documentation. It's a blog written by a user. Please refer to the official documentation before you say things such as "Are there plans to document the iTextSharp project?" 2. If you regist

Re: [iText-questions] C# embedded fonts

2011-06-22 Thread Paulo Soares
Font registration has always been the same in Java and C#. As for documentation, two book were written about iText and although they are for Java 99% also applies to C# and most of the example were ported in http://kuujinbo.info/iTextInAction2Ed/index.aspx. If you have to reverse engineer the

Re: [iText-questions] C# embedded fonts

2011-06-22 Thread hhn000
> > On 22/06/2011 9:08, hhn000 wrote: > > Hi, > > > > from what I can see in > > http://www.mikesdotnetting.com/Article/81/iTextSharp-Working-with-Fontsthe > > following line should embed a named font (and create a Font object > > suitable for use in a Paragraph) > > > > Font = FontFactory.GetFont(

Re: [iText-questions] C# embedded fonts

2011-06-22 Thread 1T3XT BVBA
On 22/06/2011 10:26, hhn000 wrote: > Are there plans to document the iTextSharp project? There's a 386 page book about iText! OK, that's about the Java version, but most of the examples were ported to C#. Are you saying there's a lack of documentation? If so, are you a troll? HAND ---

Re: [iText-questions] C# embedded fonts

2011-06-22 Thread hhn000
It seems that somewhere between 2008 when Mike wrote his articles and now, that the default font directories aren't automatically registered :-( Are there plans to document the iTextSharp project? It seems counterproductive that every developer has to reverse engineer the library. On Wed, Jun 22,

[iText-questions] Rotate removes last page number in TOC

2011-06-22 Thread Joris Spruyt
Hi, I'm having a strange problem with a pdf i'm creating. I have a document containing several pages, on the second page I create a Table of contents as described in the itext book. This works perfectly until i rotate the last page in my document, this is the last piece of code before the TOC i

Re: [iText-questions] C# embedded fonts

2011-06-22 Thread 1T3XT BVBA
On 22/06/2011 9:08, hhn000 wrote: > Hi, > > from what I can see in > http://www.mikesdotnetting.com/Article/81/iTextSharp-Working-with-Fonts the > following line should embed a named font (and create a Font object > suitable for use in a Paragraph) > > Font = FontFactory.GetFont(name, BaseFont.C

[iText-questions] C# embedded fonts

2011-06-22 Thread hhn000
Hi, from what I can see in http://www.mikesdotnetting.com/Article/81/iTextSharp-Working-with-Fonts the following line should embed a named font (and create a Font object suitable for use in a Paragraph) Font = FontFactory.GetFont(name, BaseFont.CP1252, BaseFont.EMBEDDED, size); except that the r