[ https://issues.apache.org/jira/browse/PDFBOX-2686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr closed PDFBOX-2686. ----------------------------------- Resolution: Won't Fix This isn't a shaded shape, it is a pattern filled shape (PDFBOX-1915 has examples of shaded shapes). Patterns are not supported in 1.8 and won't be, but they are supported in the unreleased 2.0 version (that has a different API), and your file renders almost perfectly :-) You can download the command line app here: https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/2.0.0-SNAPSHOT/ or download the source code, including examples through svn. https://pdfbox.apache.org/downloads.html#scm If you want to try that one, you can ask questions on the user mailing list or search / ask on stackoverflow. > 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: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org