[iText-questions] More Image and Paragraph Wierdness, involving setKeepTogether

2007-01-30 Thread R . Greg
I'm adding a Paragraph to my Document that has an Image within it. The following code segment adds it, right aligned, with text wrap, and puts some text around it. This works fine. Image img = Image.getInstance("image.png"); img.setAlignment(Image.RIGHT | Image.TEXTWRAP); Paragraph p = new Para

Re: [iText-questions] Images in paragraphs in cells not showing

2007-01-23 Thread R . Greg
Bruno Lowagie (iText lowagie.com> writes: > Have you tried wrapping the image in a Chunk? Wrapping the Image in a Chunk did the trick. I don't suppose you could shed some light on why iText behaves like this? :p Thanks again for all the help, I appreciate it! -

Re: [iText-questions] Images in paragraphs in cells not showing

2007-01-23 Thread R . Greg
> R.Greg wrote: > > Suppose I ditch the thought of adding the Image in a > > Paragraph and adding that Paragraph to my Table/PdfPTable. Suppose I tag > > the > > text with an Anchor, then I open up the Document with PdfReader. > > Now you have completely lost me. Why are you introducing Anchor?

Re: [iText-questions] Images in paragraphs in cells not showing

2007-01-23 Thread R . Greg
GAMBELLI Raffaele prismaeng.it> writes: > > In my work, I have also to provide both writing system, PDF and RTF. > In the beginning, I used for both the writers Table class. > I have many internal objects generated parsing a xml printing template, then I convert these objects in > Itext Element

Re: [iText-questions] Images in paragraphs in cells not showing

2007-01-23 Thread R . Greg
Sorry, I fudged the code a bit copying and pasting. Here's how it 'should' look: // Add Warning Images PdfReader docReader = new PdfReader(tempFilename); HashMap table = docReader.getNamedDestination(); // AnchorFactory keeps track of all the Anchor objects I've requested, so I know // the name

Re: [iText-questions] Images in paragraphs in cells not showing

2007-01-23 Thread R . Greg
> Certainly not. > There might be some workarounds, like using SimpleTable > (translates to PdfPTable for PDF, and to Table for RTF, HTML); > or you could create a Table as well as a PdfPTable, pause the > PdfWriter before adding the Table, then resume, and pause > the Rtf/HtmlWriter before adding

Re: [iText-questions] Images in paragraphs in cells not showing

2007-01-23 Thread R . Greg
Bruno Lowagie (iText lowagie.com> writes: > > R.Greg wrote: > > I was hoping someone here could shed some light on this. > > Not as long as you're using Table instead of PdfPTable. > br, > Bruno Does Table just not support that functionality? Unfortunately, I have a requirement that I be able

Re: [iText-questions] how to get a jFreeChart Chart in Chunk

2007-01-22 Thread R . Greg
> Hi, > > > I am creating a pdf > file consisting of chapters, sections and subsections. Now I want to add an > jFreeChart Chart into a chapter or a section. I, too, am using JFreeChart in my application. I simply add the charts as Image objects to Paragraphs, as follows: Paragraph result

[iText-questions] Images in paragraphs in cells not showing

2007-01-22 Thread R . Greg
I've got a lot of data that's sorted out in tables for easy analysis. There are some situations where I want to flag some bit of data as important. I've noticed some odd behavior with respect to Images and Tables, and I was hoping someone here could shed some light on this. Below is some code

[iText-questions] Safely (?) Adding Anchor Destinations

2007-01-12 Thread R . Greg
I'm creating a report based on several input files. One section of the report is an appendix, listing a good deal of information. I want to be able to crosslink items in the body of the report to information in the appendix, but there's no guarantee that the destination will actually be there in

[iText-questions] Footer Elements with different alignment properties

2007-01-03 Thread R . Greg
Here's what I want: - A footer - With user-defined, centered text - And a right-aligned page number I've managed to create a multi-line footer, but both the text and the page number are right-aligned. Is it just wishful thinking at this point, or can I somehow modify the footer's data, perhaps b