cups printing multiple files from c++ using intermediate file -



cups printing multiple files from c++ using intermediate file -

i trying send big image custom printer. due memory restrictions , fact image processed total color, image has chunked in smaller sections sent printer. since not images have same size (or feed/cutmedia options), have print them separately, each own alternative set

jobid = cupsprintfile(...) each image (instead of jobid = cupsprintfiles)

if multiple jobs sent printer or multiple users sending jobs, there risk jobs go between chunks current job.

the solution can come with, send print jobs file instead of printer, using options (and going through filters), take print jobs created , send them batch printer, single jobid...

are both of these steps possible ?

i can "print file" if set

lpoptions -o file="/home/me/abcd.prn"

....but...

1) how do through c++ code ?

2) how create happen different files abcd1.prn, abcd2.prn, abcd3.prn during same print session ?

3) how send files abcd1.prn, abcd2.prn, abcd3.prn real printer during same print session through c++ code ? single job ?

are of steps above possible ?

my thought - create backend print file - backend files printer ?

i used 2dir backend, here , read , concatenated files - getting either file "print file", or sent printer in single job.

to send custom backend, used cups alternative - , created script run through code install printer used 2dir backend, if not installed.

c++ printing queue options cups

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -