CAPS Universe documentation  1.0.4
All you need to know to be successful
Pre-process a Page

Das muss noch anders verteilt werden!

Introduction

After calling caps_rstr_page_get_next() you have a lot of information at hand, how the nature of the current page is and how the user wants to print it.

And you - the printer driver developer - know the requirements, capabilities and limits your printer device has.

At this point of time the preparation of the current page must be configured to meet all the expectations a user has to the print result.

But don't be afraid. Most of these configurations can be done by generic helper functions from the CAPS universe. Since these function can at most deal with the most common use cases, there still remain special use cases, where different configurations are reuqired. The latter one is up to you.

That is why this section tries to talk about all possible and required configurations and the limits of the generic helper functions.

Medium Sizes

You cannot assume the document print size always fits into your printer medium size. It is also possible to print larger or smaller documents. TODO

Auto Size Behaviour

  • if the document is larger than the print medium: crop content to the print medium (imageable area)
  • if the document is smaller than the print medium: print centered on the print medium -—> Bild rechts crop, links centerd

User Size Selection

  • scale up or down to fit into the print medium
  • keeping the size accuracy or aspect ratio depends on further user settings

TBD

Medium Margins

TBD

Print Resolutions

TBD

Print Rotation

TBD

Print Scaling

size accuracy versus aspect ratio

Document Content Adaptions to the Available Medium

Crop a document to print on a smaller medium to keep the size accuracy

Scaling a page's content to fit print medium TBD

Print Alignment

TBD

Simplex/Duplex Behaviour

TBD

Last Page Behaviour

TBD

Eject Medium

TBD