手动“手工”创建 PCL 文件是否可行?我已经为 PostScript 完成了它,发现它并不是特别困难,尽管即使是创建一个简单的绘图也需要花费大量时间和精力。现在我面临着一个连接到 Ubuntu PC 的 OKI C823,它打印正常但不理解 PostScript - 这可能解释了为什么它如此便宜......(对于这么大的打印机)我确实找到了下面的示例“PCL XL 功能参考”,但当我将它送入打印机时,文本只是作为文本打印,而不是绘制预期的线条。
eInch Measure
600 600 UnitsPerMeasure
BeginSession // attribute: basic measure for the session is inches
// attribute: 600 units in both X and Y direction
// operator: begin the imaging session
ePortraitOrientation Orientation
eLetterPaper MediaSize
BeginPage // attribute: page orientation is portrait
// attribute: size of media for page is letter
// operator: begin the page description
1200 800 Point
SetCursor // attribute: point a which to set the current cursor
// operator: set the cursor
2400 800 EndPoint
LinePath // attribute: endpoint of a 2 inch line
// operator: add the line to the current path
PaintPath // operator: paint the current path
EndPage // operator: end the page description
EndSession // operator: end the imaging session