[
https://issues.apache.org/jira/browse/PDFBOX-2686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alan Masters updated PDFBOX-2686:
---------------------------------
Attachment: ShadedShapes.pdf_1.png
ShadedShapes.pdf
PDFtoPNG.java
> 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
> Attachments: PDFtoPNG.java, ShadedShapes.pdf, ShadedShapes.pdf_1.png
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]