📄 pdfstream.cs
字号:
using System;
using System.Collections.Generic;
using System.Text;
using AnotherPDFLib.PdfGraphics;
namespace AnotherPDFLib
{
public partial class PdfStream : PdfDictionary
{
public int LengthEntry
{
get
{
PdfInteger lengthentry = this["Length"] as PdfInteger;
if (lengthentry != null)
{
return lengthentry.Value;
}
return 0;
}
set
{
this["Length"] = new PdfInteger(value);
}
}
/// <summary>
/// The name of a filter to be applied in processing the stream data.
/// </summary>
public StreamFilter Filter
{
get
{
PdfName filter = this["Filter"] as PdfName;
if (filter != null)
{
return (StreamFilter)Enum.Parse(typeof(StreamFilter), filter.Name);
}
return default(StreamFilter);
}
set
{
this["Filter"] = new PdfName(value.ToString());
}
}
/// <summary>
/// An array of filter names. Multiple filters should be specified in the order in which they are to be applied.
/// </summary>
public StreamFilters Filters
{
get
{
return this["Filter"] as StreamFilters;
}
set
{
this["Filter"] = value;
}
}
/// <summary>
/// A parameter dictionary used by the filters specified by Filter.
/// </summary>
public PdfDictionary DecodeParm
{
get
{
return this["DecodeParms"] as PdfDictionary;
}
set
{
this["DecodeParms"] = value;
}
}
/// <summary>
///
/// If there are multiple filters and any of the filters has parameters set to nondefault
/// values, DecodeParms must be an array with one entry for
/// each filter: either the parameter dictionary for that filter, or the null
/// object if that filter has no parameters (or if all of its parameters have
/// their default values).
///
/// </summary>
public PdfArray DecodeParms
{
get
{
return this["DecodeParms"] as PdfArray;
}
set
{
this["DecodeParms"] = value;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -