Advertisement
Guest User

DDST

a guest
Jul 29th, 2015
1,217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.21 KB | None | 0 0
  1. DDST Format Description for the Ricoh C240DN printer
  2.  
  3. ----preliminary---
  4.  
  5. Copyright by Malte Sartor, 2015 ([email protected]).
  6. Licensed under CC BY-NC-SA (https://creativecommons.org/licenses/by-nc-sa/4.0/)
  7.  
  8. -----------------------------------------------------------------------
  9. | GDIJ - job information: filename, papertype, probably tray |
  10. -----------------------------------------------------------------------
  11. | GJET - user information: pc name and username |
  12. ----------------------------------------------------------------------|
  13. | -------------------------------------------------------------- |
  14. |N x | GDIP - one for each page: amount of bands, paper size, etc | |
  15. | | –––––––––––––––––––––––––––––––––––––––––––––––––– | |
  16. | | N x |GDIB - actual image band | | |
  17. | | -------------------------------------------------- | |
  18. | -------------------------------------------------------------- |
  19. -----------------------------------------------------------------------
  20. | JIDG - end of job marker |
  21. -----------------------------------------------------------------------
  22.  
  23.  
  24.  
  25. Blocks
  26. GDIJ: Job Destriction
  27. GJET: User Description
  28. GDIP: Parameters??
  29. GDIB: Image Data
  30. JIDG: Job End marker
  31.  
  32. GDIB Description
  33.  
  34. For CMYK Print, GDIB consists of a Global Header and 4 Parts, for each Toner Color.
  35.  
  36. The Header (hex):
  37. 47 44 49 42 00 00 00 00 00 00 01 F4 00 00 03 14 00 00 04 B4 00 00 05 54 13 00 01 00 00 00 00 00
  38. - Magic --- --DWORD 1-- --DWORD 2-- ---DWORD 3- ---DWORD 4- ---DWORD 5- WORD1 WORD2 --Zeroes---
  39.  
  40. DWORD 1:
  41. 1 For first GDIB
  42. 2 for last GDIB
  43. 0 for all other
  44.  
  45. DWORD 2:
  46. length in bytes of K
  47.  
  48. DWORD 3:
  49. length of C
  50.  
  51. DWORD 4:
  52. length of M
  53.  
  54. DWORD 5:
  55. length of Y
  56.  
  57. WORD 1:
  58. Pixel Width of Image Data
  59.  
  60. Word 2:
  61. Pixel Height of Image Data. Always 256, except the last GDIB, which is fitted to the printout length.
  62.  
  63. This is followed by 4 Segments of JBIG Data, each for KCMY.
  64. They are zero padded to a length of at least 32byte or a by 4 dividable length.
  65. At least one byte padding is added.
  66. pbmtojbg -q -l 0 -p 64 -m 0 -t 1 -s 256 generates compatible JBIG binaries.
  67.  
  68. BW GDIB blocks are completely the same, only the lenght of CMY are zero, and the JBIG Blocks for CMY are omitted.
  69.  
  70.  
  71. GJET
  72.  
  73. 0x00: GJET magic word
  74. 0x04: GJET total byte count: 168 [4]
  75. 0x08: Client Station Name [40]
  76. 0x48: Client User Name [40]
  77. 0x88: Zeros
  78.  
  79.  
  80. GDIJ
  81.  
  82. 0x00: GDIJ magic word [4]
  83. 0x04: GDIJ total byte count: 120 [4]
  84. Rest unknown, most likely contains, somehow coded, the tray and paper thickness in
  85.  
  86. GDIP
  87.  
  88. 0x00: GDIP magic word [4]
  89. 0x04: GDIP length: 128 [4]
  90. 0x08: Paper format [1] 1=Letter, 9=A4, more to follow.
  91. 0x0c: Dots width [2]
  92. 0x0e: Dots height [2]
  93. 0x20: Color count, 1 or 4 [1]
  94. 0x21: Duplex control: 1=no duplex, 0d= take page from tray, and keep for duplexing, 05= take kept page
  95. 0x22: Page Count, first page is 0, second 1 and so on [2]
  96. 0x27: Count of GDIB Blocks for this GDIP
  97. 0x38: Paper width in um [4] (or more likely printed area)
  98. 0x3c: Paper height in um [4]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement