|
@@ -3,6 +3,7 @@ using ComPDFKit.PDFPage;
|
|
|
using ComPDFKit.PDFPage.Edit;
|
|
|
using ComPDFKit.Tool;
|
|
|
using ComPDFKit.Tool.UndoManger;
|
|
|
+using ComPDFKit.Viewer.Helper;
|
|
|
using ComPDFKitViewer;
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
@@ -78,7 +79,7 @@ namespace Compdfkit_Tools.Edit
|
|
|
GetTextArea(out CPDFEditTextArea textArea, out CPDFPage pdfPage, out CPDFEditPage editPage);
|
|
|
if (textArea != null)
|
|
|
{
|
|
|
- Rect oldRect=textArea.GetFrame();
|
|
|
+ Rect oldRect= DataConversionForWPF.CRectConversionForRect(textArea.GetFrame());
|
|
|
if (textArea.SetCharsFontSize((float)slider.Value,false))
|
|
|
{
|
|
|
PDFEditHistory editHistory = new PDFEditHistory();
|
|
@@ -104,7 +105,7 @@ namespace Compdfkit_Tools.Edit
|
|
|
GetTextArea(out CPDFEditTextArea textArea, out CPDFPage pdfPage, out CPDFEditPage editPage);
|
|
|
if (textArea != null)
|
|
|
{
|
|
|
- Rect oldRect=textArea.GetFrame();
|
|
|
+ Rect oldRect= DataConversionForWPF.CRectConversionForRect(textArea.GetFrame());
|
|
|
if(textArea.SetCharsFontTransparency((byte)(FontOpacitySlider.Value * 255)))
|
|
|
{
|
|
|
PDFEditHistory editHistory = new PDFEditHistory();
|
|
@@ -134,7 +135,7 @@ namespace Compdfkit_Tools.Edit
|
|
|
GetTextArea(out CPDFEditTextArea textArea, out CPDFPage pdfPage, out CPDFEditPage editPage);
|
|
|
if (textArea != null)
|
|
|
{
|
|
|
- Rect oldRect=textArea.GetFrame();
|
|
|
+ Rect oldRect=DataConversionForWPF.CRectConversionForRect(textArea.GetFrame());
|
|
|
if (textArea.SetCharsFontTransparency((byte)(FontOpacitySlider.Value * 255)))
|
|
|
{
|
|
|
PDFEditHistory editHistory = new PDFEditHistory();
|
|
@@ -169,7 +170,7 @@ namespace Compdfkit_Tools.Edit
|
|
|
GetTextArea(out CPDFEditTextArea textArea, out CPDFPage pdfPage, out CPDFEditPage editPage);
|
|
|
if (textArea != null)
|
|
|
{
|
|
|
- Rect oldRect=textArea.GetFrame();
|
|
|
+ Rect oldRect=DataConversionForWPF.CRectConversionForRect(textArea.GetFrame());
|
|
|
if (textArea.SetCharsFontSize((float)slider.Value,false))
|
|
|
{
|
|
|
PDFEditHistory editHistory = new PDFEditHistory();
|
|
@@ -207,7 +208,7 @@ namespace Compdfkit_Tools.Edit
|
|
|
GetTextArea(out CPDFEditTextArea textArea, out CPDFPage pdfPage, out CPDFEditPage editPage);
|
|
|
if (textArea != null)
|
|
|
{
|
|
|
- Rect oldRect=textArea.GetFrame();
|
|
|
+ Rect oldRect=DataConversionForWPF.CRectConversionForRect(textArea.GetFrame());
|
|
|
if (textArea.SetCharsFontSize((float)e, false))
|
|
|
{
|
|
|
PDFEditHistory editHistory = new PDFEditHistory();
|
|
@@ -228,7 +229,7 @@ namespace Compdfkit_Tools.Edit
|
|
|
GetTextArea(out CPDFEditTextArea textArea, out CPDFPage pdfPage, out CPDFEditPage editPage);
|
|
|
if (textArea != null && newBrush!=null)
|
|
|
{
|
|
|
- Rect oldRect= textArea.GetFrame();
|
|
|
+ Rect oldRect= DataConversionForWPF.CRectConversionForRect(textArea.GetFrame());
|
|
|
if (textArea.SetCharsFontColor(newBrush.Color.R, newBrush.Color.G, newBrush.Color.B))
|
|
|
{
|
|
|
PDFEditHistory editHistory = new PDFEditHistory();
|
|
@@ -249,7 +250,7 @@ namespace Compdfkit_Tools.Edit
|
|
|
if (textArea != null)
|
|
|
{
|
|
|
bool result = false;
|
|
|
- Rect oldRect= textArea.GetFrame();
|
|
|
+ Rect oldRect= DataConversionForWPF.CRectConversionForRect(textArea.GetFrame());
|
|
|
if(textArea.SelectLineRects!=null && textArea.SelectLineRects.Count>0)
|
|
|
{
|
|
|
result = textArea.SetTextRangeAlign(e);
|
|
@@ -277,7 +278,7 @@ namespace Compdfkit_Tools.Edit
|
|
|
GetTextArea(out CPDFEditTextArea textArea, out CPDFPage pdfPage, out CPDFEditPage editPage);
|
|
|
if (textArea != null)
|
|
|
{
|
|
|
- Rect oldRect= textArea.GetFrame();
|
|
|
+ Rect oldRect= DataConversionForWPF.CRectConversionForRect(textArea.GetFrame());
|
|
|
if(textArea.SetCharsFontItalic(e))
|
|
|
{
|
|
|
PDFEditHistory editHistory = new PDFEditHistory();
|
|
@@ -297,7 +298,7 @@ namespace Compdfkit_Tools.Edit
|
|
|
GetTextArea(out CPDFEditTextArea textArea, out CPDFPage pdfPage, out CPDFEditPage editPage);
|
|
|
if (textArea != null)
|
|
|
{
|
|
|
- Rect oldRect= textArea.GetFrame();
|
|
|
+ Rect oldRect= DataConversionForWPF.CRectConversionForRect(textArea.GetFrame());
|
|
|
if (textArea.SetCharsFontBold(e))
|
|
|
{
|
|
|
PDFEditHistory editHistory = new PDFEditHistory();
|
|
@@ -317,7 +318,7 @@ namespace Compdfkit_Tools.Edit
|
|
|
GetTextArea(out CPDFEditTextArea textArea, out CPDFPage pdfPage, out CPDFEditPage editPage);
|
|
|
if (textArea != null)
|
|
|
{
|
|
|
- Rect oldRect= textArea.GetFrame();
|
|
|
+ Rect oldRect= DataConversionForWPF.CRectConversionForRect(textArea.GetFrame());
|
|
|
if (textArea.SetCharsFontName(e))
|
|
|
{
|
|
|
PDFEditHistory editHistory = new PDFEditHistory();
|