←选择平台

PDFLineAnnotation类

总结
包含PDF行注释的信息。
语法
c#
VB
c++
Java
[SerializableAttribute ()]公共PDFLineAnnotation:PDFAnnotation
< SerializableAttribute () >公共PDFLineAnnotation继承了PDFAnnotation
公共PDFLineAnnotation扩展PDFAnnotation
[SerializableAttribute ()]公共ref类PDFLineAnnotation:公共PDFAnnotation
讲话

PDFLineAnnotation类包含单个PDF行注释的信息。

例子
c#
VB
使用Leadtools;使用Leadtools.Codecs;使用Leadtools.Pdf;使用Leadtools.WinForms;使用Leadtools.Drawing;公共无效PDFLineAnnotationExample ()字符串pdfSrcFileName = Path.Combine(LEAD_VARS.ImagesDir,@“Leadtools.pdf”);字符串pdfDestFileName = Path.Combine(LEAD_VARS.ImagesDir,@“LEAD_Annotations.pdf”);PDFFile =PDFFile (pdfSrcFileName);List annotation =列表< PDFAnnotation > ();PDFLineAnnotation line =PDFLineAnnotation ();PDFPen钢笔=PDFPen ();//指定钢笔属性//创建宽度为2的红色虚线笔钢笔。Color = RasterColor.FromKnownColor(RasterKnownColor.Red);钢笔。PenStyle = pdfpen .虚线;钢笔。宽度= 2;线。钢笔=钢笔;线。曾经繁荣=PDFPoint(100、100);线。结束Point =PDFPoint(500、300);Annotations.Add(线);pdfFile。WriteAnnotations(注释,pdfDestFileName);静态LEAD_VARS公共常量字符串ImagesDir =@“C: \ LEADTOOLS21 \ Resources \图片”
进口Leadtools进口Leadtools。编解码器进口Leadtools.Pdf进口Leadtools。WinForms进口Leadtools。画公共PDFLineAnnotationExample ()昏暗的pdfSrcFileName作为字符串= Path.Combine (LEAD_VARS.ImagesDir“Leadtools.pdf”昏暗的pdfDestFileName作为字符串= Path.Combine (LEAD_VARS.ImagesDir“LEAD_Annotations.pdf”昏暗的pdfFile作为PDFFile =PDFFile (pdfSrcFileName)昏暗的注释作为List(Of PDFAnnotation) =PDFAnnotation列表()()昏暗的作为PDFLineAnnotation =PDFLineAnnotation ()昏暗的作为PDFPen =PDFPen ()'分配钢笔属性创建宽度为2的红色虚线笔钢笔。颜色= RasterColor.FromKnownColor(RasterKnownColor.Red)钢笔。PenStyle = PDFPen。冲钢笔。宽度= 2线。钢笔=钢笔线。曾经繁荣=PDFPoint(100、100)线。结束Point =PDFPoint(500、300)Annotations.Add(线)pdfFile。pdfDestFileName WriteAnnotations(注释)结束公共NotInheritableLEAD_VARS公共常量ImagesDir作为字符串“C: \ LEADTOOLS21 \ Resources \图片”结束
需求

目标平台

Leadtools.Pdf组装
188金宝搏的网址客服|支持|联系我们|知识产权公告
©1991 - 2021领德科技有限公司版权所有。