![]() ![]() FindFont ( "TimesNewRoman" ) textFragment. ![]() Position = new Position ( 100, 600 ) // Set text properties TextFragment textFragment = new TextFragment ( "main text" ) textFragment. GetDataDir_AsposePdf_Text () // Open documentĭocument pdfDocument = new Document ( dataDir + "input.pdf" ) // Get particular page For complete examples and data files, please go to The following code snippet shows you how to add text in an existing PDF file. Call the Document object’s Save method and save the output PDF file. ![]() The TextBuilder object created from that particular page – to which you want to add the text – allows you to add the TextFragment object to the page using the AppendText method.
0 Comments
Leave a Reply. |