Issues with CUPS v3 API

Questions on certain printers and applications
Post Reply
steveren
Posts: 1
Joined: Thu May 09, 2024 9:00 pm

Issues with CUPS v3 API

Post by steveren »

I'm trying to write some printer code in C++ using version 3 of the CUPS library, which may be a bit brave of me... (See https://openprinting.github.io/cups/libcups/cupspm.html for more details)

However, there seem to be some issues which I can't resolve without looking into the PPD files, but PPD access functions are all removed now, as one of a number of breaking changes from 2.x

The specific example which prompts this post is trying to set the media type for my Canon Pixma Pro-100. The API symbol CUPS_MEDIA_TYPE which resolves to "media-type" doesn't match the value "MediaType" which is used in the TurboPrint PPD and I can't find any way of reliably connecting the two.

This is a personal project only, so I can always hard-code the equivalences if I need to, but does anyone have any insights into the 'right' way to do it? Or a better place to ask?

TIA.
Post Reply