logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
huang  
#1 Posted : Saturday, July 30, 2022 3:45:36 AM(UTC)
huang

Rank: Newbie

Groups: Registered
Joined: 7/15/2022(UTC)
Posts: 2
China


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。
Users browsing this topic
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.