ADD ARC EXAMPLE

The following .NET application has been developed using ABCpdf, ASP.NET, and the C# language.

This ABCpdf example creates a PDF document with an arc added to it.

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Drawing;
using System.Text;
using System.Net;
using System.IO;
using WebSupergoo.ABCpdf8;

namespace ABCpdfExamples
{
    public partial class test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {           
            // ---- Adds an arc to the current page ----
            Doc doc = new Doc();
            doc.Width = 24;
            doc.Color.String = "120 0 0";
            doc.AddArc(0, 270, 300, 400, 200, 300);
            doc.Save(Server.MapPath("~/Results/Output.pdf"));
            doc.Clear();
        }
    }
}

Add Arc

© 1997-2021    Codehacker - All Rights Reserved