[
https://issues.apache.org/jira/browse/PDFBOX-615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12853794#action_12853794
]
Andreas Lehmkühler commented on PDFBOX-615:
-------------------------------------------
I'm not an expert, but AFAIU the shfill operator, you are not that far away
from the solution. The shfill operator can be used similar to the fill operator
under the following terms:
- use Graphics2D.setPaint instead of Graphics2D.setColor, all needed
information should be in the shading dictionary
- take the current clipping area into amount
- don't use the current path
- use the path information from the shading dictionary (AFAIU that depends on
the used function??)
- if there aren't any path information in the dictionary, just use the clipping
path
- the current color in the grpahics state isn't used and must not be altered
HTH
> shfill operator needs implementation
> ------------------------------------
>
> Key: PDFBOX-615
> URL: https://issues.apache.org/jira/browse/PDFBOX-615
> Project: PDFBox
> Issue Type: New Feature
> Components: PDModel
> Reporter: Daniel Wilson
> Assignee: Daniel Wilson
>
> I have a PDF file (for which I do not yet have release permission) that uses
> the "sh" operator, equivalent to PostScript's shfill (per PDF spec 1.7 page
> 987).
> Adobe provides implementation guidance in a 78-page document at
> http://www.adobe.com/devnet/postscript/pdfs/TN5600.SmoothShading.pdf#17
> I will be trying to add this functionality this week, but if anyone has
> hints, suggestions, etc. they are most certainly welcome!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.