|
@@ -673,8 +673,8 @@ namespace ComPDFKit.Tool
|
|
|
double PDFWidth = PDFViewer.GetCurrentRenderPageForIndex(annotData.PageIndex).PaintRect.Width;
|
|
|
double PDFHeight = PDFViewer.GetCurrentRenderPageForIndex(annotData.PageIndex).PaintRect.Height;
|
|
|
|
|
|
- textBorder.MaxWidth = (PDFWidth - annotData.VisualRect.Left - annotData.CropLeft);
|
|
|
- textBorder.MaxHeight = (PDFHeight - annotData.VisualRect.Top - annotData.CropTop);
|
|
|
+ textBorder.MaxWidth = Math.Max(Width,(PDFWidth - annotData.VisualRect.Left - annotData.CropLeft));
|
|
|
+ textBorder.MaxHeight =Math.Max(Height,(PDFHeight - annotData.VisualRect.Top - annotData.CropTop));
|
|
|
CTextAttribute textAttribute = textWidget.FreeTextDa;
|
|
|
byte transparency = textWidget.GetTransparency();
|
|
|
textui.FontSize = DpiHelper.PDFNumToStandardNum(textAttribute.FontSize * annotData.CurrentZoom);
|