本文整理汇总了C#中PdfObject.IsArray方法的典型用法代码示例。如果您正苦于以下问题:C# PdfObject.IsArray方法的具体用法?C# PdfObject.IsArray怎么用?C# PdfObject.IsArray使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PdfObject
的用法示例。
在下文中一共展示了PdfObject.IsArray方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CacheObject
virtual public void CacheObject(PdfIndirectReference iref, PdfObject obj) {
if (obj.Type == 0) {
cachedObjects[new RefKey(iref)] = obj;
}
else if (obj is PdfDictionary) {
cachedObjects[new RefKey(iref)] = CleverPdfDictionaryClone((PdfDictionary) obj);
}
else if (obj.IsArray()) {
cachedObjects[new RefKey(iref)] = CleverPdfArrayClone((PdfArray) obj);
}
}
示例2: SerObject
private void SerObject(PdfObject obj, int level, ByteBuffer bb)
{
if (level <= 0)
return;
if (obj == null) {
bb.Append("$Lnull");
return;
}
obj = PdfReader.GetPdfObject(obj);
if (obj.IsStream()) {
bb.Append("$B");
SerDic((PdfDictionary)obj, level - 1, bb);
if (level > 0) {
md5.Initialize();
bb.Append(md5.ComputeHash(PdfReader.GetStreamBytesRaw((PRStream)obj)));
}
}
else if (obj.IsDictionary()) {
SerDic((PdfDictionary)obj, level - 1, bb);
}
else if (obj.IsArray()) {
SerArray((PdfArray)obj, level - 1, bb);
}
else if (obj.IsString()) {
bb.Append("$S").Append(obj.ToString());
}
else if (obj.IsName()) {
bb.Append("$N").Append(obj.ToString());
}
else
bb.Append("$L").Append(obj.ToString());
}
示例3: GetDirectArray
virtual protected PdfArray GetDirectArray(PdfObject obj) {
obj = GetDirectObject(obj);
if (obj != null && obj.IsArray())
return (PdfArray) obj;
return null;
}
示例4: MapGotoBookmark
private static void MapGotoBookmark(Hashtable map, PdfObject dest, IntHashtable pages)
{
if (dest.IsString())
map["Named"] = dest.ToString();
else if (dest.IsName())
map["Named"] = PdfName.DecodeName(dest.ToString());
else if (dest.IsArray())
map["Page"] = MakeBookmarkParam((PdfArray)dest, pages); //changed by ujihara 2004-06-13
map["Action"] = "GoTo";
}