60 likes | 227 Views
Converting a Print File. Converting a PCL print file to a PCL printer macro. Remove Reset Commands. %-12345X@PJL COMMENT HP LaserJet 5L @PJL SET PAGEPROTECT=OFF @PJL SET PAGEPROTECT=AUTO @PJL SET RET=ON @PJL SET ECONOMODE=OFF @PJL SET RESOLUTION=300 @PJL ENTER LANGUAGE=PCL
E N D
Converting a Print File Converting a PCL print file to a PCL printer macro
Remove Reset Commands • %-12345X@PJL COMMENT HP LaserJet 5L • @PJL SET PAGEPROTECT=OFF • @PJL SET PAGEPROTECT=AUTO • @PJL SET RET=ON • @PJL SET ECONOMODE=OFF • @PJL SET RESOLUTION=300 • @PJL ENTER LANGUAGE=PCL • E*t300R&u600D*r3F&l0O&l1H&l2a8c1E*p0x0Y*c0t5760x7680Y&l1X*b0M
Meaning of Raster Set-ups • *t300R - Dots per inch • &u600D - Number of PCL units per inch • *r3F - Raster graphic orientation • &l0O - Page orientation (delete) • &l1H - Paper source (delete) • &l2a8c1E - Page size,vertical motion,top margin • *p0x0Y - Sets pen to upper left corner • *c0t5760x7680Y Set picture frame anchor point and horizontal and vertical sizes • &l1X - Number of copies (delete) • *b0M - Set compression method
Remove File End Commands • *p864Y - Vertical cursor position (delete) • *p600X - Horizontal cursor position (delete) • E%-12345X Reset printer (delete)
Add Macro Commands • Beginning of file • &f123Y - Specify Macro Number “123” • &f0X - Start Macro definitionCan be combined into &f123y0X • End of file • &f1X - End Macro definition • &f10X - Make Macro permanent
Invoke Macro in Your Code • Print #printfile: esc$&”&f123y3XCalls and executes once Macro 123 • Print #printfile:esc$&”&f123y4XCalls Macro 123 for continuous overlay • Print #printfile:esc$&”&f123y5XStop automatic overlay • Print #printfile:esc$&”&f6XDelete all macros