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

Notification

Icon
Error

Post a reply
From:
Message:

Maximum number of characters in each post is: 32767
Bold Italic Underline   Highlight Quote Choose Language for Syntax Highlighting Insert Image Insert an existing Attachment or upload a new File... Create Link   Unordered List Ordered List   Left Justify Center Justify Right Justify   Outdent Indent   More BBCode Tags
Font Color Font Size
Security Image:
Enter The Letters From The Security Image:
  Preview Post Cancel

Last 10 Posts (In reverse order)
Paul Rayman Posted: Sunday, November 12, 2023 9:09:22 PM(UTC)
 
Hi!

Code:

var page = pdfViewer1.CurrentPage;
float x1, y1, x2, y2;
x1 = 100; y1 = 400;
x2 = 400; y2 = 300;
var line = PdfPathObject.Create(FillModes.None, true);
line.Path.Add(new FS_PATHPOINTF(x1, y1, PathPointFlags.MoveTo));
line.Path.Add(new FS_PATHPOINTF(x2, y2, PathPointFlags.LineTo));
float[] dash = { 10, 5, 2, 5 };
line.LineWidth = 3.0f;
line.StrokeColor = FS_COLOR.Red;
line.SetDashArray(dash);
page.PageObjects.Add(line);
page.GenerateContent();
page.ReloadPage();
pdfViewer1.Invalidate();
goodluck Posted: Monday, November 6, 2023 4:18:37 AM(UTC)
 
can someone give an example!