当前位置: 首页>>代码示例>>C#>>正文


C# PdfName类代码示例

本文整理汇总了C#中PdfName的典型用法代码示例。如果您正苦于以下问题:C# PdfName类的具体用法?C# PdfName怎么用?C# PdfName使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


PdfName类属于命名空间,在下文中一共展示了PdfName类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: MarkedContentPoint

   public MarkedContentPoint(
 PdfName tag,
 PdfDirectObject properties
 )
       : base(tag, properties)
   {
   }
开发者ID:josuecorrea,项目名称:DanfeSharp,代码行数:7,代码来源:MarkedContentPoint.cs

示例2: DeviceColorSpace

 protected DeviceColorSpace(
     Document context,
     PdfName baseDataObject
     )
     : base(context, baseDataObject)
 {
 }
开发者ID:n9,项目名称:pdfclown,代码行数:7,代码来源:DeviceColorSpace.cs

示例3: PdfXObject

 public PdfXObject(byte[] objectData, PdfName name, PdfObjectId objectId)
     : base(objectId)
 {
     this.objectData = objectData;
     this.name = name;
     dictionary[PdfName.Names.Type] = PdfName.Names.XObject;
 }
开发者ID:nholik,项目名称:Fo.Net,代码行数:7,代码来源:PdfXObject.cs

示例4: NamedAction

 /**
   <summary>Creates a new action within the given document context.</summary>
 */
 public NamedAction(
     Document context,
     PdfName actionName
     )
     : base(context, PdfName.Named)
 {
     BaseDataObject[PdfName.N] = actionName;
 }
开发者ID:n9,项目名称:pdfclown,代码行数:11,代码来源:NamedAction.cs

示例5: Markup

 protected Markup(
     Page page,
     PdfName subtype,
     RectangleF box,
     string text
     )
     : base(page, subtype, box, text)
 {
 }
开发者ID:n9,项目名称:pdfclown,代码行数:9,代码来源:Markup.cs

示例6: Shape

 protected Shape(
     Page page,
     RectangleF box,
     string text,
     PdfName subtype
     )
     : base(page, subtype, box, text)
 {
 }
开发者ID:n9,项目名称:pdfclown,代码行数:9,代码来源:Shape.cs

示例7: LayerEntity

   protected LayerEntity(
 Document context,
 PdfName typeName
 )
       : base(context,
   new PdfDictionary(
     new PdfName[]
     {PdfName.Type},
     new PdfDirectObject[]
     {typeName}
   ))
   {
   }
开发者ID:josuecorrea,项目名称:DanfeSharp,代码行数:13,代码来源:LayerEntity.cs

示例8: Get

        public static ListModeEnum Get(
      PdfName name
      )
        {
            if(name == null)
            return ListModeEnum.AllPages;

              ListModeEnum? listMode = codes.GetKey(name);
              if(!listMode.HasValue)
            throw new NotSupportedException("List mode unknown: " + name);

              return listMode.Value;
        }
开发者ID:josuecorrea,项目名称:DanfeSharp,代码行数:13,代码来源:ListModeEnum.cs

示例9: Get

        /**
          <summary>Gets a specific filter object.</summary>
          <param name="name">Name of the requested filter.</param>
          <returns>Filter object associated to the name.</returns>
        */
        public static Filter Get(
            PdfName name
            )
        {
            /*
            NOTE: This is a factory singleton method for any filter-derived object.
              */
              if(name == null)
            return null;

              if(name.Equals(PdfName.FlateDecode)
            || name.Equals(PdfName.Fl))
            return FlateDecode;
              else if(name.Equals(PdfName.LZWDecode)
            || name.Equals(PdfName.LZW))
            throw new NotImplementedException("LZWDecode");
              else if(name.Equals(PdfName.ASCIIHexDecode)
            || name.Equals(PdfName.AHx))
            throw new NotImplementedException("ASCIIHexDecode");
              else if(name.Equals(PdfName.ASCII85Decode)
            || name.Equals(PdfName.A85))
            return ASCII85Filter;
              else if(name.Equals(PdfName.RunLengthDecode)
            || name.Equals(PdfName.RL))
            throw new NotImplementedException("RunLengthDecode");
              else if(name.Equals(PdfName.CCITTFaxDecode)
            || name.Equals(PdfName.CCF))
            throw new NotImplementedException("CCITTFaxDecode");
              else if(name.Equals(PdfName.JBIG2Decode))
            throw new NotImplementedException("JBIG2Decode");
              else if(name.Equals(PdfName.DCTDecode)
            || name.Equals(PdfName.DCT))
            throw new NotImplementedException("DCTDecode");
              else if(name.Equals(PdfName.JPXDecode))
            throw new NotImplementedException("JPXDecode");
              else if(name.Equals(PdfName.Crypt))
            throw new NotImplementedException("Crypt");

              return null;
        }
开发者ID:n9,项目名称:pdfclown,代码行数:45,代码来源:Filter.cs

示例10: Get

 /**
  * Returns an entry from the image dictionary.
  * @param key a key
  * @return the value
  */
 virtual public PdfObject Get(PdfName key) {
     return dictionary.Get(key);
 }
开发者ID:yu0410aries,项目名称:itextsharp,代码行数:8,代码来源:PdfImageObject.cs

示例11: SetScript

 /**
   <summary>Sets the Javascript script into the specified base data object.</summary>
 */
 internal static void SetScript(
     PdfDictionary baseDataObject,
     PdfName key,
     string value
     )
 {
     PdfDataObject scriptObject = baseDataObject.Resolve(key);
       if(!(scriptObject is PdfStream) && value.Length > 256)
       {baseDataObject[key] = baseDataObject.File.Register(scriptObject = new PdfStream());}
       // Insert the script!
       if(scriptObject is PdfStream)
       {
     bytes::IBuffer scriptBuffer = ((PdfStream)scriptObject).Body;
     scriptBuffer.SetLength(0);
     scriptBuffer.Append(value);
       }
       else
       {baseDataObject[key] = new PdfTextString(value);}
 }
开发者ID:n9,项目名称:pdfclown,代码行数:22,代码来源:JavaScript.cs

示例12: ToHighlightModeEnum

 /**
   <summary>Gets the highlighting mode corresponding to the given value.</summary>
 */
 private static HighlightModeEnum ToHighlightModeEnum(
     PdfName value
     )
 {
     foreach(KeyValuePair<HighlightModeEnum,PdfName> mode in HighlightModeEnumCodes)
       {
     if(mode.Value.Equals(value))
       return mode.Key;
       }
       return HighlightModeEnum.Invert;
 }
开发者ID:n9,项目名称:pdfclown,代码行数:14,代码来源:Widget.cs

示例13: SetPath

   /**
     <see cref="GetPath(PdfName)"/>
   */
   private void SetPath(
 PdfName key,
 string value
 )
   {
       BaseDictionary[key] = new PdfString(value);
   }
开发者ID:josuecorrea,项目名称:DanfeSharp,代码行数:10,代码来源:FullFileSpecification.cs

示例14: SetDependencies

        /**
          <see cref="GetDependencies(PdfName)"/>
        */
        private void SetDependencies(
      PdfName key,
      RelatedFiles value
      )
        {
            PdfDictionary dependenciesObject = (PdfDictionary)BaseDictionary[PdfName.RF];
              if(dependenciesObject == null)
              {BaseDictionary[PdfName.RF] = dependenciesObject = new PdfDictionary();}

              dependenciesObject[key] = value.BaseObject;
        }
开发者ID:josuecorrea,项目名称:DanfeSharp,代码行数:14,代码来源:FullFileSpecification.cs

示例15: GetEmbeddedFile

        /**
          <summary>Gets the embedded file associated to the given key.</summary>
        */
        private EmbeddedFile GetEmbeddedFile(
      PdfName key
      )
        {
            PdfDictionary embeddedFilesObject = (PdfDictionary)BaseDictionary[PdfName.EF];
              if(embeddedFilesObject == null)
            return null;

              return EmbeddedFile.Wrap(embeddedFilesObject[key]);
        }
开发者ID:josuecorrea,项目名称:DanfeSharp,代码行数:13,代码来源:FullFileSpecification.cs


注:本文中的PdfName类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。