APPEND PDF EXAMPLE

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

This ABCpdf example appends a PDF to the end of the document.

using System;
using System.Collections.Generic;
using System.Linq;
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)
        {
            // ---- Appends a PDF to the end of the document ----
            Doc doc1 = new Doc();
            doc1.FontSize = 192;
            doc1.HPos = 0.5;
            doc1.VPos = 0.5;
            doc1.AddText("Hello");
            Doc doc2 = new Doc();
            doc2.FontSize = 192;
            doc2.HPos = 0.5;
            doc2.VPos = 0.5;
            doc2.AddText("World");
            doc1.Append(doc2);
            doc1.Save(Server.MapPath("~/Results/Output.pdf"));
            doc1.Clear();
            doc2.Clear();
        }
    }
}


© 1997-2018 codehacker.com - All Rights Reserved            RapidSSL