kopia lustrzana https://gitlab.com/sane-project/backends
Add FormatExt for PDF.
rodzic
c7c5b1a602
commit
8ecd54e8d2
|
@ -80,7 +80,10 @@ 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 :
|
||||||
* "Trying 192.168.14.150...
|
* "Trying 192.168.14.150...
|
||||||
|
@ -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