|
@@ -120,7 +120,7 @@ namespace PDF_Office.ViewModels.Dialog.ToolsDialogs
|
|
{
|
|
{
|
|
for (int i = 0; i < MergeObjectlist.Count; i++)
|
|
for (int i = 0; i < MergeObjectlist.Count; i++)
|
|
{
|
|
{
|
|
- MergeObjectlist[i].ItemIndex = i+1;
|
|
|
|
|
|
+ MergeObjectlist[i].ItemIndex = i + 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -385,8 +385,11 @@ namespace PDF_Office.ViewModels.Dialog.ToolsDialogs
|
|
}
|
|
}
|
|
if (FileType != ".pdf")
|
|
if (FileType != ".pdf")
|
|
{
|
|
{
|
|
- //var x= Properties.Resources.imageex.Split(";");
|
|
|
|
- if (!Properties.Resources.imageex.Contains(FileType))
|
|
|
|
|
|
+ string imagetype = "*" + FileType;
|
|
|
|
+ string[] x = Properties.Resources.imageex.ToLower().Split(';');
|
|
|
|
+ List<string> list = x.ToList();
|
|
|
|
+ int imageindex = list.IndexOf(imagetype);
|
|
|
|
+ if (imageindex < 0)
|
|
{
|
|
{
|
|
//图片格式不支持
|
|
//图片格式不支持
|
|
continue;
|
|
continue;
|
|
@@ -401,7 +404,7 @@ namespace PDF_Office.ViewModels.Dialog.ToolsDialogs
|
|
else
|
|
else
|
|
{
|
|
{
|
|
CPDFDocument doc = CPDFDocument.InitWithFilePath(mergeObject.FilePath);
|
|
CPDFDocument doc = CPDFDocument.InitWithFilePath(mergeObject.FilePath);
|
|
- if (doc==null)
|
|
|
|
|
|
+ if (doc == null)
|
|
{
|
|
{
|
|
//图片格式不支持
|
|
//图片格式不支持
|
|
continue;
|
|
continue;
|