gmail.com]
Sent: Monday, June 29, 2009 12:45 AM
To: Post all your questions about iText here
Subject: [iText-questions] PdfContentByte qQ
Hi, I have a couple of questions about the lower level operations of
PdfContentByte.
Firstly, I've noticed that when I create a new PdfContentByte (using
G
Hi, I have a couple of questions about the lower level operations of
PdfContentByte.
Firstly, I've noticed that when I create a new PdfContentByte (using
GetUnderContent from PdfStamper)
the new PdfContentByte always appends q (save state) and Q (restore
state) to the end of itself. Why does it do
s about iText here
> Subject: Re: [iText-questions] PdfContentByte
>
> Hi Paulo
> Could you show me in code? Or point out in the itext book, where I
> might look for an example? Here is what I have code wise for adding
> the space.
>
>private void AddSpace(){
>
l Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On
>> Behalf Of Dean Krueger
>> Sent: Thursday, September 11, 2008 6:56 PM
>> To: Post all your questions about iText here
>> Subject: Re: [iText-questions] PdfContentByte
>>
>> Is t
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On
>> Behalf Of Dean Krueger
>> Sent: Thursday, September 11, 2008 6:56 PM
>> To: Post all your questions about iText here
>> Subject: Re: [iText-questions] PdfContentByte
>&g
tember 11, 2008 6:56 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] PdfContentByte
>
> Is there way to reset them back to zero and keep the new dimension? So
> that the boxes are 0,0, hight, width?
>
> Dean
>
> On Thu, Sep 11, 2008 at
e.
>
> Paulo
>
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On
>> Behalf Of Dean Krueger
>> Sent: Thursday, September 11, 2008 6:14 PM
>> To: itext-questions@lists.sourceforge.net
>> Subject: [iText-question
Hi,
When using a PdfContentByte how can I tell it which box to use for a
starting position? What box does it use by default? I have a pdf that
when using PdfContentByte for putting text on the pdf, starts way
higher than the 10 pts I tell it to start at. The art, bleed, media,
trim and bbox on tho
o: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] PdfContentByte
>
> Hi,
> When using a PdfContentByte how can I tell it which box to use for a
> starting position? What box does it use by default? I have a pdf that
> when using PdfContentByte for putting text on the pdf, s
gt; Paulo
>
> - Original Message -
> From: "Martin Taal" <[EMAIL PROTECTED]>
> To:
> Sent: Saturday, December 01, 2007 9:22 PM
> Subject: Re: [iText-questions] PdfContentByte and writing part of text as
> sub/superscript or bold
>
>
>
>
Show us the PDFs or the code.
Paulo
- Original Message -
From: "Martin Taal" <[EMAIL PROTECTED]>
To:
Sent: Saturday, December 01, 2007 9:22 PM
Subject: Re: [iText-questions] PdfContentByte and writing part of text as
sub/superscript or bold
> Bedankt allebei voor
Bedankt allebei voor het snelle antwoord!
This works fine, only when I set horizontal scaling on the chunks I get
a strange result. My case: I have several chunks (for superscript etc.)
and I add this to one Phrase before passing the phrase to
ColumnText.showTextAligned. Before adding to the ph
Martin Taal wrote:
how can I write
part of the text into the PdfContentByte as super/subscript or give part
of the text another font?
I suggest using ColumnText.showTextAligned(parameters) in this case.
It will save you plenty of work.
groetjes uit Vlaanderen,
Bruno
smime.p7s
Description: S/
ColumnText.showTextAligned().
Paulo
- Original Message -
From: "Martin Taal" <[EMAIL PROTECTED]>
To:
Sent: Saturday, December 01, 2007 12:55 PM
Subject: [iText-questions] PdfContentByte and writing part of text
assub/superscript or bold
Hi,
I want to write text at a s
Hi,
I want to write text at a specific location on the pdf. For this I use
the code below which works fine. However my question is how can I write
part of the text into the PdfContentByte as super/subscript or give part
of the text another font?
I see that the PdfContentByte has a setTextRise me
Heather Richardson wrote:
> The page numbers are working correctly, however the table is not
> displaying correctly. I'm not sure what I did wrong but I have a feeling
> it has something to do with the ContentByte. I used examples given on
> your website to get this far and I'm sure I just have
Hi,
I have a pdf where on each page I display a portion of a table and a footer
with page 1 out of numPages.
The page numbers are working correctly, however the table is not displaying
correctly. I'm not sure what I did wrong but I have a feeling it has
something to do with the ContentByte. I use
John Pedersen wrote:
> Paulo,
>
> I hope I haven't offended by sending you the code and pdf's that are
> causing my difficulty.
> I have reduced the code to the minimum which throws the
> NullPointerException, and I am still stuck in the same place.
I'm sorry, but I find that very hard to belie
Paulo,
I hope I haven't offended by sending you the code and pdf's that are causing
my difficulty.
I have reduced the code to the minimum which throws the
NullPointerException, and I am still stuck in the same place.
Do you have time to look at it? Can you suggest a way forward?
Thanks,
John
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of John Pedersen
> Sent: Monday, January 15, 2007 11:54 AM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] PdfContentByte == null
>
> H
Hi Paulo,
In trying to isolate the code that would give me the null ContentByte
object, I have come across another problem that I have been trying to sort
out - the error 'Irregular columns are not supported in composite mode.' I
am not trying to use irregular columns.
public void testBuildPDF()
5, 2007 9:35 AM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] PdfContentByte == null
>
> Hi,
>
> In the following code:
>
> reader = new PdfReader(baos.toByteArray());
> document = new Document(reader.getPageSizeWithRotation(1));
> document.o
Hi,
In the following code:
reader = new PdfReader(baos.toByteArray());
document = new Document(reader.getPageSizeWithRotation(1));
document.open();
stamper = new PdfStamper(reader, new FileOutputStream( outputFileName));
stamper.insertPage(++pageNum, reader.getPageSizeWithRotation(1));
PdfConten
Thanks for the quick response... I found that the problem is not that
the text I've added to the document is not displaying, but that the
silent print seems to scale the page differently. The text was not
being displayed on the page... when I adjusted the position of the
text, it was working again.
I don't see how that can happen. Can you post a link to a PDF?
Paulo
- Original Message -
From: "Frank Griffith" <[EMAIL PROTECTED]>
To:
Cc: <[EMAIL PROTECTED]>
Sent: Friday, December 01, 2006 11:01 PM
Subject: [iText-questions] PdfContentByte not showin
I'm building my PDF by adding individual TIFF pages to the
PdfContentByte. Then I'm added some text to the PdfContentByte to be
displayed at the top of each page. It works fine when I open the pdf
and print it from the menu, but when I use the silent print, the text
I've added doesn't print.
I'm n
Giampaolo Capelli wrote:
> thank you very much,
> I solved my problem by create a first file with concatenation of
> multiple pdf files, and then I used PdfStamper to add an index.
> Is there a way to avoid to create a temporary intermediate file, and to
> work directly on the file written by Pdf
thank you very much,
I solved my problem by create a first file with concatenation of
multiple pdf files, and then I used PdfStamper to add an index.
Is there a way to avoid to create a temporary intermediate file, and to
work directly on the file written by PdfCopy?
Bruno Lowagie wrote:
>[EMA
[EMAIL PROTECTED] wrote:
> This is my problem:
> I have some pdf files, and I want to create a pdf file which must include
> (import) them, and in the first page it must have an index for them.
> I want the index rows to be links to the corresponding pdf files imported in
> the global pdf.
Sound
This is my problem:
I have some pdf files, and I want to create a pdf file which must include
(import) them, and in the first page it must have an index for them.
I want the index rows to be links to the corresponding pdf files imported in
the global pdf.
Currently, I managed to create a pdf fil
Giampaolo Capelli wrote:
> Hi all,
> I would need a feature not implemented yet:
Apparently you don't know iText very well.
> I'm using cb.addTemplate() but it loose interactive pdf objects like
> annotations (for instance arrows inserted from Acrobat).
That's normal. It's documented in the
Hi all,
I would need a feature not implemented yet:
I'm using cb.addTemplate() but it loose interactive pdf objects like
annotations (for instance arrows inserted from Acrobat).
How can I solve my problem?
I can't use PdfCopy, because I'm dealing with a piece of legacy
software...
or co
I was wondering how someone would go about determining how much space
some text will take up when adding the text with PdfContentByte.
My problem is that I've added a page using PdfStamper.insertPage and I
now need to add text to that page. The text may be more than one page
long. If there is a be
Alan Johnson wrote:
I was wondering how someone would go about determining how much space
some text will take up when adding the text with PdfContentByte.
There are methods to measure the width of a String in class BaseFont.
My problem is that I've added a page using PdfStamper.insertPage
ColumnText.showTextAligned(). Don't forget to set the direction flag.
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of David Thielen
> Sent: Monday, November 07, 2005 2:43 PM
> To: 'itext'
> Subject: RE:
EMAIL PROTECTED]
Sent: Monday, November 07, 2005 3:19 AM
To: David Thielen; itext
Subject: RE: [iText-questions] PdfContentByte and Hebrew
Use ColumnText.
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of David Thielen
> Sent: Sunday,
Use ColumnText.
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of David Thielen
> Sent: Sunday, November 06, 2005 9:08 PM
> To: itext
> Subject: [iText-questions] PdfContentByte and Hebrew
>
> Hi;
>
&
Hi;
If I am using calls to PdfConteneByte to place text on the page, how do I
tell it some text is Hebrew (RTL)?
Thanks - dave
David Thielen
www.windwardreports.com
303-499-2544
---
SF.Net email is sponsored by:
Tame you
: "Serge LE HUITOUZE" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, July 26, 2005 2:57 PM
Subject: [iText-questions] pdfContentByte: endText vs. circle
Hello there,
I'm trying to produce graphical representations of some data together with
accompanying text that is represented as
Hello there,
I'm trying to produce graphical representations of some data together with
accompanying text that is represented as mere paragraphs.
My graphical representations involves axis and (String) labels on these axis.
My inspiration for drawing labels was file "align2.java" in Paulo's ex
Hi,
One question:
I have PDFContentByte object (passed to method as parameter).
How can I create a PDF document from this PDFContentByte object ? I presume
that this is done with the toPDF() method ?
But how ?
Kruno
---
This SF.Net email
Krunoslav Požega wrote:
Hi,
One question:
I have PDFContentByte object (passed to method as parameter).
How did you get the PdfContentByte object in the first place?
By answering this question, you also answer your own question
where the direct content goes.
br,
Bruno
--
Hi,
One question:
I have PDFContentByte object (passed to method as parameter).
How can I create a PDF document from this PDFContentByte object ? I presume
that this is done with the toPDF() method ?
But how ?
Kruno
To sporočilo in vse njegove morebitne priloge lahko vsebujejo zaupne
inform
o: Paulo Soares; itext-questions@lists.sourceforge.net
> Subject: Re: [iText-questions] PdfContentByte and OutOfMemory
> Exception
>
> Hello,
>
> what do you exactly mean with "Render just the jtable rows
> you need for each
> page"?
>
> I want to print 32 r
AM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] PdfContentByte and OutOfMemory Exception
>
> Hello,
>
> I print a JTable by using following code:
>
> PdfContentByte cb = writer.getDirectContent();
> cb.saveState();
> Graphics2D g2 = cb.createGr
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of kgnurps
> Sent: Friday, January 14, 2005 11:54 AM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] PdfContentByte and OutOfMemory Exception
>
Hello,
I print a JTable by using following code:
PdfContentByte cb = writer.getDirectContent();
cb.saveState();
Graphics2D g2 = cb.createGraphics(width, heigth);
table.print(g2);
g2.dispose();
cb.restoreState();
My problem is a quite big JTable, which needs more than 1 page to be print.
I use the
the resulting pdf-file.
>
> Best Regards,
>
> Katrin
>
>
> > You also need a cb.stroke() or cb.fill() after the rectangle.
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] On
> >
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of [EMAIL PROTECTED]
> > Sent: Monday, January 10, 2005 7:44 AM
> > To: iText-questions@lists.sourceforge.net
> > Subject: [iText-questions] PdfContentByte -another question
> >
> > Hi,
> >
> > first of a
You also need a cb.stroke() or cb.fill() after the rectangle.
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of [EMAIL PROTECTED]
> Sent: Monday, January 10, 2005 7:44 AM
> To: iText-questions@lists.sourceforge.net
> Subj
Hi,
first of all I'd like to thank Paulo for explaining to me how to move a
JTable graphic which is in a PdfContentByte. Everything works well.
But my JTable has lost two borders and I want to repaint them. But
cb.rectangle() does nothing. I also tried graphics.drawLine, but either the
border is
Move the jtable with PdfContentByte.transform().
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of [EMAIL PROTECTED]
> Sent: Friday, January 07, 2005 8:43 AM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-ques
Hi,
I am a newbie to iText and I think, I did not understand how the
PdfContentByte works. I want to print a JTable to pdf and created a document
header and footer and a PDFPTable which should work as the table header. The
JTable object is printed to a PdfContentByte.
Here's some code:
PdfWriter
Hello everybody,
I use iText for printing a JTable to pdf. But how can I fix the position of
the PdfContentByte (which holds the JTable)in the document? The table is
printed at the top of the document and at the very left side. It doesn't
accept any margins. Here's some code:
PdfWriter writer = P
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Philip Kaleta
> Sent: Thursday, July 15, 2004 3:23 AM
> To: [EMAIL PROTECTED]
> Subject: [iText-questions] PdfContentByte, Graphics2D,
> PdfPTable and Page Breaks
>
&g
Hiya,
This is my first post - *resounding chorus of applause* - and I have what I
think is a fairly simple set of questions. I wouldn't have posted them if I
hadn't already searched the mailing list and the net high-and-low for the
answers, to no avail. So, if you've heard these before, please f
Hi,
I using PdfContentByte to add line in absolute position. I have this problem:
when I add a line, this is not really add at the moment bat in the previous
chapter. I suppose that Chapter (and Sections inside) are flush on below
PdfContentByte only at the end of Chapter, so when I add a line di
Hi,
I try to use PdfContentByte to build my pdf.
This pdf is a response to a html link and should
be open in Browser. If i use Simple Itext, it runs.
I followed the documention to create lines etc.
But i use PdfContentByte I get the following Exception
java.io.IOException "The document hat no page
Change the fill color.
Best Regards,
Paulo Soares
> -Original Message-
> From: Sharp, Stephen (PLNSA) [SMTP:[EMAIL PROTECTED]
> Sent: Monday, August 18, 2003 6:38
> To: '[EMAIL PROTECTED]'
> Subject: [iText-questions] PdfContentByte - writing text to
I have a requirement to accurately position text on a page. This I have
done using the PdfContentByte and writing text to the contentbyte. However I
would also like to change the colour of the text. How can one achieve this?
Also there is a dead link in http://www.lowagie.com/iText/tutorial/ch10
I'm reading the on-line document of iText and in chapter 10 I've read that
exist one API of class PdfContentByte and one PDF Reference manual. The
link doesn't work. Could somebody tell me where I can find these???
Thanks a lot.
¡¡¡OFERTA VERANO: TISCALI ADSL TOP 24 h. a 9,95 /mes
más música y
I'm using a PdfPTable, I need to know whether the line I´m writing will
fix intothe page of oreging or change pages.
I don´t know how many rows fit in a page cause it depends on the value of
the row. I would like to know when adding a row where is the contentByte
position.
thanks, regards
pablo
How can I add into a PDFContentByte a anchor at a specific
position?
Zack
I've been having some trouble using PdfContentByte with our code. We've
been using pdflib with some of our other stuff, so it was easier to convert
using a low level pdf writer than to use the document objects. We're
getting into that later, but for now we're trying to us PdfContentByte.
Anyway.
64 matches
Mail list logo