导出和另存为增加读写gif功能
This commit is contained in:
parent
527929d880
commit
899204949b
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue