On Tue, 24 Jan 2023 at 13:49, zyx <z...@gmx.us> wrote:
> 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.
>

Yes, correct. All basic functions didn't have a "cursor" or "pen"
position, as found in the 0.9.x code, so this makes a lot of confusion
about the inner working of the "advanced" ones that I moved to the
helper class. I think that's is better to have no "pen" position at
all that have it somehow working for some functions only. It would
definitely be a good improvement to introduce it in all functions in a
clean way: with the automatic state stack as it is now it would also
work with PdfPainter::Save() and PdfPainter::Restore(), it's just a
matter of adding new fields to PdfPainterState[1] and maintaining
them. That requires some time investment and mathematical rigour, both
of them I can't provide right now. I will wait for a volunteer for
that, and if nobody comes at least I will offer a replacement for the
PdfPainter::Arc() function, as asked in the original message.

Regards,
Francesco

[1] 
https://github.com/podofo/podofo/blob/e92ff22ccf5a315e5dd863fa495fc96d3166edce/src/podofo/main/PdfPainter.h#L57


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

Reply via email to