Re: [iText-questions] Alignment

2013-06-11 Thread iText Software
On Tue, 11 Jun 2013 13:43:48 +0200, John Renfrew wrote:In the PdfContentByte show text aligned is there any way of getting decimal alignment??? This is for the use case of fraction parts of pricing where 12.00 and 14.375 will not line up if aligned right.I'm sorry, that's not supported. It will

[iText-questions] Alignment

2013-06-11 Thread John Renfrew
In the PdfContentByte show text aligned is there any way of getting decimal alignment??? This is for the use case of fraction parts of pricing where 12.00 and 14.375 will not line up if aligned right. john renfrew Right Way Up -

Re: [iText-questions] Alignment / Scaling problem when merging XFA data

2010-05-11 Thread Adam Carless
> > Sounds like you have a form with an XFA form that has an AcroForm > > counter-part. In that case, iText ignores the XFA and fill out the > > AcroForm fields which have a slightly different alignment, scaling, etc. I think I've found a way around this problem, but unfortunately I seem to hav

Re: [iText-questions] Alignment / Scaling problem when merging XFA data

2010-05-10 Thread Adam Carless
> > However, when I fill the fields using > > PdfStamper.getAcroFields().mergeXfaData(Document) the values appear to be > > dropped slightly, so they appear approximately 1.5mm low on the page. Also > > the whole page alignment seems to be altered slightly, with the top and > > bottom margins

Re: [iText-questions] Alignment / Scaling problem when merging XFA data

2010-05-06 Thread 1T3XT info
Adam Carless wrote: > I have a PDF which has been created using Adobe Acrobat Pro (not sure which > version). This PDF contains a single XFA form with various form fields, some > of > which are inline with static text. > When the PDF is opened in Acrobat Reader, and the form fields are filled in

[iText-questions] Alignment / Scaling problem when merging XFA data

2010-05-06 Thread Adam Carless
This is my first post to the list, so apologies if this has been covered before (I've searched the archives but couldn't find anything). I have a PDF which has been created using Adobe Acrobat Pro (not sure which version). This PDF contains a single XFA form with various form fields, some of wh

Re: [iText-questions] alignment calculations wrong with character spacing

2009-06-15 Thread 1T3XT info
bo.benson wrote: > Any chance of the notion of character-spacing being supported in one of the > higher level objects (Chunk?) sometime soon? No, there are no plans for that. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info --

Re: [iText-questions] alignment calculations wrong with character spacing

2009-06-15 Thread bo.benson
Thanks for the prompt reply. I was afraid of that. Unfortunately, for the body of the document, I'll have an even worse problem. I intended to use ColumnText or MultiColumnText to float around an image. But if I need a certain letter spacing, it looks like none of that would work, either. A

Re: [iText-questions] alignment calculations wrong with character spacing

2009-06-15 Thread 1T3XT info
bo.benson wrote: > Ok. > > What is the best way to have a center-aligned, multi-line paragraph with > wider character spacing? You'll have to do some calculations to achieve this. You need: - a Rectangle (can be provided in a cell event). - a BaseFont and a font size - Some text Use baseFont.g

Re: [iText-questions] alignment calculations wrong with character spacing

2009-06-15 Thread bo.benson
Ok. What is the best way to have a center-aligned, multi-line paragraph with wider character spacing? Thanks. Bruno Lowagie (iText) wrote: > > Bo Benson wrote: >> I'm not sure how to work around this. > > Wow, you're changing the state of the content stream, hoping PdfPTable > will be abl

Re: [iText-questions] alignment calculations wrong with character spacing

2009-06-15 Thread Bruno Lowagie
Bo Benson wrote: > I'm not sure how to work around this. Wow, you're changing the state of the content stream, hoping PdfPTable will be able to pick up that change? That's not supposed to work; PdfPTable isn't aware of the state in cb and when splitting a String into lines, it can't take it int

Re: [iText-questions] alignment-problem with PdfPCell & Paragraph

2008-11-24 Thread eli mishalov
eli mishalov wrote: > > I need to set RUN_DIRECTION = RTL and ALINGMENT = RIGHT. > I did so in the attaced Peace example from chapter 6 but with no sucsess. > what am I missing? > Tank's > Eli > I got the answer from 'yahelili'. if any one needs it simply use RUN_DIRECTION_RTL and ALIGN_LEFT

Re: [iText-questions] alignment-problem with PdfPCell & Paragraph

2008-11-23 Thread eli mishalov
Bruno Lowagie (iText) wrote: > > The first thing you need to know that a PdfPCell is treated as a > ColumnText object. > There are two ways to add content to a ColumnText object: > - in text mode > - in composite mode > When you add objects in text mode, the alignment of the object is ignored.

[iText-questions] alignment is missing while Converting HTML to PDF

2008-06-17 Thread Gafoor Mohammad
Hi Alexis, Please find the attached input (a.htm) and output (a.pdf) files. Thank you Gafoor -Original Message- From: Alexis Pigeon [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2008 9:34 PM To: Post all your questions about iText here Subject: Re: [iText-questions] alignment is

Re: [iText-questions] alignment is missing while Converting HTML to PDF

2008-06-16 Thread Gafoor Mohammad
Hi Alexis, Please find the attached input (a.htm) and output (a.pdf) files. Thank you Gafoor -Original Message- From: Alexis Pigeon [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2008 9:34 PM To: Post all your questions about iText here Subject: Re: [iText-questions] alignment is

Re: [iText-questions] alignment is missing while Converting HTML to PDF

2008-06-16 Thread Alexis Pigeon
Hi Mohammad, On 16/06/2008, Gafoor Mohammad <[EMAIL PROTECTED]> wrote: > > Hi all, > > With the following code, I am able to convert the html to pdf. But the > thing is that the alignment of the content of resulting pdf is different > from the html file. [snip] > Please help me in fixing this i

[iText-questions] alignment is missing while Converting HTML to PDF

2008-06-16 Thread Gafoor Mohammad
Hi all, With the following code, I am able to convert the html to pdf. But the thing is that the alignment of the content of resulting pdf is different from the html file. Document document = new Document(new Rectangle(612f, 792f)); TextReader tr = new StreamReader(@"C:\Test\ActualHTML.htm");

Re: [iText-questions] Alignment in PdfPTable

2008-06-09 Thread Paulo Soares
- Original Message - From: "Cyrielle Lablanche" <[EMAIL PROTECTED]> To: Sent: Monday, June 09, 2008 1:00 PM Subject: Re: [iText-questions] Alignment in PdfPTable > Ok, so I read some things about "text-mode" and "composite-mode&quo

Re: [iText-questions] Alignment in PdfPTable

2008-06-09 Thread Cyrielle Lablanche
Ok, so I read some things about "text-mode" and "composite-mode" in the book, and i understand that setHorizontalAlignment work only in text-mode... is that true ? 2008/6/6 1T3XT info <[EMAIL PROTECTED]>: > Cyrielle Lablanche wrote: > > (First excuse my english, i'm french) > > > > I try to add a

Re: [iText-questions] Alignment in PdfPTable

2008-06-09 Thread Cyrielle Lablanche
to set the alignment > > setHorizontalAlignment(ElementTags.ALIGN_CENTER); > > or ALIGN_LEFT, ALIGN_RIGHT, ALIGN_JUSTIFIED, etc. > > Howard > > > - Original Message > From: Cyrielle Lablanche <[EMAIL PROTECTED]> > To: itext-questions@lists.sourceforge.net

Re: [iText-questions] Alignment in PdfPTable

2008-06-06 Thread Howard Shank
June 6, 2008 11:07:12 AM Subject: [iText-questions] Alignment in PdfPTable (First excuse my english, i'm french) I try to add a PdfPTable to my document using writeSelectedRows(). But, I noticed that whatever I put on "setHorizontalAlignment()", all Elements are Left-Aligned. The

[iText-questions] Alignment in PdfPTable

2008-06-06 Thread Cyrielle Lablanche
(First excuse my english, i'm french) I try to add a PdfPTable to my document using writeSelectedRows(). But, I noticed that whatever I put on "setHorizontalAlignment()", all Elements are Left-Aligned. There's no problem using document.add(), but I can't use it in my "onStartPage()" function.. Is

Re: [iText-questions] Alignment in Paragraphs inside a Cell

2008-01-26 Thread Jonadan
Bruno Lowagie (iText) wrote: > > The answer is: it depends. > Are you talking about 'text mode' or about 'composite mode'. > > Note that your question is not very clear. > First you say that paragraph only has vertical alignment > (which is true); then ask a question about the (non-existent) >

Re: [iText-questions] Alignment in Paragraphs inside a Cell

2008-01-26 Thread Bruno Lowagie
Jonadan wrote: > One more question! > I spend time with alignment of Paragraphs inside Table Cells. Cells have; > - setHorizontalAlignment() and > - setVerticallAlignment() > > Paragraphs have; > - setAlignment() > > It looks like Cell alignment is used, even if I specify paragraph alignm

[iText-questions] Alignment in Paragraphs inside a Cell

2008-01-26 Thread Jonadan
One more question! I spend time with alignment of Paragraphs inside Table Cells. Cells have; - setHorizontalAlignment() and - setVerticallAlignment() Paragraphs have; - setAlignment() It looks like Cell alignment is used, even if I specify paragraph alignment. Is there any rules in deter

[iText-questions] Alignment and color of a line

2007-03-07 Thread Julien
Hello every body (My question is about Rtf document ) I would like to make a line with one or two word (I can do it lol) with a background color (that's ok , I 'm using the Chunk class ) but ... - I would like that the color begin on the left of the line and finish at the end of the line (and

Re: [iText-questions] Alignment of a section or a chapter text

2007-02-15 Thread Bruno Lowagie
Eric Summkeller wrote: Then please let me know if such a solution will be possible! I tested the code, and it already works as expected. I didn't have to change a thing. See attachment. So now I really don't understand the question... br, Bruno ericS.pdf Description: Adobe PDF document --

Re: [iText-questions] Alignment of a section or a chapter text

2007-02-15 Thread Bruno Lowagie (iText)
Eric Summkeller wrote: > Then please let me know if such a solution will be possible! You know: last week with the PageLabel stuff, now with the Chapter/Section stuff, ... I'm not the one in need of all these features, you are, it's not forbidden to implement this yourself and post the code to me

Re: [iText-questions] Alignment of a section or a chapter text

2007-02-15 Thread Eric Summkeller
> > Bruno Lowagie wrote: > Sorry, > I completely misunderstood your question. > I'll have a look at it. The solution may be in iText 2. > br, > Bruno OK! Then please let me know if such a solution will be possible! br, Eric

Re: [iText-questions] Alignment of a section or a chapter text

2007-02-15 Thread Bruno Lowagie (iText)
Eric Summkeller wrote: > What I need is the possibility to write the title of a chapter with a right > alignment. The other added Paragraphs that I add with the add() method have > the correct alignment. Sorry, I completely misunderstood your question. I'll have a look at it. The solution may be

Re: [iText-questions] Alignment of a section or a chapter text

2007-02-15 Thread Eric Summkeller
Bruno Lowagie ugent.be> writes: > > Bruno Lowagie wrote: > > I don't understand the above code. > You create a Paragraph, and add it to the document. > Then you create a Chapter, you leave it EMPTY (you > don't add anything to the Chapter), but still add > it to the document. What do you expect

Re: [iText-questions] Alignment of a section or a chapter text

2007-02-15 Thread Bruno Lowagie
Eric Summkeller wrote: > Paragraph p = new Paragraph("TestChapter"); > p.setAlignment(Element.ALIGN_CENTER); > document.add(p); > Chapter chapter = new Chapter(p, 1); > document.add(chapter); I don't understand the above code. You create a Paragraph, and add it to the document. Then you creat

Re: [iText-questions] Alignment of a section or a chapter text

2007-02-15 Thread Eric Summkeller
> Bruno Lowagie wrote: > > The concept 'alignment' doesn't exist in Chapter or Section. > You should set the alignment of the elements you are adding > to the Chapter or Section. > You are saying yourself that the paragraph you are using > for the chapter has right alignment. I fail to see what yo

Re: [iText-questions] Alignment of a section or a chapter text

2007-02-14 Thread Bruno Lowagie
Eric Summkeller wrote: > Is there any possibility to align a chapter or a section. The Paragraph I use > for the chapter has a right aligment but in the Document the chapter has a > left alignment. Could I change this alignment? The concept 'alignment' doesn't exist in Chapter or Section. You sh

[iText-questions] Alignment of a section or a chapter text

2007-02-14 Thread Eric Summkeller
Is there any possibility to align a chapter or a section. The Paragraph I use for the chapter has a right aligment but in the Document the chapter has a left alignment. Could I change this alignment? - Take Surveys. Earn Ca

Re: [iText-questions] Alignment settings of Paragraph is not working

2006-12-17 Thread Bruno Lowagie (iText)
Shoaib Gauhar wrote: > So, what i want from you guys is the reason why > this is happening and what i should do. I have no idea what you are talking about. A code sample reproducing the problem would help. br, Bruno - Ta

[iText-questions] Alignment settings of Paragraph is not working

2006-12-13 Thread Shoaib Gauhar
Hello I made a program to make a table of contents for pdf files. I used added chunks in a paragraph to implement this functionality. I used setAlignment() method of paragraph class to justify the contents in it. This was all done in the 1.4.3 version of iText and was working and generating the

Re: [iText-questions] Alignment of footer Text

2006-12-04 Thread Patrick Mugabe
iText here Subject: Re: [iText-questions] Alignment of footer Text Patrick Mugabe wrote: > I am using the folllowing code to add a header and footer. It works fine > except that I am failing to align the text on the footer even after > using setAlignment(Element.ALIGN_MIDDLE); There'

Re: [iText-questions] Alignment of footer Text

2006-12-04 Thread Bruno Lowagie (iText)
Patrick Mugabe wrote: > I am using the folllowing code to add a header and footer. It works fine > except that I am failing to align the text on the footer even after > using setAlignment(Element.ALIGN_MIDDLE); There's a difference between ALIGN_MIDDLE and ALIGN_CENTER. Are you sure you aren't c

[iText-questions] Alignment of footer Text

2006-12-03 Thread Patrick Mugabe
I am using the folllowing code to add a header and footer. It works fine except that I am failing to align the text on the footer even after using setAlignment(Element.ALIGN_MIDDLE); Is there something I am missing? Please assist public void onEndPage(PdfWriter writer, Document documen

Re: [iText-questions] Alignment of footer Text

2006-11-30 Thread Bruno Lowagie (iText)
Patrick Mugabe wrote: > I am using the folllowing code to add a header and footer. It works fine > except that I am failing to align the text on the footer even after > using setAlignment(Element.ALIGN_MIDDLE); > Paragraph ph = new > Paragraph(ProposalConstants.FOOTERTEXT, ari

[iText-questions] Alignment of footer Text

2006-11-30 Thread Patrick Mugabe
I am using the folllowing code to add a header and footer. It works fine except that I am failing to align the text on the footer even after using setAlignment(Element.ALIGN_MIDDLE); Is there something I am missing? Please assist public void onEndPage(PdfWriter writer, Document documen

Re: [iText-questions] alignment-problem with PdfPCell & Paragraph

2006-04-29 Thread Bruno Lowagie
Tim Dylla wrote: A little question in the end: I remember reading in the iText-Tutorial, that the class 'Phrase' is a bit 'quirky', I think I solved the quirky-ness a while ago, but the tutorial was never changed. In your example you use the Phrase rather than the Paragraph - is there a spe

Re: [iText-questions] alignment-problem with PdfPCell & Paragraph

2006-04-28 Thread Tim Dylla
bruno schrieb: > > The first thing you need to know that a PdfPCell is treated as a > ColumnText object. > There are two ways to add content to a ColumnText object: > - in text mode > - in composite mode > When you add objects in text mode, the alignment of the object is ignored. > You have to set

Re: [iText-questions] alignment-problem with PdfPCell & Paragraph

2006-04-28 Thread bruno
Tim Dylla wrote: Call me stubborn, I'd like to have proper padding AND desired alignment. How can I achieve this, without changing too much of my approach? It is odd, I agree, but there's some logic behind it. The first thing you need to know that a PdfPCell is treated as a ColumnText object

[iText-questions] alignment-problem with PdfPCell & Paragraph

2006-04-28 Thread Tim Dylla
Hi List, first: I really appreciate the work of Paulo and Bruno, and all the other active people on this list. Thanx a lot! But now to the Prob: I have to do some formatting on a PdfPTable. I want to align some Text to the right of its Cell. Therefore I'd like to do something similar to this:

Re: [iText-questions] Alignment of images in table's cell with text in HTMLWorker (HTML-to-PDF)

2005-08-13 Thread Paulo Soares
There's no text flowing around images in ColumnText and PdfPTable. If you want that, it won't work. - Original Message - From: "Sergey Vlasov" <[EMAIL PROTECTED]> To: Sent: Friday, August 12, 2005 3:20 PM Subject: [iText-questions] Alignment of images in

[iText-questions] Alignment of images in table's cell with text in HTMLWorker (HTML-to-PDF)

2005-08-12 Thread Sergey Vlasov
Hello, I'm trying to enhance HTMLWorker to be able to handle images (I've used some ideas from SAXiTextHandler). Here is what I did: public void startElement(String tag, HashMap h) { ... if (tag.equals("img")) { Image img; try { Properties p = new Properties();

RE: [iText-questions] Alignment in a dynamic table

2005-05-03 Thread Paulo Soares
uesday, May 03, 2005 2:13 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Alignment in a dynamic table > > aTable.addCell(new Cell(new Chunk(customer.getName())), i, j); > > The method setHorizontalAlignment has a void type, how to set > alignm

[iText-questions] Alignment in a dynamic table

2005-05-03 Thread Vincent Cormier
aTable.addCell(new Cell(new Chunk(customer.getName())), i, j); The method setHorizontalAlignment has a void type, how to set alignment without creating distinct cells? I mean, do{ ... aTable.addCell(new Cell(new Chunk(customer.getName())).setHorizontalAlignment(Element.ALIGN_RIGHT), i, j); ...

Re: [iText-questions] Alignment for Chunk

2005-04-09 Thread Bruno Lowagie
Rashmi Banthia wrote: Is there anyway I can align Chunk (like Paragraph) ? That's one of the differences between Chunk and Paragraph. I am looking for something like chunk.setAlignment(Element.ALIGN_LEFT). A chunk is an atomic text structure, we won't add alignment, leading,... to a Chunk.

[iText-questions] Alignment for Chunk

2005-04-08 Thread Rashmi Banthia
Is there anyway I can align Chunk (like Paragraph) ? I am looking for something like chunk.setAlignment(Element.ALIGN_LEFT). Paragraph can be aligned with paragraph.setAlignment(Element.ALIGN_LEFT). How about Phrase / Chunk ? Basically I am trying to add Header, which has two lines one Center

RE: [iText-questions] Alignment problem

2004-12-17 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of uma.k > Sent: Friday, December 17, 2004 11:09 AM > To: [EMAIL PROTECTED] > Subject: [iText-questions] Alignment problem > > Hi, > I would like to add some text

[iText-questions] Alignment problem

2004-12-17 Thread uma.k
Hi, I would like to add some text right aligned in the paragraph. Basically this paragraph has only one line and I want it to be on the right side. This is my code, Can someone correct me please? Also I would like to add an image to my paragraph and right align it and this image is coming from dif

Re: [iText-questions] Alignment of text in a Paragraph within a Cell

2004-10-12 Thread Steve Appling
be better off using PdfPTable and the itext-paulo-139 version at itextpdf.sf.net. - Original Message - From: <[EMAIL PROTECTED]> To: "Steve Appling" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, October 12, 2004 9:44 AM Subject: Re: [iText-quest

Re: [iText-questions] Alignment of text in a Paragraph within a Cell

2004-10-12 Thread srinivasu . l . vempuluru
y yet. Seems messy. Paulo, are you interested in supporting this? I'll add it if you think it should work this way. - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 11, 2004 1:07 PM Subject: [iText-questions] Alignmen

Re: [iText-questions] Alignment of text in a Paragraph within a Cell

2004-10-11 Thread Paulo Soares
Leave it as it is. Any change there would break all the existing code. Best Regards, Paulo Soares - Original Message - From: "Steve Appling" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, October 11, 2004 21:57 Subject: Re: [i

Re: [iText-questions] Alignment of text in a Paragraph within a Cell

2004-10-11 Thread Steve Appling
CTED]> Sent: Monday, October 11, 2004 1:07 PM Subject: [iText-questions] Alignment of text in a Paragraph within a Cell > > > > > Hi, > > I am trying to align the text in a paragraph with a cell using the > following code. It works fine in RTF. But it is not working

[iText-questions] Alignment of text in a Paragraph within a Cell

2004-10-11 Thread srinivasu . l . vempuluru
Hi, I am trying to align the text in a paragraph with a cell using the following code. It works fine in RTF. But it is not working in PDF. In PDF it is displaying all the text as Left aligned. Please let me know the fix for this. Document document = new Document(PageSize.A

RE: [iText-questions] Alignment of transformed text

2004-08-25 Thread Paulo Soares
: Tuesday, August 24, 2004 10:51 PMTo: [EMAIL PROTECTED]Subject: [iText-questions] Alignment of transformed text I have the following code:   I wish to transform the text using setTextMatrix. But, the matirx is not applied to the showTextAligned. It is only applied when I use the

[iText-questions] Alignment of transformed text

2004-08-25 Thread Brandon Goodin
I have the following code:   I wish to transform the text using setTextMatrix. But, the matirx is not applied to the showTextAligned. It is only applied when I use the showText(String text);   How can I transform my text with setTextMatrix AND center align it on an x,y coordinate?   xPos = 72 + x

Re: [iText-questions] alignment cells

2004-08-20 Thread Kieran
Hi You use: Cell.setHorizontalAlignment(Element.ALIGN_LEFT) or similar - this is the same for "Cell" and "PdfPCell" objects HTH Kiers "arne anka" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 19/08/2004 13:33 To [EMAIL PROTECTED] cc Subje

[iText-questions] alignment cells

2004-08-19 Thread arne anka
Hi, I have just started to use iText, so this might be a stupid question. How do I create a Table with cells with different alignment. What I actually want to do is to align text ciolumns left and numeric right. Best regards Björn _

[iText-questions] Alignment of table

2004-04-02 Thread Shyam A
Hi, Could somebody tell me how to control the alignment of a table. I checked the iText docs, and tried methods like table.setAlignment(), in vain. I couldn't find any example in the docs, which illustrates table alignment. My table always seems to be aligned at the center of the PDF document, whi

[iText-questions] alignment of headerfooter in RTF file

2004-01-15 Thread Yazdani, Flora
Title: Message I have a header in a RTF file that has several lines.  The couple first lines is supposed to be aligned centered but the last 3 lines are supposed to be left justified.  Does anyone know how to do this please? Here is the code:       Phrase l_phrase = new Phrase(12, c_hea

[iText-questions] alignment

2003-06-16 Thread Lloyd Bergman
Now all I want to do is align my header. In Chapter 2 (Chunks, Phrases and Paragraphs), it says that I can align paragraphs but I didn't see any details on how do it nor did I see any examples. However, by looking at the JavaDoc for Paragraph I thought I figured it out. The code runs bit doesn't

RE: [iText-questions] Alignment Problem

2003-01-23 Thread Paulo Soares
L PROTECTED]] > Sent: Thursday, January 23, 2003 8:56 > To: iText > Subject: [iText-questions] Alignment Problem > > hi, > > i am using ColumnText.setSimpleColumn to display some text in the PDF > file. i want the horizontal alignment to be LEFT and the vertical &

[iText-questions] Alignment Problem

2003-01-23 Thread Deepak Chandrasheker
hi,         i am using ColumnText.setSimpleColumn to display some text in the PDF file. i want the horizontal alignment to be LEFT and the vertical alignment to be MIDDLE. i tried to use Element.ALIGN_LEFT|Element.ALIGN_MIDDLE in the setSimpleColumn( ) method. but it does not seem to work.