[
https://issues.apache.org/jira/browse/PDFBOX-1442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14112667#comment-14112667
]
Tilman Hausherr commented on PDFBOX-1442:
-----------------------------------------
A better solution is to take both into account, i.e. to multiply the pattern
matrix with the substream matrix. For the first time, I also get a good
rendering on PDFBOX-2098 p. 6 (will attach it there), and a better rendering on
PATTYP1.pdf. PATTYP1.pdf is not perfect ("P" and "S"), but this could be
because transforms other than x-y-identical-scales are not correctly handled
for shading types 2 and 3 (PDFBOX-2217), and these use a shear.
{code}
Matrix patternMatrix = shadingPattern.getMatrix();
if (patternMatrix == null)
{
return shading.toPaint(substreamMatrix);
}
return shading.toPaint(patternMatrix.multiply(substreamMatrix));
{code}
> bar chart converted from PDF is totally a black area.
> -----------------------------------------------------
>
> Key: PDFBOX-1442
> URL: https://issues.apache.org/jira/browse/PDFBOX-1442
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 1.7.1, 1.8.0, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 2.0.0
> Reporter: James Zhou
> Labels: shading, shadingpattern
> Attachments: clientfocus.PNG, clientfocus.pdf, funsh01.pdf-1.png,
> pdfbox-1442.pdf-1.png, pdfbox-1442.pdf-1.png
>
>
> The bar charts converted from PDF is totally a black area. The code is as
> following:
>
> PDFImageWriter imageWriter = new PDFImageWriter();
> boolean success = imageWriter.writeImage(document,
> imageFormat, password,
> startPage, endPage, outputPrefix, imageType,
> resolution);
> if (!success)
> {
> logger.error( "Error: no writer found for image format
> '"
> + imageFormat + "'" );
> System.exit(1);
>
> }
> I will attach the ppt and PNG files later
--
This message was sent by Atlassian JIRA
(v6.2#6252)