|
@@ -213,11 +213,11 @@ namespace Compdfkit_Tools.PDFControl
|
|
default:
|
|
default:
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
- pdfViewer.SetToolType(ComPDFKit.Tool.CPDFToolManager.ToolType.FormEdit);
|
|
|
|
|
|
+ pdfViewer.SetToolType(ComPDFKit.Tool.CPDFToolManager.ToolType.WidgetEdit);
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- pdfViewer.SetToolType(ComPDFKit.Tool.CPDFToolManager.ToolType.FormEdit);
|
|
|
|
|
|
+ pdfViewer.SetToolType(ComPDFKit.Tool.CPDFToolManager.ToolType.WidgetEdit);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -250,7 +250,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
|
|
|
private void CreateTextBox()
|
|
private void CreateTextBox()
|
|
{
|
|
{
|
|
- pdfViewer.SetToolType(ComPDFKit.Tool.CPDFToolManager.ToolType.FormEdit);
|
|
|
|
|
|
+ pdfViewer.SetToolType(ComPDFKit.Tool.CPDFToolManager.ToolType.WidgetEdit);
|
|
pdfViewer.SetCreateWidgetType(C_WIDGET_TYPE.WIDGET_TEXTFIELD);
|
|
pdfViewer.SetCreateWidgetType(C_WIDGET_TYPE.WIDGET_TEXTFIELD);
|
|
TextBoxParam textBoxParam = new TextBoxParam();
|
|
TextBoxParam textBoxParam = new TextBoxParam();
|
|
textBoxParam.CurrentType = C_ANNOTATION_TYPE.C_ANNOTATION_WIDGET;
|
|
textBoxParam.CurrentType = C_ANNOTATION_TYPE.C_ANNOTATION_WIDGET;
|
|
@@ -267,7 +267,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
|
|
|
private void CreateRadioBtn()
|
|
private void CreateRadioBtn()
|
|
{
|
|
{
|
|
- pdfViewer.SetToolType(ComPDFKit.Tool.CPDFToolManager.ToolType.FormEdit);
|
|
|
|
|
|
+ pdfViewer.SetToolType(ComPDFKit.Tool.CPDFToolManager.ToolType.WidgetEdit);
|
|
pdfViewer.SetCreateWidgetType(C_WIDGET_TYPE.WIDGET_RADIOBUTTON);
|
|
pdfViewer.SetCreateWidgetType(C_WIDGET_TYPE.WIDGET_RADIOBUTTON);
|
|
RadioButtonParam radioButtonParam = new RadioButtonParam();
|
|
RadioButtonParam radioButtonParam = new RadioButtonParam();
|
|
radioButtonParam.CurrentType = C_ANNOTATION_TYPE.C_ANNOTATION_WIDGET;
|
|
radioButtonParam.CurrentType = C_ANNOTATION_TYPE.C_ANNOTATION_WIDGET;
|
|
@@ -285,7 +285,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
|
|
|
private void CreateCheckBox()
|
|
private void CreateCheckBox()
|
|
{
|
|
{
|
|
- pdfViewer.SetToolType(ComPDFKit.Tool.CPDFToolManager.ToolType.FormEdit);
|
|
|
|
|
|
+ pdfViewer.SetToolType(ComPDFKit.Tool.CPDFToolManager.ToolType.WidgetEdit);
|
|
pdfViewer.SetCreateWidgetType(C_WIDGET_TYPE.WIDGET_CHECKBOX);
|
|
pdfViewer.SetCreateWidgetType(C_WIDGET_TYPE.WIDGET_CHECKBOX);
|
|
CheckBoxParam checkBoxParam = new CheckBoxParam();
|
|
CheckBoxParam checkBoxParam = new CheckBoxParam();
|
|
checkBoxParam.CurrentType = C_ANNOTATION_TYPE.C_ANNOTATION_WIDGET;
|
|
checkBoxParam.CurrentType = C_ANNOTATION_TYPE.C_ANNOTATION_WIDGET;
|
|
@@ -303,7 +303,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
|
|
|
private void CreateComboBox()
|
|
private void CreateComboBox()
|
|
{
|
|
{
|
|
- pdfViewer.SetToolType(ComPDFKit.Tool.CPDFToolManager.ToolType.FormEdit);
|
|
|
|
|
|
+ pdfViewer.SetToolType(ComPDFKit.Tool.CPDFToolManager.ToolType.WidgetEdit);
|
|
pdfViewer.SetCreateWidgetType(C_WIDGET_TYPE.WIDGET_COMBOBOX);
|
|
pdfViewer.SetCreateWidgetType(C_WIDGET_TYPE.WIDGET_COMBOBOX);
|
|
ComboBoxParam comboBoxParam = new ComboBoxParam();
|
|
ComboBoxParam comboBoxParam = new ComboBoxParam();
|
|
comboBoxParam.CurrentType = C_ANNOTATION_TYPE.C_ANNOTATION_WIDGET;
|
|
comboBoxParam.CurrentType = C_ANNOTATION_TYPE.C_ANNOTATION_WIDGET;
|
|
@@ -319,7 +319,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
|
|
|
private void CreateListBox()
|
|
private void CreateListBox()
|
|
{
|
|
{
|
|
- pdfViewer.SetToolType(ComPDFKit.Tool.CPDFToolManager.ToolType.FormEdit);
|
|
|
|
|
|
+ pdfViewer.SetToolType(ComPDFKit.Tool.CPDFToolManager.ToolType.WidgetEdit);
|
|
pdfViewer.SetCreateWidgetType(C_WIDGET_TYPE.WIDGET_LISTBOX);
|
|
pdfViewer.SetCreateWidgetType(C_WIDGET_TYPE.WIDGET_LISTBOX);
|
|
ListBoxParam listBoxParam = new ListBoxParam();
|
|
ListBoxParam listBoxParam = new ListBoxParam();
|
|
listBoxParam.CurrentType = C_ANNOTATION_TYPE.C_ANNOTATION_WIDGET;
|
|
listBoxParam.CurrentType = C_ANNOTATION_TYPE.C_ANNOTATION_WIDGET;
|
|
@@ -335,7 +335,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
|
|
|
private void CreatePushBtn()
|
|
private void CreatePushBtn()
|
|
{
|
|
{
|
|
- pdfViewer.SetToolType(ComPDFKit.Tool.CPDFToolManager.ToolType.FormEdit);
|
|
|
|
|
|
+ pdfViewer.SetToolType(ComPDFKit.Tool.CPDFToolManager.ToolType.WidgetEdit);
|
|
pdfViewer.SetCreateWidgetType(C_WIDGET_TYPE.WIDGET_PUSHBUTTON);
|
|
pdfViewer.SetCreateWidgetType(C_WIDGET_TYPE.WIDGET_PUSHBUTTON);
|
|
PushButtonParam pushButtonParam = new PushButtonParam();
|
|
PushButtonParam pushButtonParam = new PushButtonParam();
|
|
pushButtonParam.CurrentType = C_ANNOTATION_TYPE.C_ANNOTATION_WIDGET;
|
|
pushButtonParam.CurrentType = C_ANNOTATION_TYPE.C_ANNOTATION_WIDGET;
|
|
@@ -354,7 +354,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
|
|
|
private void CreateSign()
|
|
private void CreateSign()
|
|
{
|
|
{
|
|
- pdfViewer.SetToolType(ComPDFKit.Tool.CPDFToolManager.ToolType.FormEdit);
|
|
|
|
|
|
+ pdfViewer.SetToolType(ComPDFKit.Tool.CPDFToolManager.ToolType.WidgetEdit);
|
|
pdfViewer.SetCreateWidgetType(C_WIDGET_TYPE.WIDGET_SIGNATUREFIELDS);
|
|
pdfViewer.SetCreateWidgetType(C_WIDGET_TYPE.WIDGET_SIGNATUREFIELDS);
|
|
SignatureParam signatureParam = new SignatureParam();
|
|
SignatureParam signatureParam = new SignatureParam();
|
|
signatureParam.CurrentType = C_ANNOTATION_TYPE.C_ANNOTATION_WIDGET;
|
|
signatureParam.CurrentType = C_ANNOTATION_TYPE.C_ANNOTATION_WIDGET;
|