Skip to content

Setting collections attributes? #38

@ragequitninja

Description

@ragequitninja

Thank you for making this library, it has helped so far a lot however I have a question regarding nesting/collections. For example, below is a config file used for testing in IPP tool where in the collection for media-col I would set the paper size dimensions. How is this achieved using this tool?

{
    VERSION 2.0
    OPERATION Print-Job

    GROUP operation-attributes-tag
    ATTR charset attributes-charset utf-8
    ATTR language attributes-natural-language en
    ATTR mimeMediaType document-format application/pdf
    ATTR uri printer-uri $uri
    ATTR enum orientation-requested 4

    GROUP job-attributes-tag
    ATTR keyword print-scaling none
    ATTR collection media-col {
        MEMBER keyword media-source "by-pass-tray"
        MEMBER collection media-size {
            MEMBER integer x-dimension 13510
            MEMBER integer y-dimension 14800
        }
    }

    FILE $filename
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions