public PdfObject(PdfObjectId objectId) { #if DEBUG //if (dbugId == 142 || dbugId == 153) //{ //} #endif this.objectId = objectId; }
public PdfName(string name, PdfObjectId objectId) : base(objectId) { if (name == null) { throw new ArgumentNullException("name"); } this.name = name; }
/// <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; }
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; }
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; } }
public PdfArray(PdfObjectId objectId) : base(objectId) { }
public PdfObject(PdfObjectId objectId) { this.objectId = objectId; }
public PdfFontFile(PdfObjectId id, byte[] fontData) : base(fontData, id) { this.AddFilter(new FlateFilter()); this.dictionary[PdfName.Names.Length1] = new PdfNumeric(fontData.Length); }
public PdfStream(PdfObjectId objectId) : base(objectId) { }
public PdfString(byte[] data, PdfObjectId objectId) : base(objectId) { this.data = data; }
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; }
public PdfCMap(PdfObjectId id) : base(id) { this.ranges = new SortedList(); }
public PdfDictionary(PdfObjectId objectId) : base(objectId) { }
internal Entry(PdfObjectId objectId, long offset) { this.objectId = objectId; this.offset = offset; }
public PdfString(string val, Encoding encoding, PdfObjectId objectId) : base(objectId) { this.encoding = encoding; data = encoding.GetBytes(val); }
public PdfGoTo createInternalLinkGoTo(string id, PdfObjectId objectId) { IDNode node = (IDNode)idReferences[id]; node.CreateInternalLinkGoTo(objectId); return node.GetInternalLinkGoTo(); }
public PdfContentStream(PdfObjectId objectId) : base(objectId) { this.stream = new MemoryStream(); this.streamData = new PdfWriter(stream); }