Rank: Newbie
Groups: Registered
Joined: 7/15/2022(UTC) Posts: 2
|
var textOfAnnot="ab cd ef gh..."; var freeTextWithoutAp = new PdfFreeTextAnnotation(page); freeTextWithoutAp.BorderStyle = new Patagames.Pdf.Net.Wrappers.PdfBorderStyle(); freeTextWithoutAp.BorderStyle.Style = BorderStyles.Solid; freeTextWithoutAp.BorderStyle.Width = 0.00f; freeTextWithoutAp.BorderStyle.DashPattern = new float[] { 3, 3 }; freeTextWithoutAp.BorderEffect = new PdfBorderEffect(); freeTextWithoutAp.BorderEffect.Effect = BorderEffects.None; freeTextWithoutAp.BorderEffect.Intensity = 0; freeTextWithoutAp.Intent = AnnotationIntent.FreeTextTypeWriter; freeTextWithoutAp.Color = FS_COLOR; freeTextWithoutAp.Contents = textOfAnnot; freeTextWithoutAp.DefaultAppearance = "/Calibri 5 Tf 0 0 0 rg"; freeTextWithoutAp.Opacity = 1.0f; freeTextWithoutAp.Rectangle = new FS_RECTF(1*72, 3*72, 1*72+15, 2*72); freeTextWithoutAp.Subject = "a"; freeTextWithoutAp.Text = "b"; freeTextWithoutAp.TextAlignment = JustifyTypes.Centered; freeTextWithoutAp.RegenerateAppearances();
page.Annots.Add(freeTextWithoutAp);
The PdfFreeTextAnnotation created by the above code cannot be displayed in pdfview,But it can be displayed in the adobe reader。Please help me, thank you。
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close