Woohoo!! :) That would have saved me about 4 days of research and
debugging... :)
You might also want to consider marking classes as "final" once they
have been added to a Document. Since, for example, new cells added to a
table that has already been added to a document are ignored. This too
w
Yes, I can throw an exception if there's no listener associated.
Best Regards,
Paulo Soares
- Original Message -
From: "Andrew McLaughlin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 22, 2003 1:06
Subject: Re: [iText-questions] PDF's as Templates
> Ack!! That fixe
Ack!! That fixed it. Can you throw an exception if the writer is
created after the document is open?! These timing issues are real
development time burners... :(
Andrew
On Friday, March 21, 2003, at 04:10 PM, Paulo Soares wrote:
I was worried that I had goofed up somewhere when I introduced t
Hi I have tried to add nested tables to a Document object but keep getting a
error (stack trace)
Error: null
com.lowagie.text.DocumentException
com.lowagie.text.DocumentException
at com.lowagie.text.pdf.PdfDocument.add(Unknown Source)
at com.lowagie.text.Document.add(Unknown Source)
This only hap
I was worried that I had goofed up somewhere when I introduced the generic
resources class but the problem is on the other side.
The problem is that the document must be opened after creating the writer
and not before.
Best Regards,
Paulo Soares
- Original Message -
From: "Matt Benson" <[
Please send me privately the tiff.
Best Regards,
Paulo Soares
- Original Message -
From: "Aaron Kelley" <[EMAIL PROTECTED]>
To: "'Paulo Soares'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, March 21, 2003 20:33
Subject: RE: [iText-questions] Group 3 TIFF compression
> It is a
As if transparency was the only new thing in 1.4. Thinking better that's
probably right. I'm not adding transparency to iText this weekend, though.
iText does a few 1.4 bits but you'll have to look hard to find them. Most of
the times the PDF is compatible with 1.2 and I use it to generate PDFs to
That's probably the printer limits.
Best Regards,
Paulo Soares
- Original Message -
From: "K. Allan Wilson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 21, 2003 21:09
Subject: [iText-questions] Setup for margins
> I am using the line:
>
> >> Document document = ne
Hi,
I just tried Bruno's example code classes (PleaseWaitServlet.java and
MyPdfGenerator.java), but my IE browser couldn't open the response file.
I modified the servlet code by adding these statement into my Struts action class
PDFGenerator generator = (PDFGenerator) session.getAttribu
Wow, I have no explanation for that! Wiser heads than
mine will have to address this. Sorry for my earlier
doubt but you can understand my reasoning...
-Matt
--- Andrew McLaughlin
<[EMAIL PROTECTED]> wrote:
> I ran the thing under debug and know for a fact that
> it is prs which is
> null and
I ran the thing under debug and know for a fact that it is prs which is
null and not template. :) Keep in mind the template is the one I
created from the get go... :) Here's a screen shot showing the state of
the debugger right before it executes that line. Note that prs is null
whereas templat
Still, according to that section of code, there are
two places where the NPE could be thrown: one, at
prs.addXObject() and the other at
template.getIndirectReference(). It looks as though
the PageResources object should have been initialized
down the chain when you called Document.open(). This
a
The PDF's, all three, are definitely not null as I can view them
elsewhere. If I change the filename and rerun, I get a
FileNotFoundException so I know I'm hooking up the right PDF's.
According to that section of code, it appears that the PageResources
has not been initialized, to wit:
pu
Try minus number.
Tim (Qinjian) Jian
3833 Farragut Ave.
Kensington, MD 20895
Phone: 301-949-4400 Ext. 112
Fax: 301-929-5728
Email: [EMAIL PROTECTED]
I am using the line:
>> Document document = new Document(PageSize.LETTER, 0, 0, 10, 10);
and it seems that I still have about a one inch margin on the left and right. Is there any way to get rid of that. Thanks for the help on formatting column width. I used your template Kenny. Thanks f
It's in a separate jar: iTextXML.jar
(or if you need the source: iTextXML.zip or iTextXML.tar.gz)
Bruno
---
This SF.net email is sponsored by: Does your code think in ink?
You could win a Tablet PC. Get a free Tablet PC hat just for playing.
It is a multi-strip image and my code handles multi-strip images of
Group 4 compression fine. In fact, that link you sent was a response to
an older question I had (to get the multi-strip Group 4 compression
working). I was able to figure everything out from what you provided
last time. I now ha
Never got an answer on this, I apparently had a patch
to PdfDocument that transferred the horizontal
alignment of a keepTogether Paragraph to the wrapping
Table. Does this work in some other automagic fashion
or does the change need to go into the codebase?
Thanks,
Matt
--- Matt Benson <[EMAIL P
At 6:07 PM +0100 3/21/03, Carsten Hammer wrote:
What should I do to generate a PDF 1.3 conforming file using itext?
Since iText doesn't support any of the PDF 1.4 features - it
would be pretty hard to generate anything BUT 1.3 (well, possibly
earlier, but...)
Leonard
--
Code looks good to me; however judging from the stack
trace I would say that whichever imported page you
tried to add at line 36 of your code was null. If so,
your problem is not here, but with that PDF.
-Matt
--- Andrew McLaughlin
<[EMAIL PROTECTED]> wrote:
> Okay, I've been taking a stab at tr
Okay, I've been taking a stab at trying to make the templated PDF work.
However, I'm running into resistance. I'm not completely certain that I
have set it up properly as I am getting a NullPointerException
(indicated below). Can someone take a gander at this code fragment?
Docum
I answered my own questions. Here is what I discovered: first, on using
setFixedHeight, the height of the row will be the largest height of any
cell. When I used smaller numbers they didn't take affect because I hadn't
set it on every cell in the row (just for the first cell). Though that
works
Hello all. I've run into a little problem. I have a PdfPTable with
PdfPCells that I need to "squish up". I want to make the cell height very
tight on the text in the cell. To make the cell height smaller I used
PdfPCell.setFixedHeight but it seems not to want to make the cell smaller
than what
I think there are two problems: One, IE wants to know
the size of the PDF as you send it. This means you
can't write your PDF directly to your
ServletOutputStream. You have to write to a
ByteArrayOutputStream so that you can set the stream
size on your ServletOutputStream. The second problem
is
For Tables, you can use something like
setWidths(float[]) or setWidths(int[]). These are
relative, which is nice. PdfPTable has the same
methods or you can construct it with the same type of
relative-width float array.
-Matt
--- "K. Allan Wilson" <[EMAIL PROTECTED]> wrote:
> I am trying create
Hi,
What should I do to generate a PDF 1.3 conforming file using itext?
Is this possible?
Best regards,
Carsten Hammer
---
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun
I am trying create a report with 7 columns per row. Two of my columns don't have enough room so the text is taking up two lines. Some columns have more than enough room. How do I specify the width of my columns manually? Thanks for pointing me toward tables I plead temporary insanity for forge
Hello all,
I have some problems with the paragraph and the IndentationLeft. As I
understood theIndentationLeft should move the paragraph from the left
margin? If this is not the case what method should I use? I want that the
first paragraph is 2cm from the left margin, the second 4cm etc.
Heres t
Hi,
I am new to iText, an have a basic question :
I have written programs that implement the Printable interface. As such, the
text is drawn into a Graphics canvas.
What I am having problems with is to have the graphics2D object create by
the template.createGraphics to point to the same referenc
iText already tries to avoid widows in PDF rendering
of Paragraphs. Also, the Paragraph class has a
setKeepTogether(boolean) method whose purpose should
be evident based on its name. Neither of these
specifically fulfills your request, which has its own
merit, but these might suffice in the absen
Hi Paulo/Bruno,
Is it possible to add a new feature of iText through which we can
specify the number of lines need for a paragraph to start in the current
page. Putting it in more elaborate terms:
Paragaph p = new Paragraph();
p.needLines();
Means that if n lines of the paragraph can
Hi;
I know this has been asked & answered before
but I never looked at those e-mails before.
What's the scoop on the problem with IE displaying
a pdf file and what's the work-around?
thanks - dave
Title: Message
Use a
table. A cell can contain the image.
Ramana.
-Original Message-From: K. Allan Wilson
[mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 9:20
AMTo: [EMAIL PROTECTED]Subject:
[iText-questions] Text and Image on one LineI am trying
to create a r
I am trying to create a report that shows:
FirstName, LastName, Date, Time, and Signature(jpeg image)
This line will be repeated over and over until it goes through the list of people that has to be printed, for my testing I am using 45 times. How can I put the text and the jpeg image on
setTotalWidth() does nothing if used with Document.add(PdfPTable). Use
setWidthPercentage() instead. Next version has the option of also using
absolute values in this case.
Best Regards,
Paulo Soares
> -Original Message-
> From: Sridhar [SMTP:[EMAIL PROTECTED]
> Sent: Friday, March 21, 20
PdfAcroForm has problems due to the renaming of fonts. It will be fixed in
the next version. Meanwhile use TextField to generate text, list and combo.
As a bonus is also has more options.
Best Regards,
Paulo Soares
> -Original Message-
> From: inVader [SMTP:[EMAIL PROTECTED]
> Sent: Frida
Hi
How to set the width of the PdfPTable in JSP. When I use pdfptable.setTotalWidth(500); its working fine when I execute the example.. but whereas when I use this in my JSP the width is not setting the width is always fixed though I increase or decrease.. could you plz help me in this.
PdfPT
Hello, itext-questions.
Tools: iText 0.97, Acrobat Reader 4, Acrobat Reader 5.
I use Fdf and Pdf files together. First, I generate Pdf file
with AcroForm. Next, I generate Fdf file width form data.
1. When I try to open Fdf in Acrobat Reader it loads Pdf file with data from Fdf.
That's right. But
Download the jar from www.lowagie.com not from sourceforge.
Best Regards,
Paulo Soares
> -Original Message-
> From: Thomas Kübler [SMTP:[EMAIL PROTECTED]
> Sent: Friday, March 21, 2003 6:00
> To: [EMAIL PROTECTED]
> Subject: [iText-questions] Error with itext0.97
>
> Good Morning,
Thomas Kübler wrote:
Good Morning,
i changed from the itext0.94 version to the new one itext0.97.
i get then a error with my xml-application. after i initialized the
pdf-document and open
the PDFWriter a get the error. what can i do?
Recompile the iTextXML.jar with JDK1.3.
I recompiled the iTe
Good Morning,
i changed from the itext0.94 version to the new one
itext0.97.
i get then a error with my xml-application. after i
initialized the pdf-document and open
the PDFWriter a get the error. what can i
do?
thank you.
thomas kübler
java.lang.NoSuchMethodError
at
com.lowagie.te
Hello,
I am trying to work out a HTML to PDF converter with the help of JTidy
(http://lempinen.net/sami/jtidy/).
For that I am using SAXmyHtmlHandler as suggested in the tutorial.
All is fine except that whenever I use the font tag to set a size for a
particular text the size in the PDF is ridicu
Hello,
I am trying to work out a HTML to PDF converter with the help of JTidy
(http://lempinen.net/sami/jtidy/).
For that I am using SAXmyHtmlHandler as suggested in the tutorial.
All is fine except that whenever I use the font tag to set a size for a
particular text the size in the PDF is ridicu
Hi!
Does anybody know how i can detect a new page event
in RTF informs?
Another question:
How i can know the page number?
I have tried with document.getPageNumber() but always
it´s returns 0.
Thanks for any help
Greetings,
Pablo
___
Yahoo! M
44 matches
Mail list logo