I use one, you simply pass a PdfGraphics2D object to the
JTextArea's paint method.
it's that simple. you don't need anything
special.
Any other questions, I'm happy to answer
them.
Paulo, Bruno et al:
Would you like an example of this for the tutorial or
book?
-Bill Ensley
Bear Pr
Are there any examples of an editor like JTextArea
that has color, and the usual bold underline, & italics and then they data
is transferred into itext? I’d like to have
such an editor and would rather not have to reinvent the wheel. If not, any
tips and direction would be greatly appreciat
satya chowdary schrieb:
Are there any opensource converters which can perform this task..
Have a look at Apache poi for reading Excel/Word Documents with Java.
(http://jakarta.apache.org/poi/)
You could then write the PDFs using iText.
Greetings,
Mark
Alan,
Well this worked for me when
doing CJK characters:
get
the ascii number
convert it
to hexadecimel
prepend it
with a \u
Hope that
helps
Seth
-Original Message-From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]On Behalf Of
AlanSent: Friday, December 09,
Hi,
I have an application that returns a Font object and
a Character Index integer for point symbols.
I have worked out how to do all that is needed to
write this to PDF except for how to get the Unicode value.
For example, I can use the windows charmap.exe to
tell that CharacterIn
Hello,
Can any one guide me on how to convert a word/Excel documents to pdf.
My Requirements are read the word/excel docs from any database/Flatfile and convert them to PDF's.. which i can incorporate/embed in to the new pdf which i will be generating using iText.
I want to use with a pure
Hi,
I have a requirement where in i need to insert a pdf located at some directory to be inserted in to the pdf that is being generated by my program.
I want it either way to insert a pdf
and also to insert the contents of the pdf..
Any ideas how can i do it
Hi, is there any way to get the same efect of the table.addCell("teste")
when I use the paragraph with the string inside a pdfpcell? The cell
height can't have the same height of the String?
Thanks very much!
Ary Junior
Paulo Soares wrote:
The font name is "Times-Roman". To be safe use
Font
Changing
PdfContentByte dc = stamper.getWriter().getDirectContent();
to
PdfContentByte dc = stamper.getUnderContent(1);
Brought all the objects over (thanks!) except for the image that was in
reader1... any clue as to why? Does PdfImportedPage include images?
Thanks!
>>> Bruno Lowagie <[EMAIL
Eric Anderson wrote:
Changed the line
PdfImportedPage page = stamper.getWriter().getImportedPage(reader1, 1);
to
PdfImportedPage page = stamper.getImportedPage(reader1, 1);
same result..
java.lang.NullPointerException
at com.lowagie.text.pdf.PdfContentByte.addTemplate(Unknown Source)
Changed the line
PdfImportedPage page = stamper.getWriter().getImportedPage(reader1, 1);
to
PdfImportedPage page = stamper.getImportedPage(reader1, 1);
same result..
java.lang.NullPointerException
at com.lowagie.text.pdf.PdfContentByte.addTemplate(Unknown Source)
at com.lowagie
Eric Anderson wrote:
Thanks for your quick reply... changing the class to the PdfStamper in the
following code gives me this error now...
This is certainly wrong:
PdfImportedPage page =
stamper.getWriter().getImportedPage(reader1, 1);
It should be
PdfImportedPage page
Thanks for your quick reply... changing the class to the PdfStamper in the
following code gives me this error now...
//Read the two files and merge.
PdfReader reader1 = new PdfReader( pdfStream1.toByteArray() );
PdfR
Eric Anderson wrote:
I am trying to put one document on top of another... But can't seem to do it.
Using the following code I get the below error. Anyone know why?
You have the wrong class.
CopyFields can't be used to superimpose pages;
use PdfStamper instead.
br,
Bruno
I am trying to put one document on top of another... But can't seem to do it.
Using the following code I get the below error. Anyone know why?
//Read the two files and merge.
PdfCopyFields copy = new PdfCopyFields( out );
PdfReader reader1 = new PdfReader( pdfStream1.to
'\u00a0' works great. Thanks!
-Mitch
From: Paulo Soares [mailto:[EMAIL PROTECTED]
Sent: Friday, December 09, 2005 1:30 AMTo: Mitch Freed;
itext-questions@lists.sourceforge.netSubject: RE: [iText-questions]
line justification
That's expected for justified
text that also spaces the cha
Title: Re: [iText-questions] Background and border rethinking
For the moment I kept the
gray fill but internaly is converted to a GrayColor.
Paulo
From:
[EMAIL PROTECTED] on behalf of Bruno
LowagieSent: Fri 09-Dec-05 13:59To:
itext-questions@lists.sourceforge.netSubject: Re: [iText-qu
Paulo Soares wrote:
I had a good look at Rectangle borders and background processing and
I'm inclined to do the following changes/fixes:
- backgrounds are being written twice with variable borders
- Rectangle.setGrayFill() and Rectangle.grayFill() have no reason to
exist. The same can be achi
I had a good look at Rectangle borders and background
processing and I'm inclined to do the following changes/fixes:
- backgrounds are being written twice with variable
borders
- Rectangle.setGrayFill() and Rectangle.grayFill()
have no reason to exist. The same can be achieved with
Rectangle.
Title: [iText-questions] PdfReader process limit ?
You can have an out of memory
exception with any file if you don't have enough memory allocated in the JVM. A
way to reduce the memory needed is to use the constructor
PdfReader(RandomAccessFileOrArray).
From:
[EMAIL PROTECTED] on behal
Hi,
I got the "java.lang.OutOfMemoryError Exception" when I was trying to
use iText to read and process some huge PDF files.
The one caused the OutOfMemory problem is actually the document file
about the PDF Specification which I downloaded from Adobe website. And
its size is about 8.71 MB and w
That's expected for justified
text that also spaces the chars. You can turn off the char spacing with
PdfWriter.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO). Another option is to
use '\u00a0' underlined instead of underscores.
From:
[EMAIL PROTECTED] on behalf of Mitch
FreedSent: Fri
I think it is because of the difference between JUSTIFIED and
JUSTIFIED_ALL. The former is usually the way to go, the latter usually
creates the problem described by you. Please check the code once again
or switch between the two variants.On 12/9/05, Mitch Freed <[EMAIL PROTECTED]> wrote:
I have a
23 matches
Mail list logo