Exemple #1
0
        /// <summary>
        /// Method that adds a paragraph 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="parWidth">Paragraph's width</param>
        public void addParagraph(string newText, int x, int y, predefinedFont fontType, int fontSize, int parWidth)
        {
            paragraphElement objParagraph = new paragraphElement(textAdapter.formatParagraph(newText, fontSize, fontType, parWidth), fontSize, fontType, x, y);

            _elements.Add(objParagraph);
            objParagraph = null;
        }
Exemple #2
0
        /// <summary>
        /// Method that adds a paragraph 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="parWidth">Paragraph's width</param>
        /// <param name="lineHeight">Line's height</param>
        /// <param name="parAlign">Paragraph's alignment</param>
        /// <param name="fontColor">Font's color</param>
        public void addParagraph(string newText, int x, int y, predefinedFont fontType, int fontSize, int parWidth, int lineHeight, predefinedAlignment parAlign, predefinedColor fontColor)
        {
            paragraphElement objParagraph = new paragraphElement(textAdapter.formatParagraph(newText, fontSize, fontType, parWidth, lineHeight, parAlign), fontSize, fontType, x, y, fontColor);

            _elements.Add(objParagraph);
            objParagraph = null;
        }
Exemple #3
0
 /// <summary>
 /// Method that adds a paragraph to the page object
 /// </summary>
 /// <param name="newText">Interface IEnumerable that contains paragraphLine objects</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 addParagraph(IEnumerable newText, int x, int y, predefinedFont fontType, int fontSize, predefinedColor fontColor)
 {
     try {
         paragraphElement objParagraph = new paragraphElement(newText, fontSize, fontType, x, y, fontColor);
         _elements.Add(objParagraph);
         objParagraph = null;
     } catch (pdfIncorrectParagraghException ex) {
         throw new pdfIncorrectParagraghException();
     }
 }
Exemple #4
0
 /// <summary>
 /// Method that adds a paragraph to the page object
 /// </summary>
 /// <param name="newText">Interface IEnumerable that contains paragraphLine objects</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 addParagraph(IEnumerable newText, int x, int y, predefinedFont fontType, int fontSize)
 {
     try {
         paragraphElement objParagraph = new paragraphElement(newText, fontSize, fontType, x, y);
         _persistentElements.Add(objParagraph);
         objParagraph = null;
     } catch (pdfIncorrectParagraghException ex) {
         UnityEngine.Debug.Log(ex);
         throw new pdfIncorrectParagraghException();
     }
 }
Exemple #5
0
 /// <summary>
 /// Method that adds a paragraph to the page object
 /// </summary>
 /// <param name="newText">Interface IEnumerable that contains paragraphLine objects</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 addParagraph(IEnumerable newText, int x, int y, predefinedFont fontType, int fontSize, predefinedColor fontColor)
 {
     try {
     paragraphElement objParagraph = new paragraphElement(newText, fontSize, fontType, x, y, fontColor);
     _elements.Add(objParagraph);
     objParagraph = null;
     } catch (pdfIncorrectParagraghException ex) {
         throw new pdfIncorrectParagraghException();
     }
 }
Exemple #6
0
 /// <summary>
 /// Method that adds a paragraph 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="parWidth">Paragraph's width</param>
 /// <param name="lineHeight">Line's height</param>
 /// <param name="parAlign">Paragraph's alignment</param>
 /// <param name="fontColor">Font's color</param>
 public void addParagraph(string newText, int x, int y, predefinedFont fontType, int fontSize, int parWidth, int lineHeight, predefinedAlignment parAlign, predefinedColor fontColor)
 {
     paragraphElement objParagraph = new paragraphElement(textAdapter.formatParagraph(newText, fontSize, fontType, parWidth, lineHeight, parAlign), fontSize, fontType, x, y, fontColor);
     _elements.Add(objParagraph);
     objParagraph = null;
 }
Exemple #7
0
 /// <summary>
 /// Method that adds a paragraph 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="parWidth">Paragraph's width</param>
 public void addParagraph(string newText, int x, int y, predefinedFont fontType, int fontSize, int parWidth)
 {
     paragraphElement objParagraph = new paragraphElement(textAdapter.formatParagraph(newText, fontSize, fontType, parWidth), fontSize, fontType, x, y);
     _elements.Add(objParagraph);
     objParagraph = null;
 }
 /// <summary>
 /// Method that adds a paragraph to the page object
 /// </summary>
 /// <param name="newText">Interface IEnumerable that contains paragraphLine objects</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 addParagraph(IEnumerable newText, int x, int y, predefinedFont fontType, int fontSize)
 {
     try {
     paragraphElement objParagraph = new paragraphElement(newText, fontSize, fontType, x, y);
     _persistentElements.Add(objParagraph);
     objParagraph = null;
     } catch (pdfIncorrectParagraghException ex) {
         UnityEngine.Debug.Log ( ex );
         throw new pdfIncorrectParagraghException();
     }
 }