|
@@ -5,6 +5,7 @@ using ComPDFKit.Tool;
|
|
|
using Compdfkit_Tools.Helper;
|
|
|
using Compdfkit_Tools.Measure;
|
|
|
using Compdfkit_Tools.Measure.Property;
|
|
|
+using ComPDFKitViewer;
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.ComponentModel;
|
|
@@ -336,6 +337,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
|
|
|
private AnnotParam CreatePolygonal()
|
|
|
{
|
|
|
+ pdfViewer.PDFViewTool.GetDefaultSettingParam().IsCreateSquarePolygonMeasure = false;
|
|
|
pdfViewer.SetToolType(CPDFToolManager.ToolType.CreateAnnot);
|
|
|
pdfViewer.SetCreateAnnotType(C_ANNOTATION_TYPE.C_ANNOTATION_POLYGON);
|
|
|
PolygonMeasureParam polygonMeasureParam = new PolygonMeasureParam();
|
|
@@ -383,6 +385,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
|
|
|
private AnnotParam CreateRectangles()
|
|
|
{
|
|
|
+ pdfViewer.PDFViewTool.GetDefaultSettingParam().IsCreateSquarePolygonMeasure = true;
|
|
|
pdfViewer.SetToolType(CPDFToolManager.ToolType.CreateAnnot);
|
|
|
pdfViewer.SetCreateAnnotType(C_ANNOTATION_TYPE.C_ANNOTATION_POLYGON);
|
|
|
PolygonMeasureParam polygonMeasureParam = new PolygonMeasureParam();
|