c#
VB
c++
Java
[SerializableAttribute ()]
公共类PDFTextAnnotation:PDFAnnotation
< SerializableAttribute () >
公共类PDFTextAnnotation
继承了PDFAnnotation
公共类PDFTextAnnotation
扩展PDFAnnotation
[SerializableAttribute ()]
公共ref类PDFTextAnnotation:公共PDFAnnotation
的PDFTextAnnotation类包含一个PDF文本注释信息。
使用Leadtools;
使用Leadtools.Codecs;
使用Leadtools.Pdf;
使用Leadtools.WinForms;
使用Leadtools.Drawing;
公共无效PDFTextAnnotationExample ()
{
字符串pdfSrcFileName = Path.Combine (LEAD_VARS.ImagesDir,@“Leadtools.pdf”);
字符串pdfDestFileName = Path.Combine (LEAD_VARS.ImagesDir,@“LEAD_Annotations.pdf”);
PDFFile PDFFile =新PDFFile (pdfSrcFileName);
= < PDFAnnotation >注释列表新列表< PDFAnnotation > ();
PDFTextAnnotation文本=新PDFTextAnnotation ();
PDFPen笔=新PDFPen ();
PDFBrush刷=新PDFBrush ();
/ /分配笔属性
/ /创建冲红笔的宽度2
钢笔。颜色= RasterColor.FromKnownColor (RasterKnownColor.Red);
钢笔。PenStyle = PDFPen.Dashed;
钢笔。宽度= 2;
/ /分配刷属性
/ /创建绿色固体刷
刷子。BrushStyle = PDFBrush.Solid;
刷子。颜色= RasterColor.FromKnownColor (RasterKnownColor.Green);
文本。FramePen =笔;
文本。FrameBrush =刷;
文本。FontHeight = 30;
文本。颜色= RasterColor.FromKnownColor (RasterKnownColor.Magenta);
文本。字体名=“天线”;
文本。内容=“这是注释文本”;
文本。理由= PDFTextJustification.Left;
文本。FrameBounds =新PDFRect (200, 500, 500, 300);
Annotations.Add(文本);
pdfFile。WriteAnnotations(注释,pdfDestFileName);
}
静态类LEAD_VARS
{
公共常量字符串ImagesDir =@“C: \ LEADTOOLS21 \ Resources \图片”;
}
进口Leadtools
进口Leadtools.Codecs
进口Leadtools.Pdf
进口Leadtools.WinForms
进口Leadtools.Drawing
公共子PDFTextAnnotationExample ()
昏暗的pdfSrcFileName作为字符串= Path.Combine (LEAD_VARS.ImagesDir“Leadtools.pdf”)
昏暗的pdfDestFileName作为字符串= Path.Combine (LEAD_VARS.ImagesDir“LEAD_Annotations.pdf”)
昏暗的pdfFile作为PDFFile =新PDFFile (pdfSrcFileName)
昏暗的注释作为列表(PDFAnnotation) =新PDFAnnotation列表()()
昏暗的文本作为PDFTextAnnotation =新PDFTextAnnotation ()
昏暗的笔作为PDFPen =新PDFPen ()
昏暗的刷作为PDFBrush =新PDFBrush ()
“分配笔属性
“创建冲红笔的宽度2
钢笔。颜色= RasterColor.FromKnownColor (RasterKnownColor.Red)
钢笔。PenStyle = PDFPen.Dashed
钢笔。宽度= 2
“分配刷属性
“创建绿色固体刷
刷子。BrushStyle = PDFBrush.Solid
刷子。颜色= RasterColor.FromKnownColor (RasterKnownColor.Green)
文本。FramePen =笔
文本。FrameBrush =刷
文本。FontHeight = 30
文本。颜色= RasterColor.FromKnownColor (RasterKnownColor.Magenta)
文本。字体名=“天线”
文本。内容=“这是注释文本”
文本。理由= PDFTextJustification.Left
文本。FrameBounds =新PDFRect (200、500、500、300)
Annotations.Add(文本)
pdfFile。pdfDestFileName WriteAnnotations(注释)
结束子
公共NotInheritable类LEAD_VARS
公共常量ImagesDir作为字符串=“C: \ LEADTOOLS21 \ Resources \图片”
结束类
帮助收藏
光栅net|C API|c++类库|HTML5 JavaScript
文档net|C API|c++类库|HTML5 JavaScript
医疗net|C API|c++类库|HTML5 JavaScript
医疗Web查看器net
188宝金博怎么下载
支持的平台上
net, Java, Android和iOS / macOS组件
C / c++类库的API
HTML5 JavaScript库
你的邮件已经发送到支持!有人应该联系!如果你的问题是紧急请回到聊天。
聊天时间:
周一——周五,上午6点等
谢谢你的反馈!
请填写表单重新开始一个新的聊天。
所有代理目前离线。
聊天时间:
周一-周五
早上8:30 - 6点
联系我们请填写这张表格,我们将通过电子邮件联系你。