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

Andreas Lehmkühler edited comment on PDFBOX-5383 at 3/2/22, 12:15 PM:
----------------------------------------------------------------------

HI 

When i tries with the below sample problem, the java process itself crashes.

{code}
package pdfboxutil;

import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.rendering.PDFRenderer;

public class Crash {

    public static void main(String[] args) throws IOException {
        PDDocument document = PDDocument.load(new 
File("D:\\Development\\crash.pdf"));
        PDFRenderer pdfRenderer = new PDFRenderer(document);
        int count = document.getNumberOfPages();
        for (int i = 0; i < count; i++) {
            BufferedImage image = pdfRenderer.renderImage(i);
            System.out.println("Processed");
        }
       
    }
}
{code}

I am using JAVA 1.8.0_321, and pdf version 2.0.25. And in eclipse IDE i got 
this message

<terminated, exit value: -1073741571>C:\Program 
Files\Java\jdk1.8.0_321\bin\javaw.exe (Mar 2, 2022 11:21:36 AM)    

 


was (Author: krishnakittu528):
HI 

When i tries with the below sample problem, the java process itself crashes.

 

package pdfboxutil;

import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.rendering.PDFRenderer;

public class Crash {

    public static void main(String[] args) throws IOException {
        PDDocument document = PDDocument.load(new 
File("D:\\Development\\crash.pdf"));
        PDFRenderer pdfRenderer = new PDFRenderer(document);
        int count = document.getNumberOfPages();
        for (int i = 0; i < count; i++) {
            BufferedImage image = pdfRenderer.renderImage(i);
            System.out.println("Processed");
        }
        
    }

}

I am using JAVA 1.8.0_321, and pdf version 2.0.25. And in eclipse IDE i got 
this message

<terminated, exit value: -1073741571>C:\Program 
Files\Java\jdk1.8.0_321\bin\javaw.exe (Mar 2, 2022 11:21:36 AM)    

 

> JAVA program Crashes
> --------------------
>
>                 Key: PDFBOX-5383
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5383
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.24, 2.0.25
>            Reporter: krishna prasad
>            Priority: Major
>         Attachments: crash.pdf
>
>
> I am trying to convert the PDF into images by using render. It hangs up the 
> program.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to