[jira] [Commented] (PDFBOX-4149) PDF consisting on one page with 5 MB renders until the end of time using renderImageWithDPI
[ https://issues.apache.org/jira/browse/PDFBOX-4149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16401101#comment-16401101 ] Tilman Hausherr commented on PDFBOX-4149: - You could get times down by making a change in PDColorSpace.toRGBImageAWT(): {code:java} Graphics g = dest.getGraphics(); g.drawImage(src, 0, 0, null); g.dispose(); return dest; {code} The problem is that some images look slightly different. A compromise is to enclose the block with this: {code:java} if (raster.getWidth() * raster.getHeight() < 100) {code} > PDF consisting on one page with 5 MB renders until the end of time using > renderImageWithDPI > --- > > Key: PDFBOX-4149 > URL: https://issues.apache.org/jira/browse/PDFBOX-4149 > Project: PDFBox > Issue Type: Bug > Components: Rendering >Affects Versions: 2.0.8 >Reporter: Christian >Priority: Major > Attachments: SB_Flyer_SpargelPromo_03-062018.pdf > > > I am using PDFBOX 2.0.8 on a Java VM 1.8.0_151 > The attached and valid pdf should be rendered by calling > BufferedImage bim = pdfRenderer.renderImageWithDPI(i, 50); > But the rendering never ends - the only thing I see is this line repeating > very often in the console: > [Finalizer] DEBUG org.apache.pdfbox.io.ScratchFileBuffer - ScratchFileBuffer > not closed! > Here is the code that is used to open the document and then start the > rendering: > {code:java} > PDDocument document = PDDocument.load(file, > MemoryUsageSetting.setupTempFileOnly()); > try { >PDFRenderer pdfRenderer = new PDFRenderer(document); >int numberOfPages = document.getPages().getCount(); >for (int i = 0; i < numberOfPages; i++) { > BufferedImage bim = pdfRenderer.renderImageWithDPI(i, 50); > [...] > {code} > The line > BufferedImage bim = pdfRenderer.renderImageWithDPI(i, 50); > is never passed. I ran a test and have wait for 30 minutes to let it pass, > but nothing happens. > Please advise what to do and how to solve the issue. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-4149) PDF consisting on one page with 5 MB renders until the end of time using renderImageWithDPI
[ https://issues.apache.org/jira/browse/PDFBOX-4149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16395873#comment-16395873 ] ASF subversion and git services commented on PDFBOX-4149: - Commit 1826590 from [~tilman] in branch 'pdfbox/trunk' [ https://svn.apache.org/r1826590 ] PDFBOX-4149: fix typo > PDF consisting on one page with 5 MB renders until the end of time using > renderImageWithDPI > --- > > Key: PDFBOX-4149 > URL: https://issues.apache.org/jira/browse/PDFBOX-4149 > Project: PDFBox > Issue Type: Bug > Components: Rendering >Affects Versions: 2.0.8 >Reporter: Christian >Priority: Major > Attachments: SB_Flyer_SpargelPromo_03-062018.pdf > > > I am using PDFBOX 2.0.8 on a Java VM 1.8.0_151 > The attached and valid pdf should be rendered by calling > BufferedImage bim = pdfRenderer.renderImageWithDPI(i, 50); > But the rendering never ends - the only thing I see is this line repeating > very often in the console: > [Finalizer] DEBUG org.apache.pdfbox.io.ScratchFileBuffer - ScratchFileBuffer > not closed! > Here is the code that is used to open the document and then start the > rendering: > {code:java} > PDDocument document = PDDocument.load(file, > MemoryUsageSetting.setupTempFileOnly()); > try { >PDFRenderer pdfRenderer = new PDFRenderer(document); >int numberOfPages = document.getPages().getCount(); >for (int i = 0; i < numberOfPages; i++) { > BufferedImage bim = pdfRenderer.renderImageWithDPI(i, 50); > [...] > {code} > The line > BufferedImage bim = pdfRenderer.renderImageWithDPI(i, 50); > is never passed. I ran a test and have wait for 30 minutes to let it pass, > but nothing happens. > Please advise what to do and how to solve the issue. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-4149) PDF consisting on one page with 5 MB renders until the end of time using renderImageWithDPI
[ https://issues.apache.org/jira/browse/PDFBOX-4149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16395874#comment-16395874 ] ASF subversion and git services commented on PDFBOX-4149: - Commit 1826591 from [~tilman] in branch 'pdfbox/branches/2.0' [ https://svn.apache.org/r1826591 ] PDFBOX-4149: fix typo > PDF consisting on one page with 5 MB renders until the end of time using > renderImageWithDPI > --- > > Key: PDFBOX-4149 > URL: https://issues.apache.org/jira/browse/PDFBOX-4149 > Project: PDFBox > Issue Type: Bug > Components: Rendering >Affects Versions: 2.0.8 >Reporter: Christian >Priority: Major > Attachments: SB_Flyer_SpargelPromo_03-062018.pdf > > > I am using PDFBOX 2.0.8 on a Java VM 1.8.0_151 > The attached and valid pdf should be rendered by calling > BufferedImage bim = pdfRenderer.renderImageWithDPI(i, 50); > But the rendering never ends - the only thing I see is this line repeating > very often in the console: > [Finalizer] DEBUG org.apache.pdfbox.io.ScratchFileBuffer - ScratchFileBuffer > not closed! > Here is the code that is used to open the document and then start the > rendering: > {code:java} > PDDocument document = PDDocument.load(file, > MemoryUsageSetting.setupTempFileOnly()); > try { >PDFRenderer pdfRenderer = new PDFRenderer(document); >int numberOfPages = document.getPages().getCount(); >for (int i = 0; i < numberOfPages; i++) { > BufferedImage bim = pdfRenderer.renderImageWithDPI(i, 50); > [...] > {code} > The line > BufferedImage bim = pdfRenderer.renderImageWithDPI(i, 50); > is never passed. I ran a test and have wait for 30 minutes to let it pass, > but nothing happens. > Please advise what to do and how to solve the issue. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-4149) PDF consisting on one page with 5 MB renders until the end of time using renderImageWithDPI
[ https://issues.apache.org/jira/browse/PDFBOX-4149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16395494#comment-16395494 ] ASF subversion and git services commented on PDFBOX-4149: - Commit 1826574 from [~tilman] in branch 'pdfbox/branches/2.0' [ https://svn.apache.org/r1826574 ] PDFBOX-4149: forgot to use new constructor > PDF consisting on one page with 5 MB renders until the end of time using > renderImageWithDPI > --- > > Key: PDFBOX-4149 > URL: https://issues.apache.org/jira/browse/PDFBOX-4149 > Project: PDFBox > Issue Type: Bug > Components: Rendering >Affects Versions: 2.0.8 >Reporter: Christian >Priority: Major > Attachments: SB_Flyer_SpargelPromo_03-062018.pdf > > > I am using PDFBOX 2.0.8 on a Java VM 1.8.0_151 > The attached and valid pdf should be rendered by calling > BufferedImage bim = pdfRenderer.renderImageWithDPI(i, 50); > But the rendering never ends - the only thing I see is this line repeating > very often in the console: > [Finalizer] DEBUG org.apache.pdfbox.io.ScratchFileBuffer - ScratchFileBuffer > not closed! > Here is the code that is used to open the document and then start the > rendering: > {code:java} > PDDocument document = PDDocument.load(file, > MemoryUsageSetting.setupTempFileOnly()); > try { >PDFRenderer pdfRenderer = new PDFRenderer(document); >int numberOfPages = document.getPages().getCount(); >for (int i = 0; i < numberOfPages; i++) { > BufferedImage bim = pdfRenderer.renderImageWithDPI(i, 50); > [...] > {code} > The line > BufferedImage bim = pdfRenderer.renderImageWithDPI(i, 50); > is never passed. I ran a test and have wait for 30 minutes to let it pass, > but nothing happens. > Please advise what to do and how to solve the issue. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-4149) PDF consisting on one page with 5 MB renders until the end of time using renderImageWithDPI
[ https://issues.apache.org/jira/browse/PDFBOX-4149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16394867#comment-16394867 ] ASF subversion and git services commented on PDFBOX-4149: - Commit 1826504 from [~tilman] in branch 'pdfbox/branches/2.0' [ https://svn.apache.org/r1826504 ] PDFBOX-4149: use cache when creating base colorspace in indexed colorspace > PDF consisting on one page with 5 MB renders until the end of time using > renderImageWithDPI > --- > > Key: PDFBOX-4149 > URL: https://issues.apache.org/jira/browse/PDFBOX-4149 > Project: PDFBox > Issue Type: Bug > Components: Rendering >Affects Versions: 2.0.8 >Reporter: Christian >Priority: Major > Attachments: SB_Flyer_SpargelPromo_03-062018.pdf > > > I am using PDFBOX 2.0.8 on a Java VM 1.8.0_151 > The attached and valid pdf should be rendered by calling > BufferedImage bim = pdfRenderer.renderImageWithDPI(i, 50); > But the rendering never ends - the only thing I see is this line repeating > very often in the console: > [Finalizer] DEBUG org.apache.pdfbox.io.ScratchFileBuffer - ScratchFileBuffer > not closed! > Here is the code that is used to open the document and then start the > rendering: > {code:java} > PDDocument document = PDDocument.load(file, > MemoryUsageSetting.setupTempFileOnly()); > try { >PDFRenderer pdfRenderer = new PDFRenderer(document); >int numberOfPages = document.getPages().getCount(); >for (int i = 0; i < numberOfPages; i++) { > BufferedImage bim = pdfRenderer.renderImageWithDPI(i, 50); > [...] > {code} > The line > BufferedImage bim = pdfRenderer.renderImageWithDPI(i, 50); > is never passed. I ran a test and have wait for 30 minutes to let it pass, > but nothing happens. > Please advise what to do and how to solve the issue. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-4149) PDF consisting on one page with 5 MB renders until the end of time using renderImageWithDPI
[ https://issues.apache.org/jira/browse/PDFBOX-4149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16394868#comment-16394868 ] ASF subversion and git services commented on PDFBOX-4149: - Commit 1826505 from [~tilman] in branch 'pdfbox/trunk' [ https://svn.apache.org/r1826505 ] PDFBOX-4149: use cache when creating base colorspace in indexed colorspace > PDF consisting on one page with 5 MB renders until the end of time using > renderImageWithDPI > --- > > Key: PDFBOX-4149 > URL: https://issues.apache.org/jira/browse/PDFBOX-4149 > Project: PDFBox > Issue Type: Bug > Components: Rendering >Affects Versions: 2.0.8 >Reporter: Christian >Priority: Major > Attachments: SB_Flyer_SpargelPromo_03-062018.pdf > > > I am using PDFBOX 2.0.8 on a Java VM 1.8.0_151 > The attached and valid pdf should be rendered by calling > BufferedImage bim = pdfRenderer.renderImageWithDPI(i, 50); > But the rendering never ends - the only thing I see is this line repeating > very often in the console: > [Finalizer] DEBUG org.apache.pdfbox.io.ScratchFileBuffer - ScratchFileBuffer > not closed! > Here is the code that is used to open the document and then start the > rendering: > {code:java} > PDDocument document = PDDocument.load(file, > MemoryUsageSetting.setupTempFileOnly()); > try { >PDFRenderer pdfRenderer = new PDFRenderer(document); >int numberOfPages = document.getPages().getCount(); >for (int i = 0; i < numberOfPages; i++) { > BufferedImage bim = pdfRenderer.renderImageWithDPI(i, 50); > [...] > {code} > The line > BufferedImage bim = pdfRenderer.renderImageWithDPI(i, 50); > is never passed. I ran a test and have wait for 30 minutes to let it pass, > but nothing happens. > Please advise what to do and how to solve the issue. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-4149) PDF consisting on one page with 5 MB renders until the end of time using renderImageWithDPI
[ https://issues.apache.org/jira/browse/PDFBOX-4149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16394573#comment-16394573 ] Tilman Hausherr commented on PDFBOX-4149: - There is some hope to get the total time down a bit... tests with the profiler show that the time is lost in several areas. One Thing I noticed is that the colorspaces are all based on the same ICC colorspace, yet this colorspace is created again and again. > PDF consisting on one page with 5 MB renders until the end of time using > renderImageWithDPI > --- > > Key: PDFBOX-4149 > URL: https://issues.apache.org/jira/browse/PDFBOX-4149 > Project: PDFBox > Issue Type: Bug > Components: Rendering >Affects Versions: 2.0.8 >Reporter: Christian >Priority: Major > Attachments: SB_Flyer_SpargelPromo_03-062018.pdf > > > I am using PDFBOX 2.0.8 on a Java VM 1.8.0_151 > The attached and valid pdf should be rendered by calling > BufferedImage bim = pdfRenderer.renderImageWithDPI(i, 50); > But the rendering never ends - the only thing I see is this line repeating > very often in the console: > [Finalizer] DEBUG org.apache.pdfbox.io.ScratchFileBuffer - ScratchFileBuffer > not closed! > Here is the code that is used to open the document and then start the > rendering: > {code:java} > PDDocument document = PDDocument.load(file, > MemoryUsageSetting.setupTempFileOnly()); > try { >PDFRenderer pdfRenderer = new PDFRenderer(document); >int numberOfPages = document.getPages().getCount(); >for (int i = 0; i < numberOfPages; i++) { > BufferedImage bim = pdfRenderer.renderImageWithDPI(i, 50); > [...] > {code} > The line > BufferedImage bim = pdfRenderer.renderImageWithDPI(i, 50); > is never passed. I ran a test and have wait for 30 minutes to let it pass, > but nothing happens. > Please advise what to do and how to solve the issue. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-4149) PDF consisting on one page with 5 MB renders until the end of time using renderImageWithDPI
[ https://issues.apache.org/jira/browse/PDFBOX-4149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16394478#comment-16394478 ] Tilman Hausherr commented on PDFBOX-4149: - 165 seconds with the KCMS option onĀ [https://pdfbox.apache.org/2.0/getting-started.html] . 136 seconds when using the CMYK option. The file has 5223 images. > PDF consisting on one page with 5 MB renders until the end of time using > renderImageWithDPI > --- > > Key: PDFBOX-4149 > URL: https://issues.apache.org/jira/browse/PDFBOX-4149 > Project: PDFBox > Issue Type: Bug > Components: Rendering >Affects Versions: 2.0.8 >Reporter: Christian >Priority: Major > Attachments: SB_Flyer_SpargelPromo_03-062018.pdf > > > I am using PDFBOX 2.0.8 on a Java VM 1.8.0_151 > The attached and valid pdf should be rendered by calling > BufferedImage bim = pdfRenderer.renderImageWithDPI(i, 50); > But the rendering never ends - the only thing I see is this line repeating > very often in the console: > [Finalizer] DEBUG org.apache.pdfbox.io.ScratchFileBuffer - ScratchFileBuffer > not closed! > Here is the code that is used to open the document and then start the > rendering: > {code:java} > PDDocument document = PDDocument.load(file, > MemoryUsageSetting.setupTempFileOnly()); > try { >PDFRenderer pdfRenderer = new PDFRenderer(document); >int numberOfPages = document.getPages().getCount(); >for (int i = 0; i < numberOfPages; i++) { > BufferedImage bim = pdfRenderer.renderImageWithDPI(i, 50); > [...] > {code} > The line > BufferedImage bim = pdfRenderer.renderImageWithDPI(i, 50); > is never passed. I ran a test and have wait for 30 minutes to let it pass, > but nothing happens. > Please advise what to do and how to solve the issue. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org