How to add footer in existing pdf -iTextSharp
-
I have been trying to figure out if it is possible to add a footer to an existing PDF document. Every example I have seen is for adding a footer to a document that has just been created using PDFWriter as opposed to getting a document using PDFReader and then adding a footer to it. Does anyone know of a way that a footer can be added to an existing PDF? Thanks.
-
I have been trying to figure out if it is possible to add a footer to an existing PDF document. Every example I have seen is for adding a footer to a document that has just been created using PDFWriter as opposed to getting a document using PDFReader and then adding a footer to it. Does anyone know of a way that a footer can be added to an existing PDF? Thanks.
What do you using barcode number? you can using code to below: //Create footer variable of doc HeaderFooter footer = doc.Sections[1].Footers[WdHeaderFooterIndex.wdHeaderFooterPrimary]; //Set alignment of footer range footer.Range.ParagraphFormat.Alignment = WdParagraphAlignment.wdAlignParagraphLeft; //Add BRCode code image to footer footer.Range.InlineShapes.AddPicture(codeImagePath);