• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# pdf.PageResources类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: Type3Glyph

 internal Type3Glyph(PdfWriter writer, PageResources pageResources, float wx, float llx, float lly, float urx, float ury, bool colorized) : base(writer) {
     this.pageResources = pageResources;
     this.colorized = colorized;
     if (colorized) {
         content.Append(wx).Append(" 0 d0\n");
     }
     else {
         content.Append(wx).Append(" 0 ").Append(llx).Append(' ').Append(lly).Append(' ').Append(urx).Append(' ').Append(ury).Append(" d1\n");
     }
 }
开发者ID:Gianluigi,项目名称:dssnet,代码行数:10,代码来源:Type3Glyph.cs


示例2: PageStamp

 internal PageStamp(PdfStamperImp stamper, PdfReader reader, PdfDictionary pageN) {
     this.pageN = pageN;
     pageResources = new PageResources();
     PdfDictionary resources = pageN.GetAsDict(PdfName.RESOURCES);
     pageResources.SetOriginalResources(resources, stamper.namePtr);
 }
开发者ID:yu0410aries,项目名称:itextsharp,代码行数:6,代码来源:PdfStamperImp.cs


示例3: InitPage

        /**
        * Initializes a page.
        * <P>
        * If the footer/header is set, it is printed.
        * @throws DocumentException on error
        */
        
        protected internal void InitPage() {
            // the pagenumber is incremented
            pageN++;
            
            // initialisation of some page objects
            annotationsImp.ResetAnnotations();
            pageResources = new PageResources();

            writer.ResetContent();
            if (IsTagged(writer)) {
                graphics = writer.DirectContentUnder.Duplicate;
                writer.DirectContent.duplicatedFrom = graphics;
            } else{
                graphics = new PdfContentByte(writer);
            }

            SetNewPageSizeAndMargins();
            imageEnd = -1;
            indentation.imageIndentRight = 0;
            indentation.imageIndentLeft = 0;
            indentation.indentBottom = 0;
            indentation.indentTop = 0;
            currentHeight = 0;
            
            // backgroundcolors, etc...
            thisBoxSize = new Dictionary<String, PdfRectangle>(boxSize);
            if (pageSize.BackgroundColor != null
            || pageSize.HasBorders()
            || pageSize.BorderColor != null) {
                Add(pageSize);
            }

            float oldleading = leading;
            int oldAlignment = alignment;
            pageEmpty = true;
            // if there is an image waiting to be drawn, draw it
            if (imageWait != null) {
                Add(imageWait);
                imageWait = null;
            }
            leading = oldleading;
            alignment = oldAlignment;
            CarriageReturn();
            
            IPdfPageEvent pageEvent = writer.PageEvent;
            if (pageEvent != null) {
                if (firstPageEvent) {
                    pageEvent.OnOpenDocument(writer, this);
                }
                pageEvent.OnStartPage(writer, this);
            }
            firstPageEvent = false;
        }
开发者ID:NelsonSantos,项目名称:fyiReporting-Android,代码行数:60,代码来源:PdfDocument.cs


示例4: StampContent

 /** Creates a new instance of StampContent */
 internal StampContent(PdfWriter writer, PageResources pageResources)
     : base(writer)
 {
     this.pageResources = pageResources;
 }
开发者ID:boecko,项目名称:iTextSharp,代码行数:6,代码来源:PdfCopy.cs


示例5: GetUnderContent

 public PdfContentByte GetUnderContent()
 {
     if (under == null) {
         if (pageResources == null) {
             pageResources = new PageResources();
             PdfDictionary resources = pageN.GetAsDict(PdfName.RESOURCES);
             pageResources.SetOriginalResources(resources, cstp.namePtr);
         }
         under = new PdfCopy.StampContent(cstp, pageResources);
     }
     return under;
 }
开发者ID:boecko,项目名称:iTextSharp,代码行数:12,代码来源:PdfCopy.cs


示例6: AddPage

 /**
  * Adds a blank page.
  * @param	rect The page dimension
  * @param	rotation The rotation angle in degrees
  * @since	2.1.5
  */
 public void AddPage(Rectangle rect, int rotation)
 {
     PdfRectangle mediabox = new PdfRectangle(rect, rotation);
     PageResources resources = new PageResources();
     PdfPage page = new PdfPage(mediabox, new Dictionary<String, PdfRectangle>(), resources.Resources, 0);
     page.Put(PdfName.TABS, Tabs);
     root.AddPage(page);
     ++currentPageNumber;
 }
开发者ID:boecko,项目名称:iTextSharp,代码行数:15,代码来源:PdfCopy.cs


示例7: PdfTemplate

 /**
 * Creates new PdfTemplate
 *
 * @param wr the <CODE>PdfWriter</CODE>
 */
 
 internal PdfTemplate(PdfWriter wr) : base(wr) {
     type = TYPE_TEMPLATE;
     pageResources = new PageResources();
     pageResources.AddDefaultColor(wr.DefaultColorspace);
     thisReference = writer.PdfIndirectReference;
 }
开发者ID:nicecai,项目名称:iTextSharp-4.1.6,代码行数:12,代码来源:PdfTemplate.cs


示例8: InitPage

        /**
        * Initializes a page.
        * <P>
        * If the footer/header is set, it is printed.
        * @throws DocumentException on error
        */
        
        protected internal void InitPage() {
            // the pagenumber is incremented
            pageN++;
            
            // initialisation of some page objects
            annotationsImp.ResetAnnotations();
            pageResources = new PageResources();

            writer.ResetContent();
            graphics = new PdfContentByte(writer);
            text = new PdfContentByte(writer);
            text.Reset();
            text.BeginText();
            textEmptySize = text.Size;

            markPoint = 0;
            SetNewPageSizeAndMargins();
            imageEnd = -1;
            indentation.imageIndentRight = 0;
            indentation.imageIndentLeft = 0;
            indentation.indentBottom = 0;
            indentation.indentTop = 0;
            currentHeight = 0;
            
            // backgroundcolors, etc...
            thisBoxSize = new Hashtable(boxSize);
            if (pageSize.BackgroundColor != null
            || pageSize.HasBorders()
            || pageSize.BorderColor != null) {
                Add(pageSize);
            }

            float oldleading = leading;
            int oldAlignment = alignment;
            // we move to the left/top position of the page
            text.MoveText(Left, Top);
            pageEmpty = true;
            // if there is an image waiting to be drawn, draw it
            if (imageWait != null) {
                Add(imageWait);
                imageWait = null;
            }
            leading = oldleading;
            alignment = oldAlignment;
            CarriageReturn();
            
            IPdfPageEvent pageEvent = writer.PageEvent;
            if (pageEvent != null) {
                if (firstPageEvent) {
                    pageEvent.OnOpenDocument(writer, this);
                }
                pageEvent.OnStartPage(writer, this);
            }
            firstPageEvent = false;
        }
开发者ID:pusp,项目名称:o2platform,代码行数:62,代码来源:PdfDocument.cs


示例9: StampContent

 /** Creates a new instance of StampContent */
 internal StampContent(PdfStamperImp stamper, PdfStamperImp.PageStamp ps)
     : base(stamper)
 {
     this.ps = ps;
     pageResources = ps.pageResources;
 }
开发者ID:bmictech,项目名称:iTextSharp,代码行数:7,代码来源:StampContent.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# pdf.PdfAction类代码示例发布时间:2022-05-26
下一篇:
C# pdf.PRTokeniser类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap