/// <summary>
		/// Draws image. Main method. Sets absolute position. 
		/// 
		/// </summary>
		/// <param name="img"></param>
		/// <param name="x"></param>
		/// <param name="y"></param>
		public void DrawImage(iTextSharp.text.Image img, float x, float y)
		{
			//20130603 :: mellorasinxelas
			if(img == null){
				Console.WriteLine("Image its null. Don't draw it.");
				return;
			}
			//----
			
			img.SetAbsolutePosition(x, y);			
			iPDFContent.AddImage(img);
		}
Exemple #2
0
        private byte[] addSignature(iTextSharp.text.Image gif, int pageNumber, double x, double y, string headerSignature)
        {
            //gif.ScalePercent(70f);
            gif.ScaleAbsolute(88.2f, 62.3f);
            gif.SetAbsolutePosition(Convert.ToInt64(x), Convert.ToInt64(y));

            return InsertImage(_pdfFile, gif, pageNumber, x, y, headerSignature);
        }