[ 
https://issues.apache.org/jira/browse/PDFBOX-1094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Hewson updated PDFBOX-1094:
--------------------------------
    Attachment: v2_tiling_patterns.patch

I've attached a patch for an experimental new implementation of tiling 
patterns, it implements the ideas discussed in my comment of 02/Sep/14, in 
which basically said "we need to apply the pattern matrix to the surface that 
the pattern is drawn onto, not the pattern itself."

By transforming user space instead of pattern space we are able to get 
non-rectangular tilings working, such as those in PATTYP1.pdf. The secret is 
that in pattern space they are still just rectangular tilings.

The code I've attached only works at 72dpi currently, as it ignores the 
"substream matrix" and the DPI "xform", so expect jaggedness at high DPIs. My 
goal is to first get perfect rendering of all patterns at 72dpi and then fix 
the DPI scaling as an isolated task. Note also that the giant scaled pattern in 
tracemonkey.pdf will crash this code, that can also be solved later.

Please let me know if this patch produces good renderings for you - the goal is 
_perfect_ renderings at 72dpi before I continue.

> 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
>            Reporter: Andreas Lehmkühler
>            Priority: Minor
>         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-bugzilla693653.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.patch
>
>
> PDFBox doesn't support PDPattern colorspaces



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to