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)
So it modifies the content using ShowTextAligned of PdfContentByte. Text added in the future should now be formatted with your default font and font size.You can modify the document by using the DirectContent property of PdfWriter.
How to Set a Default Font and Font Size for Adding Text in a PDF Your format changes should appear immediately.
Pro Tip: If you want to select the entire text box, place your cursor in the text box, and then select Ctrl + A on your keyboard. You can have multiple formats within the same text box. Your text box should be deleted immediately. Alternatively, you can right-click and select Delete from the shortcut menu. Press the Delete key on your keyboard.Movement cursor (Enlarged to show detail) Hover your cursor over the border of the text box until your cursor becomes a movement cursor, which is two crossed arrows.įigure 9.To reverse vertical text back to horizontal text, right-click the text box and select Make text direction horizontal from the shortcut menu.However, the vertical option won’t appear if there is not enough space for the existing text to be placed vertically. You can right-click a text box with existing text and select Make text direction vertical from the shortcut menu.After entering your text, resize the text box as shown in the section above. (Optional Step) The text box may become wider after selecting the vertical option in step 3.Type or copy and paste text into the text box.Right-click the text box and select Make text direction vertical from the shortcut menu.įigure 7.Drag the text box to the required size.Select Add Text from the Edit PDF toolbar (see figure 3).However, you can easily create vertical text through the shortcut menu. Insert your cursor into the text box and then type or copy and paste the additional text.īy default, Acrobat’s Add Text tool inserts horizontal text.
See the information in the previous section if you need to resize your text box to accommodate additional text. You can add text to an existing text box if space allows. How to Add Text to an Existing Text Box in a PDF Pro Tip: A small, yellow warning icon will appear near the text box if a portion of the text is not visible due to a lack of space. Drag the cursor to resize the text box.Resizing cursor (Enlarged to show detail) Hover your cursor over one of the border handles (small squares) until your cursor becomes a resizing cursor, which is two lines with two arrows.įigure 5.Select Edit in the Edit PDF toolbar (see figure 6).Example of fixed-width text box How to Resize a Text Box in a PDF To create a fixed-width text box, drag your cursor to create the box and then type or copy and paste text into the box. Fixed-width text boxes maintain their original width and only scale lengthwise to the end of the page to accommodate additional text.To create a scalable text box, place your cursor anywhere on the page and then type or copy and paste text onto the page. Scalable text boxes extend from the cursor to the right margin and the bottom margin of the page as text is added.Create a scalable text box or a fixed-width text box and then enter your text.Select Add Text from the Edit PDF toolbar.If you need to create a new PDF or add a blank page to an existing PDF, please see my other tutorial “ How to Create a Blank PDF in Adobe Acrobat.” The steps below assume you are adding text to an existing PDF.