Bug report #741 Canon PIXMA iP7260 CD print alignment
Grant Pearson <[email protected]> Wed, 10 Jul 2024 10:31:16 +1200
| Newsgroups | gmane.linux.printing.gimp-print.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Solomon,
Can the patches I made to fix bug report #741 "Canon PIXMA iP7260 CD
print alignment" please be incorporated into release 5.3.5
The patch is:
I have successfully printed to CD by updated the range for CDXAdjustment
& CDYAdjustment in:
./src/main/print-canon.c
lines 334-339 (correct text):
{
"CDYAdjustment", N_("CD Vertical Fine Adjustment"),
"Color=No,Category=Advanced Printer Setup",
N_("Fine adjustment to vertical position for CD printing"),
STP_PARAMETER_TYPE_DIMENSION, STP_PARAMETER_CLASS_FEATURE,
STP_PARAMETER_LEVEL_ADVANCED, 1, 1, STP_CHANNEL_NONE, 1, 0
},
lines 2950-2961 (increase range from -15 - +15 to -250 - +250:
else if (strcmp(name, "CDXAdjustment") == 0 ||
strcmp(name, "CDYAdjustment") == 0)
{
const char* input_slot = stp_get_string_parameter(v, "InputSlot");
description->bounds.dimension.lower = -250;
description->bounds.dimension.upper = 250;
description->deflt.dimension = 0;
if (!input_slot || !strcmp(input_slot,"CD"))
description->is_active = 1;
else
description->is_active = 0;
}
I also increased the range in the corresponding Pixma iP8760.PPD file
(and the value for DefaultStpCDYAdjustment =125 for correct printing on
Pixma iP8760) .
Thanks
Grant