![]() ![]() create the new page and add it to the pdf put the alignment and coordinates hereĬb.ShowTextAligned(1, text, 520, 640, 0) Ĭb.ShowTextAligned(2, text, 100, 200, 0) String text = "Some random blablablabla." PdfContentByte cb = writer.DirectContent īaseFont bf = BaseFont.CreateFont(BaseFont.HELVETICA, BaseFont.CP1252,BaseFont.NOT_EMBEDDED) PdfWriter writer = PdfWriter.GetInstance(document, fs) Rectangle size = reader.GetPageSizeWithRotation(1) įileStream fs = new FileStream(newFile, FileMode.Create, FileAccess.Write) PdfReader reader = new PdfReader(oldFile) I found a way to do it (dont know if it is the best but it works) string oldFile = "oldFile.pdf" ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |