private static int MaxTempID = 10000000; //ten million item limit

        public static string GetTempID(PDFObjectType type)
        {
            _tempid++;
            if (_tempid > MaxTempID)
            {
                _tempid = 1;
            }
            return("_temp" + _tempid);
        }
Exemple #2
0
        //
        // .ctor
        //

        #region protected PDFOutputFormatting(PDFObjectType type, string name)

        protected PDFOutputFormatting(PDFObjectType type, string name, ColorSpaceIsSupported supportedColors)
            : base(type)
        {
            this._name           = name;
            this._supportedColor = supportedColors;
        }
Exemple #3
0
 /// <summary>
 /// Protected constructor for the PDFObject
 /// </summary>
 /// <param name="type">The identifying type name for this instance</param>
 protected PDFObject(PDFObjectType type)
 {
     this._type = type;
 }