On Tue, 2023-01-24 at 10:03 +0100, Francesco Pretto wrote:
> PdfPainter never had a supported state with current position, compare
> 0.9.x[2]: LineTo() doesn't update a cursor at all. I'm still not
> introducing it in the reviewed code, since of course it's hard to
> maintain.
>
> .....
> 
> 4) We have now an inspectable PDF state stack in PdfPainter[5]. State
> of such extensions functions should be included in such painter
> state,
> but I have no idea how to do it because of the above questions;

        Hi,
thanks for the clarification. I see I misunderstood you, I'm sorry
about that. The above quoted parts are the reason for my
misunderstanding. I expected, that the "inspectable PDF state stack in
PdfPainter" also covers the current position of the "pen" in the
current path. As it does not, my initial concern is void.

I'm sorry for the noise.

By the way, I agree the PdfPainter could have only the PDF drawing
operations and anything "special/specific" can be added on top of it,
either by deriving from the PdfPainter and adding the new methods
(which can be a benefit in the future, if the "pen position" will be
recorded; instead of adding get/set for the position into the
PdfPainter), or as you've it now, a helper class with more complicated
drawings being done with simple API and the helper class calling the
PdfPainter functions under the hood. Helper or wrapper or extensions
or... it has many names for sure.

        Thanks and bye,
        zyx


_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to