You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Alexey Zavizionov (JIRA)" <ji...@apache.org> on 2010/05/06 17:55:51 UTC

[jira] Created: (PDFBOX-723) Our test hangs with custom pdf file on operation PDPage.convertToImage()

Our test hangs with custom pdf file on operation PDPage.convertToImage()
------------------------------------------------------------------------

                 Key: PDFBOX-723
                 URL: https://issues.apache.org/jira/browse/PDFBOX-723
             Project: PDFBox
          Issue Type: Bug
    Affects Versions: 1.1.0, 0.7.3, 1.2.0
         Environment: Linux, JDK 1.5 Update 22 (32 and 64), JDK 1.5 Update 16
(works with Linux, JDK 1.6  perfect, 
works with MacOS JDK 1.5 update 13)
            Reporter: Alexey Zavizionov
            Priority: Blocker


Our code is:
{code}
   public RenditionContentStream getRenditionStream(ContentStream stream) throws IOException
   {
      PDDocument pdf = null;
      try
      {
         pdf = PDDocument.load(stream.getStream());
         PDPage page = (PDPage)pdf.getDocumentCatalog().getAllPages().get(0);
         BufferedImage image = page.convertToImage();
...
{code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PDFBOX-723) Our test hangs with custom pdf file on operation PDPage.convertToImage()

Posted by "Alexey Zavizionov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Zavizionov updated PDFBOX-723:
-------------------------------------

    Description: 
Our code is:
{code}

      String pdfname = "081111.pdf";
      InputStream pdf = Thread.currentThread().getContextClassLoader().getResourceAsStream(pdfname);
      ContentStream stream = new BaseContentStream(pdf, pdfname, new MimeType("application", "pdf"));

      PDDocument pdf = PDDocument.load(stream.getStream());
      PDPage page = (PDPage)pdf.getDocumentCatalog().getAllPages().get(0);
      BufferedImage image = page.convertToImage();
...
{code}

  was:
Our code is:
{code}
   public RenditionContentStream getRenditionStream(ContentStream stream) throws IOException
   {
      PDDocument pdf = null;
      try
      {
         pdf = PDDocument.load(stream.getStream());
         PDPage page = (PDPage)pdf.getDocumentCatalog().getAllPages().get(0);
         BufferedImage image = page.convertToImage();
...
{code}


> Our test hangs with custom pdf file on operation PDPage.convertToImage()
> ------------------------------------------------------------------------
>
>                 Key: PDFBOX-723
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-723
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 0.7.3, 1.1.0, 1.2.0
>         Environment: Linux, JDK 1.5 Update 22 (32 and 64), JDK 1.5 Update 16
> (works with Linux, JDK 1.6  perfect, 
> works with MacOS JDK 1.5 update 13)
>            Reporter: Alexey Zavizionov
>            Priority: Blocker
>         Attachments: 081111.pdf
>
>
> Our code is:
> {code}
>       String pdfname = "081111.pdf";
>       InputStream pdf = Thread.currentThread().getContextClassLoader().getResourceAsStream(pdfname);
>       ContentStream stream = new BaseContentStream(pdf, pdfname, new MimeType("application", "pdf"));
>       PDDocument pdf = PDDocument.load(stream.getStream());
>       PDPage page = (PDPage)pdf.getDocumentCatalog().getAllPages().get(0);
>       BufferedImage image = page.convertToImage();
> ...
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PDFBOX-723) Our test hangs with custom pdf file on operation PDPage.convertToImage()

Posted by "Alexey Zavizionov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Zavizionov updated PDFBOX-723:
-------------------------------------

    Attachment: 081111.pdf

The PDF 

> Our test hangs with custom pdf file on operation PDPage.convertToImage()
> ------------------------------------------------------------------------
>
>                 Key: PDFBOX-723
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-723
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 0.7.3, 1.1.0, 1.2.0
>         Environment: Linux, JDK 1.5 Update 22 (32 and 64), JDK 1.5 Update 16
> (works with Linux, JDK 1.6  perfect, 
> works with MacOS JDK 1.5 update 13)
>            Reporter: Alexey Zavizionov
>            Priority: Blocker
>         Attachments: 081111.pdf
>
>
> Our code is:
> {code}
>    public RenditionContentStream getRenditionStream(ContentStream stream) throws IOException
>    {
>       PDDocument pdf = null;
>       try
>       {
>          pdf = PDDocument.load(stream.getStream());
>          PDPage page = (PDPage)pdf.getDocumentCatalog().getAllPages().get(0);
>          BufferedImage image = page.convertToImage();
> ...
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.