Hi there,
I have a document that has multiple paragrpahs in it which is rendered
in html, I need to create a new page in the existing pdf and add that
text to the page without losing the html formatting, i.e ul/li etc and
display that on the last page.
I've tried trying to create a pdf and merge the two pdfs but the
formatting of the pages were all out of sync, while some pages that do
not show margins etc originally, now started to. I need to import the
page without any formatting changes.
Is it possible? If not do you know any other solutions?
Dom
-----Original Message-----
From: Elrinth [mailto:
elrinth@...]
Sent: 09 June 2009 12:37
To:
itextsharp-questions@...
Subject: Re: [itextsharp-questions] Writting Text on Images
I'm not sure what your trying to do exactly.
But use the PdfContentByte and write the text the last thing you do in
the
document page. That which is added last will come up in the upmost
layer.
example:
PdfContentByte cb = writer.DirectContent; // writer is grabbed from the
PdfDocument
// writing text
cb.BeginText();
cb.SetFontAndSize(bf, 12); // bf is a BaseFont
cb.SetColorFill(new Color(0x33, 0x33, 0xff));
cb.SetTextMatrix(45, 740); // x counted from left... y counted
from
bottom of page and up.
cb.ShowText("This is my text"); // set position in document
cb.EndText();
Oh and there's also layers, I haven't tried using them myself, but maybe
you
can use them and set some z-index with them?
Kind regards, Elrinth
--
View this message in context:
http://www.nabble.com/Writting-Text-on-Images-tp23940310p23941105.htmlSent from the itextsharp-questions mailing list archive at Nabble.com.
------------------------------------------------------------------------
------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions________________________________________________________________________
This e-mail has been scanned for all viruses by Star.
________________________________________________________________________
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions