StaticfromReturns a new CPDFTextRange that expands the current range by the given number of characters before and after the original range.
If the before value causes the start position to be less than 0, it will automatically
clamp the start to 0 and reduce the total length accordingly to avoid overflow.
The number of characters to include before the original range. Default is 0.
The number of characters to include after the original range. Default is 0.
A new CPDFTextRange instance with adjusted location and length.
Copyright © 2014-2026 PDF Technologies, Inc. All Rights Reserved.
THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT. UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES. This notice may not be removed from this file.