Hi,
Am 26.10.2010 18:59, schrieb José Rodolfo Carrijo de Freitas:
Hi Andreas,
I guess that I couldn’t express me very well. when I said:
“I was wondering if the remaining operators which identifies image graphical
states would
affect fonts and texts operators.” I want to mean that if that set of graphical
state could affect another operators outside the q-Q stack.
I understand that ‘q’ saves the graphics state and ‘Q’ restore the gs saved by
q.
Correct.
So if a set of operators are between q and Q, it would not affect anything
outside this block.
Correct.
The thing is that I’m not removing any q/Q operators, and it seems to affect
other parts of the stream.
One thing I noticed is that when I redraw the image, it creates another stream,
a new one just to the new image.
At this case, I have 2 streams and my content stream is actually an array of
substreams as show in the figure:
Still correct.
http://b.imagehost.org/view/0482/comparing-pdfs-in-pdfdebugger
Is it possible that a gs of stream 1 affects an operator of stream 0 ?
The streams will be concatenated. So there is no difference between 2 single
streams and 1 stream combining two single streams.
But you are probably missing one detail. Saving a gs doesn't mean that
everything will be set to their initial value, especially the ctm will be still
the same after a "q" command. In your example the ctm may have another value at
the end of stream 0/the beginning of stream 1 than the value somewhere in
between the stream from where you copied the command sequence.
BR
Andreas Lehmkühler