You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Teka (JIRA)" <ji...@apache.org> on 2010/05/06 14:06:47 UTC

[jira] Created: (PDFBOX-722) Add support to draw or fill a polygon

Add support to draw or fill a polygon
-------------------------------------

                 Key: PDFBOX-722
                 URL: https://issues.apache.org/jira/browse/PDFBOX-722
             Project: PDFBox
          Issue Type: New Feature
          Components: Writing
    Affects Versions: 1.1.0
            Reporter: Teka
            Priority: Minor
             Fix For: 1.1.0


Add support to draw or fill a polygon.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PDFBOX-722) Add support to draw or fill a polygon

Posted by "Teka (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Teka updated PDFBOX-722:
------------------------

    Attachment:     (was: drawPolygon_and_FillPolygon.patch)

> Add support to draw or fill a polygon
> -------------------------------------
>
>                 Key: PDFBOX-722
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-722
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: Writing
>    Affects Versions: 1.1.0
>            Reporter: Teka
>            Priority: Minor
>             Fix For: 1.1.0
>
>         Attachments: drawPolygon_and_FillPolygon.patch.fixed
>
>
> Add support to draw or fill a polygon.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PDFBOX-722) Add support to draw or fill a polygon

Posted by "Teka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12864775#action_12864775 ] 

Teka commented on PDFBOX-722:
-----------------------------

1. drawPolygon work like drawLine, we just draw the path.

2. Yes, we create a path (connected with lines) and after we "stroke" or "fill"

3. That's the case.

This is conform to PDF 1.4 specification... so it work and tests with Adobe Reader 9.2 and Foxit PDF Reader 3.3

> Add support to draw or fill a polygon
> -------------------------------------
>
>                 Key: PDFBOX-722
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-722
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: Writing
>    Affects Versions: 1.1.0
>            Reporter: Teka
>            Priority: Minor
>             Fix For: 1.1.0
>
>         Attachments: drawPolygon_and_FillPolygon.patch, drawPolygon_and_FillPolygon.patch.fixed
>
>
> Add support to draw or fill a polygon.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (PDFBOX-722) Add support to draw or fill a polygon

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler resolved PDFBOX-722.
---------------------------------------

    Resolution: Fixed

I've added the patch with version 947148. 

I've restructed the code a little bit to be more flexible. I've splitted the fill/stroke commands in 2 seperated methods add + fill/stroke.

Additionally I've added some more commands like 

-bezier curves
- fill(windingRule)
- stroke
- clipPath(windingRule)
- close + stroke

> Add support to draw or fill a polygon
> -------------------------------------
>
>                 Key: PDFBOX-722
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-722
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: Writing
>    Affects Versions: 1.1.0
>            Reporter: Teka
>            Priority: Minor
>             Fix For: 1.2.0
>
>         Attachments: drawPolygon_and_FillPolygon.patch.fixed
>
>
> Add support to draw or fill a polygon.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PDFBOX-722) Add support to draw or fill a polygon

Posted by "Teka (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Teka updated PDFBOX-722:
------------------------

    Attachment: drawPolygon_and_FillPolygon.patch

Here my patch to add theses possibilities.

> Add support to draw or fill a polygon
> -------------------------------------
>
>                 Key: PDFBOX-722
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-722
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: Writing
>    Affects Versions: 1.1.0
>            Reporter: Teka
>            Priority: Minor
>             Fix For: 1.1.0
>
>         Attachments: drawPolygon_and_FillPolygon.patch
>
>
> Add support to draw or fill a polygon.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PDFBOX-722) Add support to draw or fill a polygon

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler updated PDFBOX-722:
--------------------------------------

    Fix Version/s: 1.2.0
                       (was: 1.1.0)

> Add support to draw or fill a polygon
> -------------------------------------
>
>                 Key: PDFBOX-722
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-722
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: Writing
>    Affects Versions: 1.1.0
>            Reporter: Teka
>            Priority: Minor
>             Fix For: 1.2.0
>
>         Attachments: drawPolygon_and_FillPolygon.patch.fixed
>
>
> Add support to draw or fill a polygon.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PDFBOX-722) Add support to draw or fill a polygon

Posted by "Daniel Wilson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12864766#action_12864766 ] 

Daniel Wilson commented on PDFBOX-722:
--------------------------------------

Thanks, Teka ... but I've got a couple questions:

1.  Shouldn't drawPolygon use the *stroking* color?
2.  Do these methods create components of the Path so they are rendered with drawPath and fillPath?  
3.  Shouldn't fillPolygon create a Path and then fill it?

As I understand, Java sees a polygon as a special case of a path and PDF skips the "special case" and just sees a path.  If your methods work with that, that's good.  I'm just not sure ... so some clarification would be helpful.

Thanks.

> Add support to draw or fill a polygon
> -------------------------------------
>
>                 Key: PDFBOX-722
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-722
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: Writing
>    Affects Versions: 1.1.0
>            Reporter: Teka
>            Priority: Minor
>             Fix For: 1.1.0
>
>         Attachments: drawPolygon_and_FillPolygon.patch
>
>
> Add support to draw or fill a polygon.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (PDFBOX-722) Add support to draw or fill a polygon

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870137#action_12870137 ] 

Andreas Lehmkühler edited comment on PDFBOX-722 at 5/21/10 4:04 PM:
--------------------------------------------------------------------

I've added the patch with version 947148. 

I've restructed the code a little bit to be more flexible. I've splitted the fill/stroke commands in 2 seperated methods add + fill/stroke.

Additionally I've added some more commands like 

-bezier curves
- fill(windingRule)
- stroke
- clipPath(windingRule)
- close + stroke

Thanks to Teka for the contribution.

      was (Author: lehmi):
    I've added the patch with version 947148. 

I've restructed the code a little bit to be more flexible. I've splitted the fill/stroke commands in 2 seperated methods add + fill/stroke.

Additionally I've added some more commands like 

-bezier curves
- fill(windingRule)
- stroke
- clipPath(windingRule)
- close + stroke
  
> Add support to draw or fill a polygon
> -------------------------------------
>
>                 Key: PDFBOX-722
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-722
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: Writing
>    Affects Versions: 1.1.0
>            Reporter: Teka
>            Priority: Minor
>             Fix For: 1.2.0
>
>         Attachments: drawPolygon_and_FillPolygon.patch.fixed
>
>
> Add support to draw or fill a polygon.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PDFBOX-722) Add support to draw or fill a polygon

Posted by "Teka (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Teka updated PDFBOX-722:
------------------------

    Attachment: drawPolygon_and_FillPolygon.patch.fixed

Patch fixed. Sorry.

> Add support to draw or fill a polygon
> -------------------------------------
>
>                 Key: PDFBOX-722
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-722
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: Writing
>    Affects Versions: 1.1.0
>            Reporter: Teka
>            Priority: Minor
>             Fix For: 1.1.0
>
>         Attachments: drawPolygon_and_FillPolygon.patch, drawPolygon_and_FillPolygon.patch.fixed
>
>
> Add support to draw or fill a polygon.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.