导出和另存为增加读写gif功能

This commit is contained in:
yangjiaxuan 2022-08-01 16:57:25 +08:00
parent 527929d880
commit 899204949b
2 changed files with 7 additions and 2 deletions

View File

@ -39,6 +39,7 @@ static struct
, {".tif", "TIF - TIFF Revision 6", FILE_TYPE_ATTR_CONTAIN_MULTI_PAGES | FILE_TYPE_ATTR_MORE_OPTIONS}
, {".pdf", "PDF - Portable Document Format", FILE_TYPE_ATTR_CONTAIN_MULTI_PAGES}
, {".ofd", "OFD - Open Fixed-layout Document", FILE_TYPE_ATTR_CONTAIN_MULTI_PAGES}
, {".gif", "GIF - Graphics Interchange Format", FILE_TYPE_ATTR_CONTAIN_MULTI_PAGES}
, {".pdf", "OCR->PDF - Portable Document Format", FILE_TYPE_ATTR_THIRD_HANDLER}
, {".ofd", "OCR->OFD - Open Fixed-layout Document", FILE_TYPE_ATTR_THIRD_HANDLER}
#endif

View File

@ -82,6 +82,7 @@ Dialog_SaveAs::Dialog_SaveAs(QWidget *parent) :
"TIF - TIFF Revision 6(*.tif);;"
"PDF - Portable Document Format(*.pdf);;"
"OFD - Open Fixed-layout Document(*.ofd);;"
"GIF - Graphics Interchange Format(*.gif);;"
"OCR->PDF - Portable Document Format(*.pdf);;"
"OCR->OFD - Open Fixed-layout Document(*.ofd)");
#endif
@ -136,7 +137,7 @@ int Dialog_SaveAs::getTiffQuality()
bool Dialog_SaveAs::isOcr()
{
return (m_suffix >= 6);
return (m_suffix >= 7);
}
void Dialog_SaveAs::on_dialog_accepted()
@ -163,9 +164,12 @@ void Dialog_SaveAs::on_dialog_accepted()
extName = ".ofd";
break;
case 6:
extName = ".pdf";
extName = ".gif";
break;
case 7:
extName = ".pdf";
break;
case 8:
extName = ".ofd";
break;
}