haiku/docs/develop/print/Spool File Format.txt

55 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Spool File Format
See
http://philippe.houdoin.free.fr/phil/beos/pdf_writer/spool_file_format_for_R4.png
Filename: Description@8DigitNumber
Location: /boot/home/config/settings/printers/PRINTER/
File Contents
struct print_file_header {
int32 version; // LSB first; minor: version & 0xffff; major: version >> 16
int32 page_count;
off_t first_page;
int32 _reserved_3_;
int32 _reserved_4_;
int32 _reserved_5_;
};
Flattened BMessage JobMessage {
float xresh, yresh, scaling?
BRect paper_rect
BRect printable_rect
int32 orientation
}
page_count times {
uint32 pictureCount;
pictureCount times {
off_t offset_to_next_picture;
byte reserved[40];
BPoint point;
BRect rect;
Flattended BPicture;
}
}
Attributes
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
"Processing", set by print_server while printing.
"Waiting", set by BPrintJob when it's fully written.
"Error", set by print_server if driver failed.
TEXT _spool/MimeType
application/x-vnd.gobe.productive