You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Alan Masters (JIRA)" <ji...@apache.org> on 2015/02/17 12:20:11 UTC

[jira] [Created] (PDFBOX-2686) Problem converting a shaded shape to another format

Alan Masters created PDFBOX-2686:
------------------------------------

             Summary: Problem converting a shaded shape to another format
                 Key: PDFBOX-2686
                 URL: https://issues.apache.org/jira/browse/PDFBOX-2686
             Project: PDFBox
          Issue Type: Bug
          Components: Rendering
    Affects Versions: 1.8.8
         Environment: Windows 7
            Reporter: Alan Masters
            Priority: Minor


Shading in a PDF file is not converted to another image format.

The shading is created (for example) using Microsoft Word, creating a shape then filling the shape using the shape fill and selecting a Pattern. The resultant document is then saved as PDF.

The conversion is attempted using:

PDDocument doc = PDDocument.load (new File (args[0]));
List pages = doc.getDocumentCatalog().getAllPages();
PDPage page = pages.get (0);
BufferedImage bi = page.convertToImage          (BufferedImage.TYPE_INT_RGB, 200);
ImageIO.write (bi, "png", new File (args[1]);

The result is that the shape outline is present in the output file, but no shading is seen.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org