You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Don Jensen (JIRA)" <ji...@apache.org> on 2013/12/11 23:49:07 UTC

[jira] [Comment Edited] (PDFBOX-1809) Embedded Fonts not drawn on Pages BufferedImage

    [ https://issues.apache.org/jira/browse/PDFBOX-1809?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13845800#comment-13845800 ] 

Don Jensen edited comment on PDFBOX-1809 at 12/11/13 10:47 PM:
---------------------------------------------------------------

Code:

<code>
for(int index = 0; index < workDoc.getNumberOfPages(); index++){
    		
    		PDPage workPage = (PDPage) workDoc.getDocumentCatalog().getAllPages().get(index);
    		BufferedImage workImage = workPage.convertToImage();
    		
    		ImageIO.write(workImage, "PNG", new File(baseFolder + "PdfBoxImage_" + index + ".png"));
    		
    	}

</code>


was (Author: shondu222):
Code:

for(int index = 0; index < workDoc.getNumberOfPages(); index++){
    		
    		PDPage workPage = (PDPage) workDoc.getDocumentCatalog().getAllPages().get(index);
    		BufferedImage workImage = workPage.convertToImage();
    		
    		ImageIO.write(workImage, "PNG", new File(baseFolder + "PdfBoxImage_" + index + ".png"));
    		
    	}



> Embedded Fonts not drawn on Pages BufferedImage
> -----------------------------------------------
>
>                 Key: PDFBOX-1809
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1809
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.8.3
>         Environment: Windows 7 professional, Spring Tool Suite Version 3.2.0.RELEASE java version 1.7.0.45
>            Reporter: Don Jensen
>         Attachments: 01-0001-01-REP.pdf, PdfBoxImage_0.png, PdfBoxImage_1.png
>
>
> When converting a PDF Page to image PDPage,convertToImage.  Some fonts are not transferring to the bufferedImage canvas.  



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)