Example #1
0
 internal static PdfTemplate CreateTemplate(PdfWriter writer, float width, float height, PdfName forcedName) {
     PdfTemplate template = new PdfTemplate(writer);
     template.Width = width;
     template.Height = height;
     writer.AddDirectTemplateSimple(template, forcedName);
     return template;
 }
Example #2
0
        internal static PdfAppearance CreateAppearance(PdfWriter writer, float width, float height, PdfName forcedName)
        {
            var template = new PdfAppearance(writer)
            {
                Width  = width,
                Height = height
            };

            writer.AddDirectTemplateSimple(template, forcedName);
            return(template);
        }
Example #3
0
 internal static PdfTemplate CreateTemplate(PdfWriter writer, float width, float height, PdfName forcedName) {
     PdfTemplate template = new PdfTemplate(writer);
     template.Width = width;
     template.Height = height;
     writer.AddDirectTemplateSimple(template, forcedName);
     return template;
 }