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
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
-
> > 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
> > 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
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
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
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
--
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
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
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
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
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
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.
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
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
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
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");
- 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
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
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
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
(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
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)
>
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
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
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
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
--
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
>
> 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
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
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
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
> 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
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
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
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
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
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'
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
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
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
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
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
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
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
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:
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
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();
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
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);
...
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.
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
> -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
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
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
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
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
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
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
: 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
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
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
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
_
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
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
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
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
&
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.
68 matches
Mail list logo