internal static void CreateKitTag(Product product, int quantity, string kitName) { float width = (float)72 * (float)3.14961; // 72 pixels * 3.14 inches float height = (float)72 * (float)1.65; //float height = (float)72 * (float)1.5748; // 72 pixeis * 1.57 inches Pdf pdf = new Pdf(@".\tag.pdf", new iTextSharp.text.Rectangle(width, height), new int[] { 10, 10, -5, -5 }); pdf.Document.Open(); pdf.AddParagraphBold("KIT: " + kitName, 0); pdf.AddBigTitle(product.CodeClient, 0); pdf.AddTitle("Qtd: " + quantity.ToString(), 0); pdf.AddParagraphBold("Código BSC: " + product.CodeBSC, -1); pdf.AddParagraphBold("Origem: " + Address.GetAddressString(product.Address_Id), -1); pdf.Document.Close(); }
internal static void CreateProductionLineTag(string codeCliente, string productDescription, string lineAddress) { float width = (float)72 * (float)3.14961; // 72 pixels * 3.14 inches float height = (float)72 * (float)1.65; //float height = (float)72 * (float)1.5748; // 72 pixeis * 1.57 inches Pdf pdf = new Pdf(@".\tag.pdf", new iTextSharp.text.Rectangle(width, height), new int[] { 10, 10, -5, -5 }); pdf.Document.Open(); pdf.AddHugeTitle(codeCliente, 0); pdf.AddParagraphBold(productDescription, 0); pdf.BreakLine(); pdf.AddTitle(lineAddress, 1); pdf.Document.Close(); }