Skip Menu |

This queue is for tickets about the PDF-API2 CPAN distribution.

Report information
The Basics
Id: 98538
Status: open
Priority: 0/
Queue: PDF-API2

People
Owner: Nobody in particular
Requestors: philperry [...] hvc.rr.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: arc() sweep angle problem
Date: Tue, 02 Sep 2014 10:59:52 -0400
To: bug-PDF-API2 [...] rt.cpan.org
From: Phil M Perry <philperry [...] hvc.rr.com>
PDF::API2 v2.022 Perl 5.16.3 Windows 7 severity: Important In Content.pm, the arc() method refuses to cross the 0 degree line. Instead of sweeping across the 0 degree line from a larger angle to a smaller one, it appears to always be sweeping from the smaller angle to the larger one, even if $alpha is given as the larger (starting) angle and $beta is the smaller (ending) angle. I have submitted a POD change (documentation) to the maintainer to point out this limitation. It would probably be better to remove the limitation by splitting the arc draw into $alpha-to-360 and 0-to-$beta (if $alpha > $beta) sub-arcs. Note that the pie() method (Content.pm) makes use of arc(), and so has this same limitation.
Subject: [rt.cpan.org #98538]
Date: Sat, 23 Jan 2016 13:10:03 -0500
To: bug-PDF-API2 [...] rt.cpan.org
From: Phil M Perry <philperry [...] hvc.rr.com>
I don't think it will be as simple as always moving counter-clockwise, although that is a possible solution. Can anyone come up with a reason to permit a clockwise direction of travel from $alpha to $beta? If there isn't, forcing CCW direction can force the arc() routine to cross over the 0 degree line (the desired result here). Otherwise, if there may be a legitimate reason (such as a future embedding of text or directional annotations such as arrowheads in a line), an %opts flag could be added to override the default CCW direction. Thoughts?
Subject: [rt.cpan.org #98538]
Date: Sun, 24 Jan 2016 11:51:02 -0500
To: bug-PDF-API2 [...] rt.cpan.org
From: Phil M Perry <philperry [...] hvc.rr.com>
By the way, to add a comment to this thread, just email bug-PDF-API2 [at] rt.cpan.org with subject line [rt.cpan.org #98538]. Note 1 space between org and #, and the [ ] around the whole subject. Nothing else. If you don't follow this format carefully, you will end up creating a new bug report! Let's see if HTML formatting within the body of the comment works: this is /italic/ and this is *bold*.
FYI, this is fixed in PDF::Builder