Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PCL 5e : Image Out as Macro Issue?

Status
Not open for further replies.

tal6499

Programmer
Nov 9, 2011
42
PK
Hi,

Attached is the PCL Paraphernalia Analysis of the stream.

We have 5 images in total placed on 40 different pages. Raster data is placed separately in 5 macros for each image.

Image appears on first page while printing but other 39 pages are blank.

Escapee & PCL works previews are fine for all images.

Macro Sample:

Code:
0000332e     PCL Parameterised      <Esc>&f1Y         Macro Control ID (identifer = 1)
00003333     PCL Parameterised      <Esc>&f0X         Macro Control: Start Macro Definition
00003338     PCL Parameterised      <Esc>&f0S         Cursor Position Stack: Push (Store)
0000333d     PCL Parameterised      <Esc>*p0P         Palette Stack: Push (Store)
00003342     PCL Parameterised      <Esc>*r0F         Raster Graphics Presentation: Logical
00003347     PCL Parameterised      <Esc>*r1140T      Raster Height: Source (1140 raster rows)
0000334f     PCL Parameterised      <Esc>*r1710S      Raster Width: Source (1710 pixels)
00003357     PCL Parameterised      <Esc>*v6W         Configure Image Data (data length = 6)
0000335c     PCL Binary             [ 6 bytes ]       
00003362     PCL Parameterised      <Esc>*r1A         Start Raster Graphics: Left Margin at X
00003367     PCL Parameterised      <Esc>*b5129W      Transfer Raster Data By Row/Block (data length = 5129)
.
.
.

00597eb4     PCL Parameterised      <Esc>*b5129W      Transfer Raster Data By Row/Block (data length = 5129)
00597ebc     PCL Binary             [ 306 bytes ]     
00597fee     PCL Binary             [ 2048 bytes ]    
005987ee     PCL Binary             [ 2048 bytes ]    
00598fee     PCL Binary             [ 727 bytes ]     
005992c5     PCL Parameterised      <Esc>*rC          End Raster Graphics
005992c9     PCL Parameterised      <Esc>*p1P         Palette Stack: Pop (Recall)
005992ce     PCL Parameterised      <Esc>&f1S         Cursor Position Stack: Pop (Recall) 
005992d3     PCL Parameterised      <Esc>&f1X         Macro Control: Stop Macro Definition
005992d8     PCL Parameterised      <Esc>&f10X        Macro Control: Make Macro Permanent
005992de     PCL Parameterised      <Esc>&f3X         Macro Control: Call Macro

I have also tried executing(&f2X) the macro.


 
Why are there PCL5c commands in a PCL5e print stream?

Is this actually being sent to a color printer?

It looks as though the image is 24 bpp color data.

How are you creating the macro?




Jim Asman
 
yes,it has to be sent to a color printer and can be sent to a black printer.
Attached analysis contains 24bit images.
Macros just contain Raster Data and required commands related to image(including pallete,width,height,config image data,start & end raster data).
You may search the attached file for "start macro" & "stop macro" strings to see the commands in macros.



---Subject for this post mistakenly contain PCLe(sorry about that).---
 
There is way too much code there for a casual observer to debug.

I note that macro #1 is only executed once, and that is probably what is printing on the first page. What happens if all macro calls in the job are made to just macro #1. Do you then images beyond page one?

How is this PCL code being generated?



Jim Asman
 
ok,
i will try to make all macro calls to 1 at workplace in morning.

Code is being generated through our own libraries. Generator (the actual pcl writer) is what i am playing with.
 
I agree with Jim: "There is way too much code there for a casual observer to debug".

Perhaps if you posted the original .PCL file (rather than the analysis of this file), it would be possible for others to experiment with alterations to the file, to see the effects of such alterations.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top