Return-Path: X-Original-To: apmail-pdfbox-dev-archive@www.apache.org Delivered-To: apmail-pdfbox-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2E5C71050E for ; Fri, 13 Jun 2014 03:07:02 +0000 (UTC) Received: (qmail 54083 invoked by uid 500); 13 Jun 2014 03:07:02 -0000 Delivered-To: apmail-pdfbox-dev-archive@pdfbox.apache.org Received: (qmail 54056 invoked by uid 500); 13 Jun 2014 03:07:02 -0000 Mailing-List: contact dev-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pdfbox.apache.org Delivered-To: mailing list dev@pdfbox.apache.org Received: (qmail 54033 invoked by uid 99); 13 Jun 2014 03:07:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jun 2014 03:07:02 +0000 Date: Fri, 13 Jun 2014 03:07:01 +0000 (UTC) From: "John Hewson (JIRA)" To: dev@pdfbox.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (PDFBOX-2104) Implement transparency groups MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PDFBOX-2104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14030195#comment-14030195 ] John Hewson edited comment on PDFBOX-2104 at 6/13/14 3:06 AM: -------------------------------------------------------------- Ok, I took another look at the patch and I'm not sure it's handling color the 2.0 way yet. In 2.0 all internal BufferedImages are (A)RGB with a DirectColorModel, so the color conversions routines in ImagePaint don't look like they're needed. Also it seems like AbstractImagePaint and ImagePaint are just drawing an image using Paint, can AWT's TexturePaint class be used instead? I have some additional questions about PDFormXObject#createPageDrawerGroup() but they are unrelated, so I'll save that discussion until later. was (Author: jahewson): Ok, I took another look at the patch and I'm not sure it's handling color the 2.0 way yet. In 2.0 all internal BufferedImages are (A)RGB, so the color conversions routines in ImagePaint don't look like they're needed. Likewise, all Raster instances use a ComponentColorModel in 2.0. Also it seems like AbstractImagePaint and ImagePaint are just drawing an image using Paint, can AWT's TexturePaint class be used instead? I have some additional questions about PDFormXObject#createPageDrawerGroup() but they are unrelated, so I'll save that discussion until later. > Implement transparency groups > ----------------------------- > > Key: PDFBOX-2104 > URL: https://issues.apache.org/jira/browse/PDFBOX-2104 > Project: PDFBox > Issue Type: Improvement > Components: Rendering > Affects Versions: 2.0.0 > Reporter: Petr Slaby > Assignee: John Hewson > Attachments: 000001_MTEXT_CS6.pdf, TransparencyGroups.1.patch, TransparencyGroups.patch > > > The attached PDF uses transparency groups, blending and soft masks to create the rounded corners and shades behind images. It appears that these features are not implemented in PDFBox. An implementation proposal is attached in the TransparencyGroup.patch. The basic idea is to create a buffered image, draw the transparency group content onto it and then use the result to produce the soft mask or draw the image on the original g2d. > Note: I am not the (only) author of the proposed change. It was developed in our company few years ago in sources based on a 1.7.x version of PDFBox, mostly by a guy who already left. Over the years, merging of the work done in PDFBox main stream into our source base has become impossible due to many refactorings and other deep going changes done. Now we would like to go the opposite way - where possible - bring the changes and fixes we have done into PDFBox main stream and start to use it in our installations. -- This message was sent by Atlassian JIRA (v6.2#6252)