How to use existing PDF documents as templatesThe code sample below creates a PDF document using another PDF document as a template. c# sample: PDFCreationOptions options = new PDFCreationOptions(); options.TemplateFileName = "PDFTechLH.pdf"; options.TemplatePageNumber = 1; options.TemplatePassword = ""; options.SetMargin(50, 160, 50, 160); PDFDocument MyPdf = new PDFDocument("Templates.pdf", options); MyPdf.CurrentPage.Body.SetTextAlignment(TextAlign.Justified); MyPdf.CurrentPage.Body.SetColumnCount(ColumnCount.TwoColumn); MyPdf.CurrentPage.Body.AddText("What a nice template."); MyPdf.Save(); |
PDF .NET Library for .NET Software Developers - PDF Component Library for C#, VB.NET and ASP.NET developers Copyright © PDF Technologies Inc., 2010. |