[open-beos-printing] Spool File Format?

Hello,

for the implementation of BPrintJob the spool file
format has to be known. Below follows what I have
discovered yet by looking at the PDF Writer source. 
It also includes questions under C++ line comment.
Please help to fill the gaps.

- Michael

Spool File Format

Filename: Description@8DigitNumber  // time/date/uptime?

Location: /boot/home/config/settings/printers/PRINTER/

File Contents

struct print_file_header {
       int32   version; // host byte order; minor: version & 0xffff; major: 
version >> 16
       int32   page_count;
       off_t   first_page; // always -1?
       int32   _reserved_3_;
       int32   _reserved_4_;
       int32   _reserved_5_;
};

Flattened BMessage JobMessage {
    // what fields are required, which type do they have, what meaning (if 
not obvious)?
        float xresh, yresh, scaling?
        BRect paper_rect
        BRect printable_rect
        int32 orientation
}

page_count times {
        uint32 pictureCount;
        pictureCount times {
            // meaning/type of unknown?
                byte unknown[40+sizeof(off_t)];
                BPoint point;
                BRect rect;
                Flattended BPicture;
        }
}



Attributes + example values

MIMS BEOS:TYPE
        application/x-vnd.Be.printer-spool
LONG _spool/Page Count
        2
TEXT _spool/Description
        Bookmarks.gbe
TEXT _spool/Printer 
        PDF
CSTR _spool/Status 
    // other states?
        Processing
TEXT _spool/MimeType 
        application/x-vnd.gobe.productive


Other related posts: