Making Text Flow from Page to Page

The C1PdfDocument.DrawString method returns an integer. This is the index of the first character that was not printed because it did not fit the output rectangle. You can use this value make text flow from page to page or from one frame to another within a page. For example:

      Visual Basic

      C#

By combining the C1PdfDocument.MeasureString and C1PdfDocument.DrawString methods, you can develop rendering routines that provide extensive control over how paragraphs are rendered, including keeping paragraphs together on a page, keeping with the next paragraph, and controlling widows and orphans (single lines that render on the current or next page).


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.