Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Not able to convert the image ebbeded in PDF page while converting with page.convert  RSS feed

 
shashidhar yarlagadda
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i trying to convert a PDF page into tiff image using the PDFBox-0.7.3 API as below mentioned.

PDPage page = (PDPage) pages.get( loopIndex );
BufferedImage bufferedImage = page.convertToImage();

some other code to convert it into tiff....

This PDF page is having a black and white image embeded in it. when i am trying to convert the the page, it was able to convert the remaining page except that black & white image. And it is giving the below error also.....

0000003b SystemErr R java.io.IOException: Not implemented
at org.pdfbox.pdmodel.graphics.color.PDCalRGB.createColorModel(PDCalRGB.java:129)
at org.pdfbox.pdmodel.graphics.xobject.PDPixelMap.getRGBImage(PDPixelMap.java:142)
at org.pdfbox.util.operator.pagedrawer.Invoke.process(Invoke.java:81)
at org.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:452)
at org.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:215)
at org.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:174)
at org.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:104)
at org.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:657)
at com.util.ImageConvUtil.pdfToImage(ImageConvUtil.java:577)

Thanks,
sha
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!