You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling ipptool -v -T 3 ipp://<IPPHost>:8000/ipp/print/<MyPrinter> -f <sample>.pdf ex-print-job.test
fails to propagate IPP options with ‘-‘ in the name to ipptransform.
For example ATTR enum print-quality 5 in ex-print-job.test will be passed to ipptransform as environment variable IPP_PRINT_QUALITY=high but the function get_option() in ipptransform does not find the option, because it is looking first for a non existing command line option “print-quality” then for an environment variable “IPP_PRINT-QUALITY” and then for “IPP_PRINT-QUALITY_DEFAULT”.
The algorithm in get_option() to build the name of the environment variable must be the same, as in serverTransformJob().
At the moment the replacement of ‘-‘ to ‘_’ is missing in get_options()!
Without correction, ipptransform will ignore a lot of options set by environment variables, because the initialization in ippOptionsNew() / get_option() is looking for the wrong names.
i Screenshots
If applicable, add screenshots to help explain your problem.
I used ippsample "v2023.03" for the tests.
The text was updated successfully, but these errors were encountered:
AFischer4
changed the title
IPP options with ‘-‘ in the name Ignored, when passed to ipptransform do not work as expected
IPP options with ‘-‘ in the name ignored, when passed to ipptransform
Jun 12, 2023
Calling
ipptool -v -T 3 ipp://<IPPHost>:8000/ipp/print/<MyPrinter> -f <sample>.pdf ex-print-job.test
fails to propagate IPP options with ‘-‘ in the name to
ipptransform
.For example
ATTR enum print-quality 5
in ex-print-job.test will be passed toipptransform
as environment variableIPP_PRINT_QUALITY=high
but the function get_option() inipptransform
does not find the option, because it is looking first for a non existing command line option “print-quality
” then for an environment variable “IPP_PRINT-QUALITY
” and then for “IPP_PRINT-QUALITY_DEFAULT
”.The algorithm in
get_option()
to build the name of the environment variable must be the same, as inserverTransformJob()
.At the moment the replacement of ‘-‘ to ‘_’ is missing in
get_options()
!Without correction,
ipptransform
will ignore a lot of options set by environment variables, because the initialization inippOptionsNew()
/get_option()
is looking for the wrong names.i
Screenshots
If applicable, add screenshots to help explain your problem.
I used ippsample "v2023.03" for the tests.
The text was updated successfully, but these errors were encountered: