Can you please give an example how to insert a rectangle in a existing
document using PdfStamper.

 

Regards,

 

Cristina Moura

 

 

  _____  

De: Iliadis Yannis [mailto:[email protected]] 
Enviada: terça-feira, 25 de Outubro de 2011 12:31
Para: Post all your questions about iText here
Assunto: Re: [iText-questions] ItextSharp an

 

You have to use PdfStamper to modify existing pdf's.

2011/10/25 Cristina Moura <[email protected]>

Hi! I'm trying the code below, but it creates a new document and I need the
rectangle to be writing in a existing document.

Is that possible?

 

Dim doc As Document = New Document()

Dim writer As PdfWriter = PdfWriter.GetInstance(doc, FileOut)

doc.Open()

dim cb As PdfContentByte = writer.DirectContent

cb.Rectangle(25, 25, 200, 100)

cb.Stroke()

doc.close()

 

 

Cumprimentos,

 

Cristina Moura

 

 

  _____  

De: Iliadis Yannis [mailto:[email protected]] 
Enviada: terça-feira, 25 de Outubro de 2011 11:18
Para: Post all your questions about iText here
Assunto: Re: [iText-questions] ItextSharp an

 

You can use the PdfContentByte rectangle method (rectangle(float x, float y,
float w, float h) ) by providing the coordinates and dimensions of the
rectangle.

2011/10/25 Cristina Moura <[email protected]>

Hi!

 

How can I draw a rectangle in existing pdf.


I have been working with pdfStamper to create a new document based on a
template. Now I need in this new document a rectangle around a image.


Can you help?

 

 

Regards,

 

Cristina Moura

 


----------------------------------------------------------------------------
--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a
reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php

 


----------------------------------------------------------------------------
--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a
reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php

 

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to