kopia lustrzana https://gitlab.com/sane-project/backends
Add FormatExt for PDF.
rodzic
c7c5b1a602
commit
8ecd54e8d2
|
@ -80,6 +80,9 @@ static char formatExtPNG[] =
|
||||||
static char formatExtTIFF[] =
|
static char formatExtTIFF[] =
|
||||||
" <scan:DocumentFormatExt>image/tiff</scan:DocumentFormatExt>";
|
" <scan:DocumentFormatExt>image/tiff</scan:DocumentFormatExt>";
|
||||||
|
|
||||||
|
static char formatExtPDF[] =
|
||||||
|
" <scan:DocumentFormatExt>application/pdf</scan:DocumentFormatExt>";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \fn static size_t download_callback(void *str, size_t size, size_t nmemb, void *userp)
|
* \fn static size_t download_callback(void *str, size_t size, size_t nmemb, void *userp)
|
||||||
* \brief Callback function that stocks in memory the content of the 'job'. Example below :
|
* \brief Callback function that stocks in memory the content of the 'job'. Example below :
|
||||||
|
@ -173,6 +176,8 @@ escl_newjob (capabilities_t *scanner, SANE_String_Const name, SANE_Status *statu
|
||||||
format_ext = formatExtPNG;
|
format_ext = formatExtPNG;
|
||||||
else if (!strcmp(scanner->default_format, "image/tiff"))
|
else if (!strcmp(scanner->default_format, "image/tiff"))
|
||||||
format_ext = formatExtTIFF;
|
format_ext = formatExtTIFF;
|
||||||
|
else if (!strcmp(scanner->default_format, "application/pdf"))
|
||||||
|
format_ext = formatExtPDF;
|
||||||
else
|
else
|
||||||
format_ext = f_ext;
|
format_ext = f_ext;
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue