----- Original Message ----- 
From: "net2tech" <[EMAIL PROTECTED]>
To: <itext-questions@lists.sourceforge.net>
Sent: Wednesday, November 01, 2006 8:14 PM
Subject: Re: [iText-questions] Images & MarkUp ( iTextSharp)


>
> Thanks Paulo,
>
> I tried the following
> ......
> PdfContentByte cb = writer.DirectContent;
> iTextSharp.text.Image img =
> iTextSharp.text.pdf.codec.TiffImage.GetTiffImage(rfa, 1);
> .....
> img.SetAbsolutePosition(0, 0);
> ColumnText.ShowTextAligned(cb, Element.ALIGN_CENTER, new
> Phrase("Hello"),document.Right , 0f,0f);
> cb.AddImage(img,true);
>
> But the text doesn't show up. Am I using the ShowTextAligned() correctly?
>

Yes but the text may be outside the boundaries of the visible page or be 
obscured by the image if it's a big image.

Paulo

> Many Thanks
>
> Paulo Soares wrote:
>>
>> ColumnText.ShowTextAligned().
>>
>> Paulo
>>
>> ----- Original Message ----- 
>> From: "net2tech" <[EMAIL PROTECTED]>
>> To: <itext-questions@lists.sourceforge.net>
>> Sent: Friday, October 27, 2006 11:53 PM
>> Subject: Re: [iText-questions] Images & MarkUp ( iTextSharp)
>>
>>
>>>
>>> Thank you! that seem to do the trick. Does the same concept apply for
>>> Text
>>> also? I want to put to a header on this document. I tried doing
>>>
>>> document.Add(new Paragraph("Hello there"));
>>>
>>> but the text didn't show up.
>>>
>>> again many Thanks!
>>>
>>>
>>> Paulo Soares wrote:
>>>>
>>>> img.SetAbsolutePosition(0, 0);
>>>> cb.AddImage(img);
>>>> cb.SetRGBColorFillF(0f, 255f, 0f);
>>>> cb.MoveTo(70f, 30f);
>>>> cb.LineTo(78f, 60f);
>>>> cb.LineTo(80f, 90f);
>>>> cb.ClosePathFillStroke();
>>>>
>>>> Paulo
>>>>
>>>> ----- Original Message ----- 
>>>> From: "net2tech" <[EMAIL PROTECTED]>
>>>> To: <itext-questions@lists.sourceforge.net>
>>>> Sent: Friday, October 27, 2006 9:27 PM
>>>> Subject: [iText-questions] Images & MarkUp ( iTextSharp)
>>>>
>>>>
>>>>>
>>>>> Hello,
>>>>>
>>>>> I am new to iTextSharp. Here is what I need to do. Take a Tiff image
>>>>> and
>>>>> make a PDF document. I have done that. :)Now I need to mark certain
>>>>> part
>>>>> of
>>>>> the Image which may contain words in a polygon/rectangle. How do I do
>>>>> this?
>>>>>
>>>>> I tried doing
>>>>>
>>>>>                    cb.SetRGBColorFillF(0f, 255f, 0f);
>>>>>                    cb.MoveTo(70f, 30f);
>>>>>                    cb.LineTo(78f, 60f);
>>>>>                    cb.LineTo(80f, 90f);
>>>>>                    cb.SetRGBColorFillF(255f, 0f, 0f);
>>>>>                    cb.ClosePathFillStroke();
>>>>>                    img.SetAbsolutePosition(0, 0);
>>>>>                    cb.AddImage(img);
>>>>>                    document.NewPage();
>>>>>
>>>>> but hasn't helped. What am I missing?  or am I on the right track?
>>>>>
>>>>> Thanks
>>>>> -- 
>>>>> View this message in context:
>>>>> http://www.nabble.com/Images---MarkUp-%28-iTextSharp%29-tf2522919.html#a7037733
>>>>> Sent from the iText - General mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>> -------------------------------------------------------------------------
>>>>> Using Tomcat but need to do more? Need to support web services,
>>>>> security?
>>>>> Get stuff done quickly with pre-integrated technology to make your job
>>>>> easier
>>>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>>>>> Geronimo
>>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>>>> _______________________________________________
>>>>> iText-questions mailing list
>>>>> iText-questions@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>>>
>>>>
>>>> -------------------------------------------------------------------------
>>>> Using Tomcat but need to do more? Need to support web services,
>>>> security?
>>>> Get stuff done quickly with pre-integrated technology to make your job
>>>> easier
>>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>>>> Geronimo
>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>>> _______________________________________________
>>>> iText-questions mailing list
>>>> iText-questions@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>>>
>>>>
>>>
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/Images---MarkUp-%28-iTextSharp%29-tf2522919.html#a7040066
>>> Sent from the iText - General mailing list archive at Nabble.com.
>>>
>>>
>>> -------------------------------------------------------------------------
>>> Using Tomcat but need to do more? Need to support web services, 
>>> security?
>>> Get stuff done quickly with pre-integrated technology to make your job
>>> easier
>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>>> Geronimo
>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>> _______________________________________________
>>> iText-questions mailing list
>>> iText-questions@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>
>>
>> -------------------------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job
>> easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache 
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> iText-questions mailing list
>> iText-questions@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>
>>
>
> -- 
> View this message in context: 
> http://www.nabble.com/Images---MarkUp-%28-iTextSharp%29-tf2522919.html#a7121587
> Sent from the iText - General mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job 
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to