liyijie 1 рік тому
батько
коміт
71fd076b63
19 змінених файлів з 320 додано та 20 видалено
  1. 2 1
      PDF Office/Helper/ChatGTPAIHelper.cs
  2. 8 0
      PDF Office/Helper/ConverterHelper.cs
  3. 31 2
      PDF Office/Model/Dialog/ConverterDialogs/ConverterDialogsModel.cs
  4. 7 0
      PDF Office/ViewModels/Dialog/ConverterDialogs/ConverterCSVDialogViewModel.cs
  5. 8 1
      PDF Office/ViewModels/Dialog/ConverterDialogs/ConverterExcelDialogViewModel.cs
  6. 8 0
      PDF Office/ViewModels/Dialog/ConverterDialogs/ConverterHTMLDialogViewModel.cs
  7. 8 0
      PDF Office/ViewModels/Dialog/ConverterDialogs/ConverterImgDialogViewModel.cs
  8. 8 0
      PDF Office/ViewModels/Dialog/ConverterDialogs/ConverterPPTDialogViewModel.cs
  9. 8 0
      PDF Office/ViewModels/Dialog/ConverterDialogs/ConverterRTFDialogViewModel.cs
  10. 8 0
      PDF Office/ViewModels/Dialog/ConverterDialogs/ConverterTextDialogViewModel.cs
  11. 8 0
      PDF Office/ViewModels/Dialog/ConverterDialogs/ConverterWordDialogViewModel.cs
  12. 27 2
      PDF Office/Views/Dialog/ConverterDialogs/ConverterCSVDialog.xaml
  13. 27 2
      PDF Office/Views/Dialog/ConverterDialogs/ConverterExcelDialog.xaml
  14. 27 2
      PDF Office/Views/Dialog/ConverterDialogs/ConverterHTMLDialog.xaml
  15. 27 2
      PDF Office/Views/Dialog/ConverterDialogs/ConverterImgDialog.xaml
  16. 27 2
      PDF Office/Views/Dialog/ConverterDialogs/ConverterPPTDialog.xaml
  17. 27 2
      PDF Office/Views/Dialog/ConverterDialogs/ConverterRTFDialog.xaml
  18. 27 2
      PDF Office/Views/Dialog/ConverterDialogs/ConverterTextDialog.xaml
  19. 27 2
      PDF Office/Views/Dialog/ConverterDialogs/ConverterWordDialog.xaml

+ 2 - 1
PDF Office/Helper/ChatGTPAIHelper.cs

@@ -242,7 +242,8 @@ namespace PDF_Master.Helper
                         using (var client = new WebClient())
                         {
                             App.mainWindowViewModel.Value = 8;
-                            string folderPath = file.FullName.Remove(file.FullName.LastIndexOf("."), file.FullName.Length - file.FullName.LastIndexOf(".")) + "_aiTranslation.pdf"; ;
+                            string folderPath = file.FullName.Remove(file.FullName.LastIndexOf("."), file.FullName.Length - file.FullName.LastIndexOf(".")) + "_aiTranslation.pdf";
+                            folderPath=CommonHelper.CreateFilePath(folderPath);
                             client.DownloadProgressChanged += (sender, e) =>
                             {
 

+ 8 - 0
PDF Office/Helper/ConverterHelper.cs

@@ -615,5 +615,13 @@ namespace PDF_Master.Helper
             return targetPath;
         }
 
+        /// <summary>
+        /// 转档解锁跳转
+        /// </summary>
+        public static void convertUnlock()
+        {
+
+        }
+
     }
 }

+ 31 - 2
PDF Office/Model/Dialog/ConverterDialogs/ConverterDialogsModel.cs

@@ -12,6 +12,7 @@ using PDF_Master.CustomControl;
 using System.Net.Mime;
 using System.Threading;
 using System.Windows.Threading;
+using ImTools;
 
 namespace PDF_Master.Model.Dialog.ConverterDialogs
 {
@@ -84,7 +85,7 @@ namespace PDF_Master.Model.Dialog.ConverterDialogs
         /// <summary>
         /// 取消进度条
         /// </summary>
-        private async void  TaskMethod()
+        private async void TaskMethod()
         {
             await System.Threading.Tasks.Task.Run(() =>
             {
@@ -117,6 +118,26 @@ namespace PDF_Master.Model.Dialog.ConverterDialogs
             if (App.mainWindowViewModel.Value == App.mainWindowViewModel.MaxValue) { App.mainWindowViewModel.IsProcessVisible = System.Windows.Visibility.Collapsed; }
         }
 
+        /// <summary>
+        /// 转档限制转页面前10页
+        /// </summary>
+        /// <param name="converterDialogsModel"></param>
+        private void limitationConvert(ConverterDialogsModel converterDialogsModel)
+        {
+            if (!ServiceHelper.IAPBeforeFunction())
+            {
+                if (converterDialogsModel.PageIndexLists.Contains(10))
+                {
+                    converterDialogsModel.PageIndexLists.RemoveRange(converterDialogsModel.PageIndexLists.IndexOf(10), converterDialogsModel.PageIndexLists.Count - converterDialogsModel.PageIndexLists.IndexOf(10));
+
+                }
+                else if (converterDialogsModel.PageIndexLists.Contains(11))
+                {
+                    converterDialogsModel.PageIndexLists.RemoveRange(converterDialogsModel.PageIndexLists.IndexOf(11), converterDialogsModel.PageIndexLists.Count - converterDialogsModel.PageIndexLists.IndexOf(11));
+                }
+            }
+        }
+
         public async void OnOpened(Prism.Services.Dialogs.DialogResult e)
         {
             if (e.Result == Prism.Services.Dialogs.ButtonResult.Cancel || e.Result == Prism.Services.Dialogs.ButtonResult.None) { return; }
@@ -138,10 +159,11 @@ namespace PDF_Master.Model.Dialog.ConverterDialogs
                     if (ConverterCSVModel != null)
                     {
                         App.mainWindowViewModel.MaxValue = ConverterCSVModel.PageIndexLists.Count();
-
+                        limitationConvert(ConverterCSVModel);
                         for (int i = 0; ConverterCSVModel.PageIndexLists.Count > i; i++)
                         {
                             ConverterCSVModel.PageIndexLists[i] = ConverterCSVModel.PageIndexLists[i] + 1;
+
                         }
                         result = await ConverterHelper.CSVConvert(ConverterCSVModel.InputPath, ConverterCSVModel.OutputPath, GetProgress, ConverterCSVModel.PageIndexLists, ConverterCSVModel.Pawssword, ConverterCSVModel.csvOptions, ConverterCSVModel.IsCustomFileName);
 
@@ -153,6 +175,7 @@ namespace PDF_Master.Model.Dialog.ConverterDialogs
                     if (ConverterExcelModel != null)
                     {
                         App.mainWindowViewModel.MaxValue = ConverterExcelModel.PageIndexLists.Count();
+                        limitationConvert(ConverterExcelModel);
                         for (int i = 0; ConverterExcelModel.PageIndexLists.Count > i; i++)
                         {
                             ConverterExcelModel.PageIndexLists[i] = ConverterExcelModel.PageIndexLists[i] + 1;
@@ -166,6 +189,7 @@ namespace PDF_Master.Model.Dialog.ConverterDialogs
                     if (ConverterHTMLModel != null)
                     {
                         App.mainWindowViewModel.MaxValue = ConverterHTMLModel.PageIndexLists.Count();
+                        limitationConvert(ConverterHTMLModel);
                         for (int i = 0; ConverterHTMLModel.PageIndexLists.Count > i; i++)
                         {
                             ConverterHTMLModel.PageIndexLists[i] = ConverterHTMLModel.PageIndexLists[i] + 1;
@@ -179,6 +203,7 @@ namespace PDF_Master.Model.Dialog.ConverterDialogs
                     if (ConverterImgModel != null)
                     {
                         App.mainWindowViewModel.MaxValue = ConverterImgModel.PageIndexLists.Count();
+                        limitationConvert(ConverterImgModel);
                         for (int i = 0; ConverterImgModel.PageIndexLists.Count > i; i++)
                         {
                             ConverterImgModel.PageIndexLists[i] = ConverterImgModel.PageIndexLists[i] + 1;
@@ -192,6 +217,7 @@ namespace PDF_Master.Model.Dialog.ConverterDialogs
                     if (ConverterPPTModel != null)
                     {
                         App.mainWindowViewModel.MaxValue = ConverterPPTModel.PageIndexLists.Count();
+                        limitationConvert(ConverterPPTModel);
                         for (int i = 0; ConverterPPTModel.PageIndexLists.Count > i; i++)
                         {
                             ConverterPPTModel.PageIndexLists[i] = ConverterPPTModel.PageIndexLists[i] + 1;
@@ -206,6 +232,7 @@ namespace PDF_Master.Model.Dialog.ConverterDialogs
                     if (ConverterRTFModel != null)
                     {
                         App.mainWindowViewModel.MaxValue = ConverterRTFModel.PageIndexLists.Count();
+                        limitationConvert(ConverterRTFModel);
                         for (int i = 0; ConverterRTFModel.PageIndexLists.Count > i; i++)
                         {
                             ConverterRTFModel.PageIndexLists[i] = ConverterRTFModel.PageIndexLists[i] + 1;
@@ -219,6 +246,7 @@ namespace PDF_Master.Model.Dialog.ConverterDialogs
                     if (ConverterTextModel != null)
                     {
                         App.mainWindowViewModel.MaxValue = ConverterTextModel.PageIndexLists.Count();
+                        limitationConvert(ConverterTextModel);
                         for (int i = 0; ConverterTextModel.PageIndexLists.Count > i; i++)
                         {
                             ConverterTextModel.PageIndexLists[i] = ConverterTextModel.PageIndexLists[i] + 1;
@@ -232,6 +260,7 @@ namespace PDF_Master.Model.Dialog.ConverterDialogs
                     if (ConverterWordModel != null)
                     {
                         App.mainWindowViewModel.MaxValue = ConverterWordModel.PageIndexLists.Count();
+                        limitationConvert(ConverterWordModel);
                         for (int i = 0; ConverterWordModel.PageIndexLists.Count > i; i++)
                         {
                             ConverterWordModel.PageIndexLists[i] = ConverterWordModel.PageIndexLists[i] + 1;

+ 7 - 0
PDF Office/ViewModels/Dialog/ConverterDialogs/ConverterCSVDialogViewModel.cs

@@ -161,6 +161,8 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
 
         public DelegateCommand BatchConverterCommand { get; set; }
 
+        public DelegateCommand UnlockMouseDownCommand {get; set; }
+
         #endregion
 
         public ConverterCSVDialogViewModel(IDialogService dialogService)
@@ -174,6 +176,7 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
             SetCustomPageRangeCommand = new DelegateCommand(SetCustomPageRange);
             PreviewCancelDownCommand = new DelegateCommand<object>(PreviewCancelDown);
             BatchConverterCommand = new DelegateCommand(BatchConverter);
+            UnlockMouseDownCommand = new DelegateCommand(UnlockMouseDown);
             dialogs = dialogService;
         }
 
@@ -309,6 +312,10 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
 
         }
 
+        private void UnlockMouseDown() 
+        {
+            ConverterHelper.convertUnlock();
+        }
         private void cancel()
         {
             RequestClose.Invoke(new DialogResult(ButtonResult.Cancel));

+ 8 - 1
PDF Office/ViewModels/Dialog/ConverterDialogs/ConverterExcelDialogViewModel.cs

@@ -317,9 +317,10 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
 
         public DelegateCommand<object> PreviewCancelDownCommand { get; set; }
        
-
         public DelegateCommand SetCustomPageRangeCommand { get; set; }
 
+        public DelegateCommand UnlockMouseDownCommand { get; set; }
+
         #endregion
 
         public ConverterExcelDialogViewModel(IDialogService dialogService)
@@ -333,6 +334,7 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
             CmbPageTextChanged = new DelegateCommand<object>(CmbPageTextChangedEvent);
             PreviewCancelDownCommand = new DelegateCommand<object>(PreviewCancelDown);
             BatchConverterCommand = new DelegateCommand(BatchConverter);
+            UnlockMouseDownCommand = new DelegateCommand(UnlockMouseDown);
 
             dialogs = dialogService;
         }
@@ -570,6 +572,11 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
             dialogs.ShowDialog(DialogNames.HomePageBatchProcessingDialog, convertpdftoword, e => { });
         }
 
+        private void UnlockMouseDown()
+        {
+            ConverterHelper.convertUnlock();
+        }
+
         private void radiobutton(string e)
         {
             string radioButton = e;

+ 8 - 0
PDF Office/ViewModels/Dialog/ConverterDialogs/ConverterHTMLDialogViewModel.cs

@@ -142,6 +142,8 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
         public DelegateCommand<object> PreviewCancelDownCommand { get; set; }
 
         public DelegateCommand BatchConverterCommand { get; set; }
+
+        public DelegateCommand UnlockMouseDownCommand { get; set; }
         #endregion
 
         public ConverterHTMLDialogViewModel(IDialogService dialogService)
@@ -154,6 +156,7 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
             SetCustomPageRangeCommand = new DelegateCommand(SetCustomPageRange);
             PreviewCancelDownCommand = new DelegateCommand<object>(PreviewCancelDown);
             BatchConverterCommand = new DelegateCommand(BatchConverter);
+            UnlockMouseDownCommand = new DelegateCommand(UnlockMouseDown);
             dialogs = dialogService;
 
         }
@@ -393,6 +396,11 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
             dialogs.ShowDialog(DialogNames.HomePageBatchProcessingDialog, convertpdftoword, e => { });
         }
 
+        private void UnlockMouseDown()
+        {
+            ConverterHelper.convertUnlock();
+        }
+
         private void SelectLanguage(int SelectedIndex)
         {
 

+ 8 - 0
PDF Office/ViewModels/Dialog/ConverterDialogs/ConverterImgDialogViewModel.cs

@@ -216,6 +216,8 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
 
         public DelegateCommand BatchConverterCommand { get; set; }
 
+        public DelegateCommand UnlockMouseDownCommand { get; set; }
+
         #endregion
 
         public ConverterImgDialogViewModel(IDialogService dialogService)
@@ -228,6 +230,7 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
             SetCustomPageRangeCommand = new DelegateCommand(SetCustomPageRange);
             PreviewCancelDownCommand = new DelegateCommand<object>(PreviewCancelDown);
             BatchConverterCommand = new DelegateCommand(BatchConverter);
+            UnlockMouseDownCommand = new DelegateCommand(UnlockMouseDown);
             SetImageTypeOrigin();
             SetImageDPIOrigin();
             dialogs = dialogService;
@@ -519,6 +522,11 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
             convertpdftoword.Add(ParameterNames.FilePath, new string[] { currentViewer.Document.FilePath.ToString() });
             dialogs.ShowDialog(DialogNames.HomePageBatchProcessingDialog, convertpdftoword, e => { });
         }
+
+        private void UnlockMouseDown()
+        {
+            ConverterHelper.convertUnlock();
+        }
         #endregion
 
         #region 构架行为

+ 8 - 0
PDF Office/ViewModels/Dialog/ConverterDialogs/ConverterPPTDialogViewModel.cs

@@ -170,6 +170,8 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
         public DelegateCommand<object> PreviewCancelDownCommand { get; set; }
 
         public DelegateCommand BatchConverterCommand { get; set; }
+
+        public DelegateCommand UnlockMouseDownCommand { get; set; }
         #endregion
 
         public ConverterPPTDialogViewModel(IDialogService dialogService)
@@ -181,6 +183,7 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
             SetCustomPageRangeCommand = new DelegateCommand(SetCustomPageRange);
             PreviewCancelDownCommand = new DelegateCommand<object>(PreviewCancelDown);
             BatchConverterCommand = new DelegateCommand(BatchConverter);
+            UnlockMouseDownCommand = new DelegateCommand(UnlockMouseDown);
             dialogs = dialogService;
             IntString();
         }
@@ -420,6 +423,11 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
             dialogs.ShowDialog(DialogNames.HomePageBatchProcessingDialog, convertpdftoword, e => { });
         }
 
+        private void UnlockMouseDown()
+        {
+            ConverterHelper.convertUnlock();
+        }
+
         private void SelectLanguage(int SelectedIndex)
         {
 

+ 8 - 0
PDF Office/ViewModels/Dialog/ConverterDialogs/ConverterRTFDialogViewModel.cs

@@ -142,6 +142,8 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
         public DelegateCommand<object> PreviewCancelDownCommand { get; set; }
 
         public DelegateCommand BatchConverterCommand { get; set; }
+
+        public DelegateCommand UnlockMouseDownCommand { get; set; }
         #endregion
 
         public ConverterRTFDialogViewModel(IDialogService dialogService)
@@ -153,6 +155,7 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
             SetCustomPageRangeCommand = new DelegateCommand(SetCustomPageRange);
             PreviewCancelDownCommand = new DelegateCommand<object>(PreviewCancelDown);
             BatchConverterCommand = new DelegateCommand(BatchConverter);
+            UnlockMouseDownCommand = new DelegateCommand(UnlockMouseDown);
             dialogs = dialogService;
             IntString();
         }
@@ -391,6 +394,11 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
             dialogs.ShowDialog(DialogNames.HomePageBatchProcessingDialog, convertpdftoword, e => { });
         }
 
+        private void UnlockMouseDown()
+        {
+            ConverterHelper.convertUnlock();
+        }
+
         private void SelectLanguage(int SelectedIndex)
         {
 

+ 8 - 0
PDF Office/ViewModels/Dialog/ConverterDialogs/ConverterTextDialogViewModel.cs

@@ -144,6 +144,8 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
         public DelegateCommand<object> PreviewCancelDownCommand { get; set; }
 
         public DelegateCommand BatchConverterCommand { get; set; }
+
+        public DelegateCommand UnlockMouseDownCommand { get; set; }
         #endregion
 
         public ConverterTextDialogViewModel(IDialogService dialogService)
@@ -156,6 +158,7 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
             SetCustomPageRangeCommand = new DelegateCommand(SetCustomPageRange);
             PreviewCancelDownCommand = new DelegateCommand<object>(PreviewCancelDown);
             BatchConverterCommand = new DelegateCommand(BatchConverter);
+            UnlockMouseDownCommand = new DelegateCommand(UnlockMouseDown);
             dialogs = dialogService;
         }
         #region 逻辑函数
@@ -391,6 +394,11 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
             dialogs.ShowDialog(DialogNames.HomePageBatchProcessingDialog, convertpdftoword, e => { });
         }
 
+        private void UnlockMouseDown()
+        {
+            ConverterHelper.convertUnlock();
+        }
+
         private void SelectLanguage(int SelectedIndex)
         {
 

+ 8 - 0
PDF Office/ViewModels/Dialog/ConverterDialogs/ConverterWordDialogViewModel.cs

@@ -174,6 +174,8 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
 
         public DelegateCommand SetCustomPageRangeCommand { get; set; }
 
+        public DelegateCommand UnlockMouseDownCommand { get; set; }
+
         #endregion
 
         public ConverterWordDialogViewModel(IDialogService dialogService)
@@ -186,6 +188,7 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
             SetCustomPageRangeCommand = new DelegateCommand(SetCustomPageRange);
             BatchConverterCommand = new DelegateCommand(BatchConverter);
             PreviewCancelDownCommand = new DelegateCommand<object>(PreviewCancelDown);
+            UnlockMouseDownCommand = new DelegateCommand(UnlockMouseDown);
             dialogs = dialogService;
             IntString();
         }
@@ -233,6 +236,11 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
             }
         }
 
+        private void UnlockMouseDown()
+        {
+            ConverterHelper.convertUnlock();
+        }
+
         private void converter()
         {
             if (PageRangeSelectIndex == CheckPageSelect["4"])

+ 27 - 2
PDF Office/Views/Dialog/ConverterDialogs/ConverterCSVDialog.xaml

@@ -11,9 +11,9 @@
     xmlns:pageeditdialogs="clr-namespace:PDF_Master.ViewModels.Dialog.PageEditDialogs"
     xmlns:prism="http://prismlibrary.com/"
     Width="468"
-    Height="454"
+    Height="478"
     d:DataContext="{d:DesignInstance Type=converterdialogs:ConverterCSVDialogViewModel}"
-    d:DesignHeight="454"
+    d:DesignHeight="478"
     d:DesignWidth="468"
     prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
     prism:ViewModelLocator.AutoWireViewModel="True"
@@ -87,6 +87,31 @@
                         </StackPanel>
                     </StackPanel>
                 </Grid>
+                <StackPanel Orientation="Horizontal" Width="245" Panel.ZIndex="2" Grid.ColumnSpan="2" Height="20" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,16,8">
+                    <Grid Width="16" Height="16" >
+                        <Ellipse Width="13" Height="13"  Fill="white" Stroke="#CED0D4"/>
+                        <Path Data="M7.4701 8.91H8.5001L8.7601 5.49L8.8101 4H7.1601L7.2101 5.49L7.4701 8.91ZM7.9901 11.58C8.4901 11.58 8.8701 11.21 8.8701 10.69C8.8701 10.17 8.4901 9.81 7.9901 9.81C7.4801 9.81 7.1001 10.17 7.1001 10.69C7.1001 11.21 7.4701 11.58 7.9901 11.58Z" Fill="#94989C"/>
+                    </Grid>
+                    <TextBlock
+                             Margin="4,0,0,0"
+                    FontFamily="Segoe UI"
+                    FontSize="12"
+                    Foreground="#94989C"
+                    Text="First 10 pages for free conversion."
+                        Height="20"
+                        />
+                    <TextBlock  FontFamily="Segoe UI"
+                    FontSize="12"  Height="20"  Foreground="{StaticResource color.light.blue.5}">
+                        <i:Interaction.Triggers>
+                                    <i:EventTrigger EventName="MouseDown">
+                                        <i:InvokeCommandAction Command="{Binding UnlockMouseDownCommand}" />
+                                        </i:EventTrigger>
+                        </i:Interaction.Triggers>
+                        <Underline >
+                           <TextBlock Text="Unlock"/>
+                        </Underline>
+                    </TextBlock>
+                </StackPanel>
             </Grid>
         </cus:DialogContent.Content>
         <cus:DialogContent.BottmBar>

+ 27 - 2
PDF Office/Views/Dialog/ConverterDialogs/ConverterExcelDialog.xaml

@@ -9,9 +9,9 @@
              xmlns:pageeditdialogs="clr-namespace:PDF_Master.ViewModels.Dialog.PageEditDialogs"
              xmlns:prism="http://prismlibrary.com/"           
              Width="586"
-             Height="498"
+             Height="522"
              d:DataContext="{d:DesignInstance Type=pageeditdialogs:ExtractDialogViewModel}"
-             d:DesignHeight="498"
+             d:DesignHeight="522"
              d:DesignWidth="586"
              prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
              prism:ViewModelLocator.AutoWireViewModel="True"
@@ -87,6 +87,31 @@
                         </StackPanel>
                     </StackPanel>
                 </Grid>
+                <StackPanel Orientation="Horizontal" Width="245" Panel.ZIndex="2" Grid.ColumnSpan="2"  Height="20" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,16,8">
+                    <Grid Width="16" Height="16" >
+                        <Ellipse Width="13" Height="13"  Fill="white" Stroke="#CED0D4"/>
+                        <Path Data="M7.4701 8.91H8.5001L8.7601 5.49L8.8101 4H7.1601L7.2101 5.49L7.4701 8.91ZM7.9901 11.58C8.4901 11.58 8.8701 11.21 8.8701 10.69C8.8701 10.17 8.4901 9.81 7.9901 9.81C7.4801 9.81 7.1001 10.17 7.1001 10.69C7.1001 11.21 7.4701 11.58 7.9901 11.58Z" Fill="#94989C"/>
+                    </Grid>
+                    <TextBlock
+                             Margin="4,0,0,0"
+                    FontFamily="Segoe UI"
+                    FontSize="12"
+                    Foreground="#94989C"
+                    Text="First 10 pages for free conversion."
+                        Height="20"
+                        />
+                    <TextBlock  FontFamily="Segoe UI"
+                    FontSize="12"  Height="20"    Foreground="{StaticResource color.light.blue.5}">
+                        <i:Interaction.Triggers>
+                                    <i:EventTrigger EventName="MouseDown">
+                                        <i:InvokeCommandAction Command="{Binding UnlockMouseDownCommand}" />
+                                        </i:EventTrigger>
+                        </i:Interaction.Triggers>
+                        <Underline >
+                           <TextBlock Text="Unlock"/>
+                        </Underline>
+                    </TextBlock>
+                </StackPanel>
             </Grid>
         </cus:DialogContent.Content>
         <cus:DialogContent.BottmBar>

+ 27 - 2
PDF Office/Views/Dialog/ConverterDialogs/ConverterHTMLDialog.xaml

@@ -9,9 +9,9 @@
              xmlns:pageeditdialogs="clr-namespace:PDF_Master.ViewModels.Dialog.PageEditDialogs"
              xmlns:prism="http://prismlibrary.com/" xmlns:converterdialogs="clr-namespace:PDF_Master.ViewModels.Dialog.ConverterDialogs"
              Width="468"
-             Height="454"
+             Height="478"
              d:DataContext="{d:DesignInstance Type=converterdialogs:ConverterHTMLDialogViewModel}"
-             d:DesignHeight="454"
+             d:DesignHeight="478"
              d:DesignWidth="468"
              prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
              prism:ViewModelLocator.AutoWireViewModel="True"
@@ -59,6 +59,31 @@
                         </StackPanel>
                     </StackPanel>
                 </Grid>
+                <StackPanel Orientation="Horizontal" Width="245" Panel.ZIndex="2" Grid.ColumnSpan="2" Height="20" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,16,8">
+                    <Grid Width="16" Height="16" >
+                        <Ellipse Width="13" Height="13"  Fill="white" Stroke="#CED0D4"/>
+                        <Path Data="M7.4701 8.91H8.5001L8.7601 5.49L8.8101 4H7.1601L7.2101 5.49L7.4701 8.91ZM7.9901 11.58C8.4901 11.58 8.8701 11.21 8.8701 10.69C8.8701 10.17 8.4901 9.81 7.9901 9.81C7.4801 9.81 7.1001 10.17 7.1001 10.69C7.1001 11.21 7.4701 11.58 7.9901 11.58Z" Fill="#94989C"/>
+                    </Grid>
+                    <TextBlock
+                             Margin="4,0,0,0"
+                    FontFamily="Segoe UI"
+                    FontSize="12"
+                    Foreground="#94989C"
+                    Text="First 10 pages for free conversion."
+                        Height="20"
+                        />
+                    <TextBlock  FontFamily="Segoe UI"
+                    FontSize="12"  Height="20"    Foreground="{StaticResource color.light.blue.5}">
+                        <i:Interaction.Triggers>
+                                    <i:EventTrigger EventName="MouseDown">
+                                        <i:InvokeCommandAction Command="{Binding UnlockMouseDownCommand}" />
+                                        </i:EventTrigger>
+                        </i:Interaction.Triggers>
+                        <Underline >
+                           <TextBlock Text="Unlock"/>
+                        </Underline>
+                    </TextBlock>
+                </StackPanel>
             </Grid>
         </cus:DialogContent.Content>
         <cus:DialogContent.BottmBar>

+ 27 - 2
PDF Office/Views/Dialog/ConverterDialogs/ConverterImgDialog.xaml

@@ -11,9 +11,9 @@
     xmlns:pageeditdialogs="clr-namespace:PDF_Master.ViewModels.Dialog.PageEditDialogs"
     xmlns:prism="http://prismlibrary.com/"
     Width="468"
-             Height="454"
+             Height="478"
     d:DataContext="{d:DesignInstance Type=converterdialogs:ConverterImgDialogViewModel}"
-    d:DesignHeight="454"
+    d:DesignHeight="478"
     d:DesignWidth="468"
     prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
     prism:ViewModelLocator.AutoWireViewModel="True"
@@ -87,6 +87,31 @@
                         </StackPanel>
                     </StackPanel>
                 </Grid>
+                <StackPanel Orientation="Horizontal" Width="245" Panel.ZIndex="2" Grid.ColumnSpan="2" Height="20" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,16,8">
+                    <Grid Width="16" Height="16" >
+                        <Ellipse Width="13" Height="13"  Fill="white" Stroke="#CED0D4"/>
+                        <Path Data="M7.4701 8.91H8.5001L8.7601 5.49L8.8101 4H7.1601L7.2101 5.49L7.4701 8.91ZM7.9901 11.58C8.4901 11.58 8.8701 11.21 8.8701 10.69C8.8701 10.17 8.4901 9.81 7.9901 9.81C7.4801 9.81 7.1001 10.17 7.1001 10.69C7.1001 11.21 7.4701 11.58 7.9901 11.58Z" Fill="#94989C"/>
+                    </Grid>
+                    <TextBlock
+                             Margin="4,0,0,0"
+                    FontFamily="Segoe UI"
+                    FontSize="12"
+                    Foreground="#94989C"
+                    Text="First 10 pages for free conversion."
+                        Height="20"
+                        />
+                    <TextBlock  FontFamily="Segoe UI"
+                    FontSize="12"  Height="20"    Foreground="{StaticResource color.light.blue.5}">
+                        <i:Interaction.Triggers>
+                                    <i:EventTrigger EventName="MouseDown">
+                                        <i:InvokeCommandAction Command="{Binding UnlockMouseDownCommand}" />
+                                        </i:EventTrigger>
+                        </i:Interaction.Triggers>
+                        <Underline >
+                           <TextBlock Text="Unlock"/>
+                        </Underline>
+                    </TextBlock>
+                </StackPanel>
             </Grid>
         </cus:DialogContent.Content>
         <cus:DialogContent.BottmBar>

+ 27 - 2
PDF Office/Views/Dialog/ConverterDialogs/ConverterPPTDialog.xaml

@@ -9,9 +9,9 @@
              xmlns:pageeditdialogs="clr-namespace:PDF_Master.ViewModels.Dialog.PageEditDialogs"
              xmlns:prism="http://prismlibrary.com/" xmlns:converterdialogs="clr-namespace:PDF_Master.ViewModels.Dialog.ConverterDialogs"
              Width="468"
-             Height="454"
+             Height="478"
              d:DataContext="{d:DesignInstance Type=converterdialogs:ConverterPPTDialogViewModel}"
-             d:DesignHeight="454"
+             d:DesignHeight="478"
              d:DesignWidth="468"
              prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
              prism:ViewModelLocator.AutoWireViewModel="True"
@@ -59,6 +59,31 @@
                         </StackPanel>
                     </StackPanel>
                 </Grid>
+                <StackPanel Orientation="Horizontal" Width="245" Panel.ZIndex="2" Grid.ColumnSpan="2" Height="20" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,16,8">
+                    <Grid Width="16" Height="16" >
+                        <Ellipse Width="13" Height="13"  Fill="white" Stroke="#CED0D4"/>
+                        <Path Data="M7.4701 8.91H8.5001L8.7601 5.49L8.8101 4H7.1601L7.2101 5.49L7.4701 8.91ZM7.9901 11.58C8.4901 11.58 8.8701 11.21 8.8701 10.69C8.8701 10.17 8.4901 9.81 7.9901 9.81C7.4801 9.81 7.1001 10.17 7.1001 10.69C7.1001 11.21 7.4701 11.58 7.9901 11.58Z" Fill="#94989C"/>
+                    </Grid>
+                    <TextBlock
+                             Margin="4,0,0,0"
+                    FontFamily="Segoe UI"
+                    FontSize="12"
+                    Foreground="#94989C"
+                    Text="First 10 pages for free conversion."
+                        Height="20"
+                        />
+                    <TextBlock  FontFamily="Segoe UI"
+                    FontSize="12"  Height="20"  Foreground="{StaticResource color.light.blue.5}">
+                        <i:Interaction.Triggers>
+                                    <i:EventTrigger EventName="MouseDown">
+                                        <i:InvokeCommandAction Command="{Binding UnlockMouseDownCommand}" />
+                                        </i:EventTrigger>
+                        </i:Interaction.Triggers>
+                        <Underline >
+                           <TextBlock Text="Unlock"/>
+                        </Underline>
+                    </TextBlock>
+                </StackPanel>
             </Grid>
         </cus:DialogContent.Content>
         <cus:DialogContent.BottmBar>

+ 27 - 2
PDF Office/Views/Dialog/ConverterDialogs/ConverterRTFDialog.xaml

@@ -9,9 +9,9 @@
              xmlns:pageeditdialogs="clr-namespace:PDF_Master.ViewModels.Dialog.PageEditDialogs"
              xmlns:prism="http://prismlibrary.com/" xmlns:converterdialogs="clr-namespace:PDF_Master.ViewModels.Dialog.ConverterDialogs"
              Width="468"
-             Height="454"
+             Height="478"
              d:DataContext="{d:DesignInstance Type=converterdialogs:ConverterRTFDialogViewModel}"
-             d:DesignHeight="454"
+             d:DesignHeight="478"
              d:DesignWidth="468"
              prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
              prism:ViewModelLocator.AutoWireViewModel="True"
@@ -59,6 +59,31 @@
                         </StackPanel>
                     </StackPanel>
                 </Grid>
+                <StackPanel Orientation="Horizontal" Width="245" Panel.ZIndex="2" Grid.ColumnSpan="2" Height="20" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,16,8">
+                    <Grid Width="16" Height="16" >
+                        <Ellipse Width="13" Height="13"  Fill="white" Stroke="#CED0D4"/>
+                        <Path Data="M7.4701 8.91H8.5001L8.7601 5.49L8.8101 4H7.1601L7.2101 5.49L7.4701 8.91ZM7.9901 11.58C8.4901 11.58 8.8701 11.21 8.8701 10.69C8.8701 10.17 8.4901 9.81 7.9901 9.81C7.4801 9.81 7.1001 10.17 7.1001 10.69C7.1001 11.21 7.4701 11.58 7.9901 11.58Z" Fill="#94989C"/>
+                    </Grid>
+                    <TextBlock
+                             Margin="4,0,0,0"
+                    FontFamily="Segoe UI"
+                    FontSize="12"
+                    Foreground="#94989C"
+                    Text="First 10 pages for free conversion."
+                        Height="20"
+                        />
+                    <TextBlock  FontFamily="Segoe UI"
+                    FontSize="12"  Height="20"  Foreground="{StaticResource color.light.blue.5}">
+                        <i:Interaction.Triggers>
+                                    <i:EventTrigger EventName="MouseDown">
+                                        <i:InvokeCommandAction Command="{Binding UnlockMouseDownCommand}" />
+                                        </i:EventTrigger>
+                        </i:Interaction.Triggers>
+                        <Underline >
+                           <TextBlock Text="Unlock"/>
+                        </Underline>
+                    </TextBlock>
+                </StackPanel>
             </Grid>
         </cus:DialogContent.Content>
         <cus:DialogContent.BottmBar>

+ 27 - 2
PDF Office/Views/Dialog/ConverterDialogs/ConverterTextDialog.xaml

@@ -9,9 +9,9 @@
              xmlns:pageeditdialogs="clr-namespace:PDF_Master.ViewModels.Dialog.PageEditDialogs"
              xmlns:prism="http://prismlibrary.com/" xmlns:converterdialogs="clr-namespace:PDF_Master.ViewModels.Dialog.ConverterDialogs"
              Width="468"
-             Height="454"
+             Height="478"
              d:DataContext="{d:DesignInstance Type=converterdialogs:ConverterTextDialogViewModel}"
-             d:DesignHeight="454"
+             d:DesignHeight="478"
              d:DesignWidth="468"
              prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
              prism:ViewModelLocator.AutoWireViewModel="True"
@@ -59,6 +59,31 @@
                         </StackPanel>
                     </StackPanel>
                 </Grid>
+                <StackPanel Orientation="Horizontal" Width="245" Panel.ZIndex="2" Grid.ColumnSpan="2" Height="20" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,16,8">
+                    <Grid Width="16" Height="16" >
+                        <Ellipse Width="13" Height="13"  Fill="white" Stroke="#CED0D4"/>
+                        <Path Data="M7.4701 8.91H8.5001L8.7601 5.49L8.8101 4H7.1601L7.2101 5.49L7.4701 8.91ZM7.9901 11.58C8.4901 11.58 8.8701 11.21 8.8701 10.69C8.8701 10.17 8.4901 9.81 7.9901 9.81C7.4801 9.81 7.1001 10.17 7.1001 10.69C7.1001 11.21 7.4701 11.58 7.9901 11.58Z" Fill="#94989C"/>
+                    </Grid>
+                    <TextBlock
+                             Margin="4,0,0,0"
+                    FontFamily="Segoe UI"
+                    FontSize="12"
+                    Foreground="#94989C"
+                    Text="First 10 pages for free conversion."
+                        Height="20"
+                        />
+                    <TextBlock  FontFamily="Segoe UI"
+                    FontSize="12"  Height="20"  Foreground="{StaticResource color.light.blue.5}">
+                        <i:Interaction.Triggers>
+                                    <i:EventTrigger EventName="MouseDown">
+                                        <i:InvokeCommandAction Command="{Binding UnlockMouseDownCommand}" />
+                                        </i:EventTrigger>
+                        </i:Interaction.Triggers>
+                        <Underline >
+                           <TextBlock Text="Unlock"/>
+                        </Underline>
+                    </TextBlock>
+                </StackPanel>
             </Grid>
         </cus:DialogContent.Content>
         <cus:DialogContent.BottmBar>

+ 27 - 2
PDF Office/Views/Dialog/ConverterDialogs/ConverterWordDialog.xaml

@@ -9,9 +9,9 @@
              xmlns:pageeditdialogs="clr-namespace:PDF_Master.ViewModels.Dialog.PageEditDialogs"
              xmlns:prism="http://prismlibrary.com/" xmlns:converterdialogs="clr-namespace:PDF_Master.ViewModels.Dialog.ConverterDialogs"
              Width="468"
-             Height="454"
+             Height="478"
              d:DataContext="{d:DesignInstance Type=converterdialogs:ConverterWordDialogViewModel}"
-             d:DesignHeight="454"
+             d:DesignHeight="478"
              d:DesignWidth="468"
              prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
              prism:ViewModelLocator.AutoWireViewModel="True"
@@ -74,6 +74,31 @@
                         </StackPanel>
                     </StackPanel>
                 </Grid>
+                <StackPanel Orientation="Horizontal" Width="245" Panel.ZIndex="2" Grid.ColumnSpan="2" Height="20" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,16,8">
+                    <Grid Width="16" Height="16" >
+                        <Ellipse Width="13" Height="13"  Fill="white" Stroke="#CED0D4"/>
+                        <Path Data="M7.4701 8.91H8.5001L8.7601 5.49L8.8101 4H7.1601L7.2101 5.49L7.4701 8.91ZM7.9901 11.58C8.4901 11.58 8.8701 11.21 8.8701 10.69C8.8701 10.17 8.4901 9.81 7.9901 9.81C7.4801 9.81 7.1001 10.17 7.1001 10.69C7.1001 11.21 7.4701 11.58 7.9901 11.58Z" Fill="#94989C"/>
+                    </Grid>
+                    <TextBlock
+                             Margin="4,0,0,0"
+                    FontFamily="Segoe UI"
+                    FontSize="12"
+                    Foreground="#94989C"
+                    Text="First 10 pages for free conversion."
+                        Height="20"
+                        />
+                    <TextBlock  FontFamily="Segoe UI"
+                    FontSize="12"  Height="20"  Foreground="{StaticResource color.light.blue.5}">
+                        <i:Interaction.Triggers>
+                                    <i:EventTrigger EventName="MouseDown">
+                                        <i:InvokeCommandAction Command="{Binding UnlockMouseDownCommand}" />
+                                        </i:EventTrigger>
+                        </i:Interaction.Triggers>
+                        <Underline >
+                           <TextBlock Text="Unlock"/>
+                        </Underline>
+                    </TextBlock>
+                </StackPanel>
             </Grid>
         </cus:DialogContent.Content>
         <cus:DialogContent.BottmBar>