Example #1
0
        public PdfObject(PdfObjectId objectId)
        {
#if DEBUG
            //if (dbugId == 142 || dbugId == 153)
            //{
            //}
#endif
            this.objectId = objectId;
        }
Example #2
0
 public PdfName(string name, PdfObjectId objectId)
     : base(objectId)
 {
     if (name == null)
     {
         throw new ArgumentNullException("name");
     }
     this.name = name;
 }
Example #3
0
 public PdfName(string name, PdfObjectId objectId)
     : base(objectId)
 {
     if (name == null)
     {
         throw new ArgumentNullException("name");
     }
     this.name = name;
 }
Example #4
0
 /// <summary>
 ///     Class constructor.
 /// </summary>
 /// <param name="objectId">The object id number</param>
 /// <param name="title">The title of the outline entry (can only be null for root Outlines obj)</param>
 /// <param name="action">The page which this outline refers to.</param>
 public PdfOutline(PdfObjectId objectId, string title, PdfObjectReference action)
     : base(objectId)
 {
     this.subentries = new ArrayList();
     this.count = 0;
     this.parent = null;
     this.prev = null;
     this.next = null;
     this.first = null;
     this.last = null;
     this.title = title;
     this.actionRef = action;
 }
Example #5
0
 /// <summary>
 ///     Class constructor.
 /// </summary>
 /// <param name="objectId">The object id number</param>
 /// <param name="title">The title of the outline entry (can only be null for root Outlines obj)</param>
 /// <param name="action">The page which this outline refers to.</param>
 public PdfOutline(PdfObjectId objectId, string title, PdfObjectReference action)
     : base(objectId)
 {
     this.subentries = new ArrayList();
     this.count      = 0;
     this.parent     = null;
     this.prev       = null;
     this.next       = null;
     this.first      = null;
     this.last       = null;
     this.title      = title;
     this.actionRef  = action;
 }
Example #6
0
 public PdfLink(PdfObjectId objectId, Rectangle r)
     : base(objectId)
 {
     this[PdfName.Names.Type] = PdfName.Names.Annot;
     this[PdfName.Names.Subtype] = PdfName.Names.Link;
     PdfArray rect = new PdfArray();
     rect.Add(new PdfNumeric(r.X / 1000m));
     rect.Add(new PdfNumeric(r.Y / 1000m));
     rect.Add(new PdfNumeric((r.X + r.Width) / 1000m));
     rect.Add(new PdfNumeric((r.Y - r.Height) / 1000m));
     this[PdfName.Names.Rect] = rect;
     this[PdfName.Names.H] = PdfName.Names.I;
     this[PdfName.Names.C] = DefaultColor;
     this[PdfName.Names.Border] = DefaultBorder;
 }
Example #7
0
        public PdfLink(PdfObjectId objectId, Rectangle r)
            : base(objectId)
        {
            this[PdfName.Names.Type]    = PdfName.Names.Annot;
            this[PdfName.Names.Subtype] = PdfName.Names.Link;
            PdfArray rect = new PdfArray();

            rect.Add(new PdfNumeric(r.X / 1000m));
            rect.Add(new PdfNumeric(r.Y / 1000m));
            rect.Add(new PdfNumeric((r.X + r.Width) / 1000m));
            rect.Add(new PdfNumeric((r.Y - r.Height) / 1000m));
            this[PdfName.Names.Rect]   = rect;
            this[PdfName.Names.H]      = PdfName.Names.I;
            this[PdfName.Names.C]      = DefaultColor;
            this[PdfName.Names.Border] = DefaultBorder;
        }
Example #8
0
        internal void CreateInternalLinkGoTo(PdfObjectId objectId)
        {
            if (internalLinkGoToPageReference == null)
            {
                internalLinkGoTo = new PdfGoTo(null, objectId);
            }
            else
            {
                internalLinkGoTo = new PdfGoTo(internalLinkGoToPageReference, objectId);
            }

            if (xPosition != 0)
            {
                internalLinkGoTo.X = xPosition;
                internalLinkGoTo.Y = yPosition;
            }
        }
Example #9
0
 public PdfArray(PdfObjectId objectId) : base(objectId)
 {
 }
Example #10
0
 public PdfObject(PdfObjectId objectId)
 {
     this.objectId = objectId;
 }
Example #11
0
 public PdfFontFile(PdfObjectId id, byte[] fontData)
     : base(fontData, id)
 {
     this.AddFilter(new FlateFilter());
     this.dictionary[PdfName.Names.Length1] = new PdfNumeric(fontData.Length);
 }
Example #12
0
 public PdfStream(PdfObjectId objectId) : base(objectId) { }
Example #13
0
 public PdfString(byte[] data, PdfObjectId objectId)
     : base(objectId)
 {
     this.data = data;
 }
Example #14
0
 public PdfString(string val, PdfObjectId objectId)
     : base(objectId)
 {
     data = encoding.GetBytes(val);
 }
 /// <summary>
 ///     Adds an entry to the sub-section.
 /// </summary>
 internal void Add(PdfObjectId objectId, long offset)
 {
     entries.Add(new Entry(objectId, offset));
 }
 public PdfObjectReference(PdfObject obj)
 {
     refId = obj.ObjectId;
 }
Example #17
0
 public PdfObjectReference(PdfObject obj)
 {
     refId = obj.ObjectId;
 }
Example #18
0
 public PdfObject(PdfObjectId objectId)
 {
     this.objectId = objectId;
 }
Example #19
0
 public PdfCMap(PdfObjectId id)
     : base(id)
 {
     this.ranges = new SortedList();
 }
Example #20
0
 public PdfCMap(PdfObjectId id)
     : base(id)
 {
     this.ranges = new SortedList();
 }
Example #21
0
 public PdfDictionary(PdfObjectId objectId)
     : base(objectId)
 {
 }
Example #22
0
 public PdfArray(PdfObjectId objectId) : base(objectId)
 {
 }
 internal Entry(PdfObjectId objectId, long offset)
 {
     this.objectId = objectId;
     this.offset   = offset;
 }
Example #24
0
 internal Entry(PdfObjectId objectId, long offset)
 {
     this.objectId = objectId;
     this.offset = offset;
 }
Example #25
0
 /// <summary>
 ///     Adds an entry to the sub-section.
 /// </summary>
 internal void Add(PdfObjectId objectId, long offset)
 {
     entries.Add(new Entry(objectId, offset));
 }
Example #26
0
 public PdfString(byte[] data, PdfObjectId objectId)
     : base(objectId)
 {
     this.data = data;
 }
Example #27
0
 public PdfString(string val, Encoding encoding, PdfObjectId objectId)
     : base(objectId)
 {
     this.encoding = encoding;
     data          = encoding.GetBytes(val);
 }
Example #28
0
 public PdfGoTo createInternalLinkGoTo(string id, PdfObjectId objectId)
 {
     IDNode node = (IDNode)idReferences[id];
     node.CreateInternalLinkGoTo(objectId);
     return node.GetInternalLinkGoTo();
 }
Example #29
0
 public PdfString(string val, PdfObjectId objectId)
     : base(objectId)
 {
     data = encoding.GetBytes(val);
 }
Example #30
0
 public PdfStream(PdfObjectId objectId) : base(objectId)
 {
 }
 public PdfContentStream(PdfObjectId objectId)
     : base(objectId)
 {
     this.stream     = new MemoryStream();
     this.streamData = new PdfWriter(stream);
 }
Example #32
0
 public PdfString(string val, Encoding encoding, PdfObjectId objectId)
     : base(objectId)
 {
     this.encoding = encoding;
     data = encoding.GetBytes(val);
 }