示例#1
0
        /// <summary>
        /// Method that adds a text element to the page object
        /// </summary>
        /// <param name="newText">Text</param>
        /// <param name="X">X position of the text in the page</param>
        /// <param name="Y">Y position of the text in the page</param>
        /// <param name="fontType">Font's type</param>
        /// <param name="fontSize">Font's size</param>
        /// <param name="fontColor">Font's color</param>
        public void addText(string newText, int X, int Y, predefinedFont fontType, int fontSize, predefinedColor fontColor)
        {
            textElement objText = new textElement(newText, fontSize, fontType, X, Y, fontColor);

            _elements.Add(objText);
            objText = null;
        }
示例#2
0
        /// <summary>
        /// Method that adds a text element to the page object
        /// </summary>
        /// <param name="newText">Text</param>
        /// <param name="X">X position of the text in the page</param>
        /// <param name="Y">Y position of the text in the page</param>
        /// <param name="fontType">Font's type</param>
        /// <param name="fontSize">Font's size</param>
        public void addText(string newText, int X, int Y, predefinedFont fontType, int fontSize)
        {
            textElement objText = new textElement(newText, fontSize, fontType, X, Y);

            _persistentElements.Add(objText);
            objText = null;
        }
示例#3
0
 /// <summary>
 /// Method that adds a text element to the page object
 /// </summary>
 /// <param name="newText">Text</param>
 /// <param name="X">X position of the text in the page</param>
 /// <param name="Y">Y position of the text in the page</param>
 /// <param name="fontType">Font's type</param>
 /// <param name="fontSize">Font's size</param>
 /// <param name="fontColor">Font's color</param>
 public void addText(string newText, int X, int Y, predefinedFont fontType, int fontSize, predefinedColor fontColor)
 {
     textElement objText = new textElement(newText, fontSize, fontType, X, Y, fontColor);
     _elements.Add(objText);
     objText = null;
 }
 /// <summary>
 /// Method that adds an image to the page object
 /// </summary>
 /// <param name="newImgObject">Image Object</param>
 /// <param name="X">X position of the image in the page</param>
 /// <param name="Y">Y position of the image in the page</param>		
 //        public void addImage(Image newImgObject, int X, int Y)
 //        {
 //            try {
 //                imageElement objImage = new imageElement(newImgObject, X, Y);
 //                _persistentElements.Add(objImage);
 //                objImage = null;
 //            } catch (pdfImageNotFoundException ex) {
 //                throw new pdfImageNotFoundException(ex.Message,ex);
 //            } catch (pdfImageIOException ex) {
 //                throw new pdfImageIOException(ex.Message,ex);
 //            }
 //        }
 /// <summary>
 /// Method that adds an image to the page object
 /// </summary>
 /// <param name="newImgSource">Image's name</param>
 /// <param name="X">X position of the image in the page</param>
 /// <param name="Y">Y position of the image in the page</param>
 /// <param name="height">New height of the image</param>
 /// <param name="width">New width of the image</param>
 //        public void addImage(string newImgSource, int X, int Y, int height, int width)
 //        {
 //            try {
 //                imageElement objImage = new imageElement(newImgSource, X, Y, height, width);
 //                _persistentElements.Add(objImage);
 //                objImage = null;
 //            } catch (pdfImageNotFoundException ex) {
 //                throw new pdfImageNotFoundException(ex.Message,ex);
 //            } catch (pdfImageIOException ex) {
 //                throw new pdfImageIOException(ex.Message,ex);
 //            }
 //        }
 /// <summary>
 /// Method that adds an image to the page object
 /// </summary>
 /// <param name="newImgObject">Image Object</param>
 /// <param name="X">X position of the image in the page</param>
 /// <param name="Y">Y position of the image in the page</param>
 /// <param name="height">New height of the image</param>
 /// <param name="width">New width of the image</param>
 //        public void addImage(Image newImgObject, int X, int Y, int height, int width)
 //        {
 //            try {
 //                imageElement objImage = new imageElement(newImgObject, X, Y, height, width);
 //                _persistentElements.Add(objImage);
 //                objImage = null;
 //            } catch (pdfImageNotFoundException ex) {
 //                throw new pdfImageNotFoundException(ex.Message,ex);
 //            } catch (pdfImageIOException ex) {
 //                throw new pdfImageIOException(ex.Message,ex);
 //            }
 //        }
 /// <summary>
 /// Method that adds a text element to the page object
 /// </summary>
 /// <param name="newText">Text</param>
 /// <param name="X">X position of the text in the page</param>
 /// <param name="Y">Y position of the text in the page</param>
 /// <param name="fontType">Font's type</param>
 /// <param name="fontSize">Font's size</param>
 public void addText(string newText, int X, int Y, predefinedFont fontType, int fontSize)
 {
     textElement objText = new textElement(newText, fontSize, fontType, X, Y);
     _persistentElements.Add(objText);
     objText = null;
 }