|
@@ -1873,16 +1873,19 @@ namespace PDF_Master.ViewModels.PageEdit
|
|
|
/// </summary>
|
|
|
public async void print(List<int> SelectedPages)
|
|
|
{
|
|
|
-
|
|
|
//保存并继续,使用了高级功能则弹窗权益弹窗
|
|
|
if (!viewContentViewModel.saveFile(true))
|
|
|
{
|
|
|
return;
|
|
|
}
|
|
|
- await App.Current.Dispatcher.InvokeAsync(() =>
|
|
|
- {
|
|
|
- PDFViewer.GoToPage(listSelecedIndex);
|
|
|
- });
|
|
|
+ if (ListSelectedIndex != -1)
|
|
|
+ {
|
|
|
+ await App.Current.Dispatcher.InvokeAsync(() =>
|
|
|
+ {
|
|
|
+ PDFViewer.GoToPage(ListSelectedIndex);
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
DialogParameters printValue = new DialogParameters();
|
|
|
printValue.Add(ParameterNames.PDFViewer, PDFViewer);
|
|
|
printValue.Add(ParameterNames.FilePath, PDFViewer.Document.FileName);
|