Create Multiple Pages in ABCpdf in .net


Note -If you are new in AbcPdf Click here for More Detail


Doc.aspx 

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>    
     <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Create Pdf" />    
    </div>
    </form>
</body>
</html>


Doc.aspx.cs 

Add namespace
using WebSupergoo.ABCpdf10;


Doc.aspx.cs

protected void Button1_Click(object sender, EventArgs e)
 {
   Doc theDoc = new Doc();
   theDoc.Rect.Inset(72, 80);
   int theID;
          
   theID = theDoc.AddImageUrl("http://www.websupergoo.com/abcpdf-download.htm");
   while (true)
   {
    theDoc.FrameRect();
    if (!theDoc.Chainable(theID))
    break;
    theDoc.Page = theDoc.AddPage();
    theID = theDoc.AddImageToChain(theID);
    }
    for (int i = 1; i <= theDoc.PageCount; i++)
    {
    theDoc.PageNumber = i;
    theDoc.Flatten();
    }             
    theDoc.Save(@"D:pdf\pdfnew.pdf");
    theDoc.Clear();
  }


Share this

Previous
Next Post »

1 comments:

comments
Anonymous
March 27, 2022 at 1:40 AM delete

Create Multiple Pages In Abcpdf In .Net - Complete .Net Tutorial >>>>> Download Now

>>>>> Download Full

Create Multiple Pages In Abcpdf In .Net - Complete .Net Tutorial >>>>> Download LINK

>>>>> Download Now

Create Multiple Pages In Abcpdf In .Net - Complete .Net Tutorial >>>>> Download Full

>>>>> Download LINK

Reply
avatar