> 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 the PdfPTable...
>
> But these are just workarounds. There's no elegant solution.
> br,
> Bruno
I tried changing the sample code I listed above to use PdfPTable instead of
Table, with identical results, the first two produced text and image, the third
produced only text, and the fourth (with nested PdfPTables) just showed an empty
rectangle. One major difference is PdfPCell doesn't seem to support the
'rowspan' property that Table does, so the output was a bit off for the Image in
the PdfPTable.
So, here's a question. 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. Here's the
general idea of what I've tried:
// Add Warning Images
PdfReader docReader = new PdfReader(tempFilename);
HashMap table = docReader.getNamedDestination();
for(String key : AnchorFactory.getWarningImageAnchorNames())
{
if(!key.startsWith(WARNING_IMAGE_ANCHOR_ID)
{
continue;
}
PdfArray dest = (PdfArray) table.get(key);
//Find the page location and add the Image at the right margin
}
It's the finding the page and the location on it that's causing me issues right
now...
And, by the way, thank you so much for all your help in this. I love the work
you've done with iText.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/