示例#1
0
        public void DrawTemplatePage(string templateFile)
        {
            if (isTemplated)
            {
                return;
            }

            isTemplated = true;

            using (var template = CGPDFDocument.FromFile(templateFile)) {
                var templatePage   = template.GetPage(1);
                var templateBounds = templatePage.GetBoxRect(CGPDFBox.Crop);
                context.BeginPage(templateBounds);
                context.DrawPDFPage(templatePage);
            }
        }