Pdf | |
The PdfTextElementRenderingResult type exposes the following members.
| Name | Description | |
|---|---|---|
| PdfPageLastIndex |
Gets or sets the zero-based index of the last page where content was rendered.
(Inherited from PdfRenderingResult) | |
| PdfPageLastRectangle |
Gets or sets the bounding rectangle of the content rendered on the last page.
(Inherited from PdfRenderingResult) | |
| RemainingText | Gets the text that could not be rendered from the initial Text. |
PdfDocument document = new PdfDocument(); PdfPage page = document.AddPage(); PdfFont font = PdfFont.CreateStandardFont(PdfStandardFont.Helvetica, 12); // Bounded height: any text that does not fit is returned as RemainingText. PdfTextElement text = new PdfTextElement(0, 0, 400, 50, "A very long paragraph...", font); PdfTextElementRenderingResult result = (PdfTextElementRenderingResult)page.Add(text); string overflow = result.RemainingText; document.Save("out.pdf"); document.Close();