![]() Table.AddCell(PhraseCell(new Phrase("HCVP Voucher Program", FontFactory.GetFont("Arial", 8,, BaseColor.BLACK)), PdfPCell.ALIGN_LEFT)) Ĭell = PhraseCell(new Phrase(), PdfPCell. This program allows you to batch stamp the filename, custom text, watermark, page numbers etc to PDF files using iTEXT. Specifically, the code shows you how to use Java itext pdf PdfName.Name. Add file name, watermark, and other text to PDFs in batch process. Java itext pdf PdfName Name Syntax The field Name () from PdfName is declared as: Copy public static final PdfName Name createDirectName ('Name') Example The following code shows how to use PdfName from. Optionaly you can add a password to encript the PDF file. ![]() Table.AddCell(PhraseCell(new Phrase("Department:", FontFactory.GetFont("Arial", 8,, BaseColor.BLACK)), PdfPCell.ALIGN_LEFT)) Read a text file extract tags and put it into a Pdf template file, using iText library. Table.AddCell(PhraseCell(new Phrase(name, FontFactory.GetFont("Arial", 8,, BaseColor.BLACK)), PdfPCell.ALIGN_LEFT)) Ĭell = PhraseCell(new Phrase(), PdfPCell.ALIGN_CENTER) The following Java program demonstrates how to create a PDF document and add a paragraph to it using the iText library. Paste the below code in file and give its name as FormatingTheText.java. ![]() A PDF doc with name fonts.pdf is created, color and font is set to it, and saves it in the path C:/itextExamples/. How do I modify this code to write Department in the same line with a Tab separator? table.AddCell(PhraseCell(new Phrase("Name:", FontFactory.GetFont("Arial", 8,, BaseColor.BLACK)), PdfPCell.ALIGN_LEFT)) Below Java program demonstrates the PDF Document creation and color and font to text is set in it using the iText library. Package PdfLiteral, a Literal PdfMediaClipData PdfName, PdfName is an object that can be used as a name in a PDF-file. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. Please check out some of the page event examples.Currently, you're creating an unnamed PdfWriter instance. These examples are extracted from open source projects. The following code writes Name and then Department in the next line right below the Name. Java Code Examples for .PdfName The following examples show how to use .PdfName.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |