[
https://issues.apache.org/jira/browse/PDFBOX-615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837670#action_12837670
]
Igor Podolskiy commented on PDFBOX-615:
---------------------------------------
> I must say I'm a little confused regarding how to take that name and get the
> Shading Dictionary.
Well, the specification of the sh operator says ([PDF32000:2008], p. 182, Table
77, second paragraph) says:
"[...] [Operand] <name> is the name of a shading dictionary resource in the
Shadingsubdictionary of the current resource dictionary [...]"
As far as I understand, you are supposed to do the following if you encounter
an sh operator:
1. Get its operand (Sh0 in your example)
2. Look for a Shading entry in the Resources dictionary of the current page.
This entry is a dictionary itself.
3. Use your sh operand value (Sh0) as the key for that dictionary. The
corresponding value is the shading descriptor dictionary you use for the
painting.
(Derefencing the indirect references may be needed in between, of course.)
I think the confusion arises from the fact that the spec uses the term "shading
dictionary" for two different things: firstly, the entry in the page's
Resources dictionary with the key /Shading, and secondly, for the thing I
called "shading descriptor" here, i.e. the one with the /ShadingType etc.
entries which is described in section 8.7.4.3 of the spec.
[PDF32000:2008] http://www.adobe.com/devnet/acrobat/pdfs/PDF32000_2008.pdf
> 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.