[
https://issues.apache.org/jira/browse/PDFBOX-1094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14262317#comment-14262317
]
John Hewson edited comment on PDFBOX-1094 at 12/31/14 5:29 PM:
---------------------------------------------------------------
PDFBOX-2098-asyTUG.pdf p4 works fine for me, p6 has the missing type 4 shading
pattern. It's worth noting that the constructor to Type4ShadingPaint takes a
Matrix named "ctm" which isn't correct, as we now know that patterns are
independent of the CTM, hence the call to getInitialMatrix(). In this case
getInitialMatrix() is simply the identity matrix.
There's an interesting result if you replace the following code in
PageDrawer#getPaint:
{code}
return shading.toPaint(Matrix.concatenate(getInitialMatrix(),
shadingPattern.getMatrix()));
{code}
with:
{code}
return Color.BLUE;
{code}
Which suggests that the problem lies within Type4ShadingPaint as we know that
the matrix being passed to it is correct (i.e. it is _not_ the CTM).
was (Author: jahewson):
PDFBOX-2098-asyTUG.pdf p4 works fine for me, p6 has the missing type 4 shading
pattern. It's worth noting that the constructor to Type4ShadingPaint takes a
Matrix named "ctm" which isn't correct, as we now know that patterns are
independent of the CTM, hence the call to getInitialMatrix(). In this case
getInitialMatrix() is simply the identity matrix.
There's an interesting result if you replace the following code in
PageDrawer#getPaint:
{code}
return shading.toPaint(Matrix.concatenate(getInitialMatrix(),
shadingPattern.getMatrix()));this)
{code}
with:
{code}
return Color.BLUE;
{code}
Which suggests that the problem lies within Type4ShadingPaint as we know that
the matrix being passed to it is correct (i.e. it is _not_ the CTM).
> Pattern colorspace support
> --------------------------
>
> Key: PDFBOX-1094
> URL: https://issues.apache.org/jira/browse/PDFBOX-1094
> Project: PDFBox
> Issue Type: Improvement
> Components: Rendering
> Affects Versions: 1.6.0, 2.0.0
> Reporter: Andreas Lehmkühler
> Priority: Blocker
> Fix For: 2.0.0
>
> Attachments: ColoredTilingPaint.patch, PATTYP1.pdf, PATTYP2.pdf,
> PDF32000_2008_pg737.pdf, PDFBOX-1094-065514-XStep32767.pdf,
> PDFBOX-1094-094730.pdf, PDFBOX-1094-096213-p18.pdf,
> PDFBOX-1094-118358-Step-32767.pdf, PDFBOX-1094-PDFBOX-269.pdf,
> PDFBOX-1094-tiling_pattern.pdf-1-broken-tiles-with-ceil.png,
> PDFBOX-1861-tracemonkey13.png, PDFStreamEngine.patch, PageDrawer.patch,
> _pdfbox-1094-tiling_pattern.pdf-1-blurry.png, bugzilla8677511.jpg,
> gs-bugzilla688728.pdf, gs-bugzilla691715.pdf, gs-bugzilla692152.pdf,
> gs-bugzilla692503.ai, gs-bugzilla693653.pdf, gs-bugzilla694385.pdf,
> jagpdf_doc_patterns.pdf, jagpdf_doc_patterns.pdf-1.png,
> pdfbox-1094-pdf32000_2008_pg737.pdf-1.png,
> pdfbox-1094-pdf32000_2008_pg737.pdf-1.png, pdfbox-1094-pdfbox-269.pdf-2.png,
> pdfbox-1094-tiling_pattern.pdf-1.png, pdfbox-1094-tiling_pattern.pdf-1.png,
> pdfbox-1094-tiling_pattern.pdf-1.png, pdfbox-1861-tracemonkey.pdf-13.png,
> pdfbox-1861-tracemonkey.pdf-13.png, tiling_pattern.pdf,
> v2_tiling_patterns_v2.patch
>
>
> PDFBox doesn't support PDPattern colorspaces
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)