[jira] [Commented] (PDFBOX-4121) (-Dorg.apache.pdfbox.rendering.UsePureJavaCMYKConversion=true) takes much time

2018-02-25 Thread Tilman Hausherr (JIRA)

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

Tilman Hausherr commented on PDFBOX-4121:
-

I also made some tests with big PDFs with large jbig2 and jpg files, but did 
not notice a difference, so I'll leave these filters unchanged for now.

> (-Dorg.apache.pdfbox.rendering.UsePureJavaCMYKConversion=true) takes much time
> --
>
> Key: PDFBOX-4121
> URL: https://issues.apache.org/jira/browse/PDFBOX-4121
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Rendering
>Affects Versions: 2.0.8
>Reporter: savan patel
>Assignee: Tilman Hausherr
>Priority: Major
>  Labels: DeviceCMYK
> Fix For: 2.0.9, 3.0.0 PDFBox
>
> Attachments: 5a55177653dee.pdf, PDFBOX-4121.jp2
>
>
> I have a pdf in which page 1 gets around 45 sec to render when i set the 
> property (-Dorg.apache.pdfbox.rendering.UsePureJavaCMYKConversion=true) and 
> without it it takes 20 sec.
> and something weird happens to me. when i don't set this property 
> (System.setProperty("sun.java2d.cmm", 
> "sun.java2d.cmm.kcms.KcmsServiceProvider")) then i get this warning "WARNING: 
> Could not read JPEG 2000 (JPX) image" . is it some jar related warning or it 
> happen to u also?



--
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-4121) (-Dorg.apache.pdfbox.rendering.UsePureJavaCMYKConversion=true) takes much time

2018-02-25 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on PDFBOX-4121:
-

Commit 1825293 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1825293 ]

PDFBOX-4121: use much faster MemoryCacheImageInputStream instead of result of 
ImageIO.createImageInputStream which is a FileCacheImageInputStream

> (-Dorg.apache.pdfbox.rendering.UsePureJavaCMYKConversion=true) takes much time
> --
>
> Key: PDFBOX-4121
> URL: https://issues.apache.org/jira/browse/PDFBOX-4121
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Rendering
>Affects Versions: 2.0.8
>Reporter: savan patel
>Priority: Major
>  Labels: DeviceCMYK
> Attachments: 5a55177653dee.pdf, PDFBOX-4121.jp2
>
>
> I have a pdf in which page 1 gets around 45 sec to render when i set the 
> property (-Dorg.apache.pdfbox.rendering.UsePureJavaCMYKConversion=true) and 
> without it it takes 20 sec.
> and something weird happens to me. when i don't set this property 
> (System.setProperty("sun.java2d.cmm", 
> "sun.java2d.cmm.kcms.KcmsServiceProvider")) then i get this warning "WARNING: 
> Could not read JPEG 2000 (JPX) image" . is it some jar related warning or it 
> happen to u also?



--
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-4121) (-Dorg.apache.pdfbox.rendering.UsePureJavaCMYKConversion=true) takes much time

2018-02-25 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on PDFBOX-4121:
-

Commit 1825294 from [~tilman] in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1825294 ]

PDFBOX-4121: use much faster MemoryCacheImageInputStream instead of result of 
ImageIO.createImageInputStream which is a FileCacheImageInputStream

> (-Dorg.apache.pdfbox.rendering.UsePureJavaCMYKConversion=true) takes much time
> --
>
> Key: PDFBOX-4121
> URL: https://issues.apache.org/jira/browse/PDFBOX-4121
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Rendering
>Affects Versions: 2.0.8
>Reporter: savan patel
>Priority: Major
>  Labels: DeviceCMYK
> Attachments: 5a55177653dee.pdf, PDFBOX-4121.jp2
>
>
> I have a pdf in which page 1 gets around 45 sec to render when i set the 
> property (-Dorg.apache.pdfbox.rendering.UsePureJavaCMYKConversion=true) and 
> without it it takes 20 sec.
> and something weird happens to me. when i don't set this property 
> (System.setProperty("sun.java2d.cmm", 
> "sun.java2d.cmm.kcms.KcmsServiceProvider")) then i get this warning "WARNING: 
> Could not read JPEG 2000 (JPX) image" . is it some jar related warning or it 
> happen to u also?



--
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-4121) (-Dorg.apache.pdfbox.rendering.UsePureJavaCMYKConversion=true) takes much time

2018-02-25 Thread Tilman Hausherr (JIRA)

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

Tilman Hausherr commented on PDFBOX-4121:
-

The loading of the image itself is slow:
{code}
ImageReader reader = 
ImageIO.getImageReadersByFormatName("JPEG2000").next();
FileInputStream input = new FileInputStream("PDFBOX-4121.jp2");
ImageInputStream iis = ImageIO.createImageInputStream(input);
reader.setInput(iis, true, true);
reader.read(0);
{code}
this takes a long time when read from a stream. Not when read from a file. And 
not with this small modification:
{code}
ImageReader reader = 
ImageIO.getImageReadersByFormatName("JPEG2000").next();
FileInputStream input = new FileInputStream("PDFBOX-4121.jp2");
ImageInputStream iis = new MemoryCacheImageInputStream(input);
reader.setInput(iis, true, true);
reader.read(0);
{code}
It turns out that java was providing a {{FileCacheImageInputStream}}.

> (-Dorg.apache.pdfbox.rendering.UsePureJavaCMYKConversion=true) takes much time
> --
>
> Key: PDFBOX-4121
> URL: https://issues.apache.org/jira/browse/PDFBOX-4121
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Rendering
>Affects Versions: 2.0.8
>Reporter: savan patel
>Priority: Major
>  Labels: DeviceCMYK
> Attachments: 5a55177653dee.pdf
>
>
> I have a pdf in which page 1 gets around 45 sec to render when i set the 
> property (-Dorg.apache.pdfbox.rendering.UsePureJavaCMYKConversion=true) and 
> without it it takes 20 sec.
> and something weird happens to me. when i don't set this property 
> (System.setProperty("sun.java2d.cmm", 
> "sun.java2d.cmm.kcms.KcmsServiceProvider")) then i get this warning "WARNING: 
> Could not read JPEG 2000 (JPX) image" . is it some jar related warning or it 
> happen to u also?



--
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-4121) (-Dorg.apache.pdfbox.rendering.UsePureJavaCMYKConversion=true) takes much time

2018-02-22 Thread Tilman Hausherr (JIRA)

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

Tilman Hausherr commented on PDFBOX-4121:
-

There is no guarantee that the CMYK option makes everything faster. It works 
best when there are many small CMYK Images. (Btw I tried setting a cache, it 
didn't have the improvement witnessed for other issues).

Re the JPEG2000 warning, I didn't get that. We once had a guy who worked on 
some IBM system and he lost his image plugin libraries in the middle of work.

> (-Dorg.apache.pdfbox.rendering.UsePureJavaCMYKConversion=true) takes much time
> --
>
> Key: PDFBOX-4121
> URL: https://issues.apache.org/jira/browse/PDFBOX-4121
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Rendering
>Affects Versions: 2.0.8
>Reporter: savan patel
>Priority: Major
>  Labels: DeviceCMYK
> Attachments: 5a55177653dee.pdf
>
>
> I have a pdf in which page 1 gets around 45 sec to render when i set the 
> property (-Dorg.apache.pdfbox.rendering.UsePureJavaCMYKConversion=true) and 
> without it it takes 20 sec.
> and something weird happens to me. when i don't set this property 
> (System.setProperty("sun.java2d.cmm", 
> "sun.java2d.cmm.kcms.KcmsServiceProvider")) then i get this warning "WARNING: 
> Could not read JPEG 2000 (JPX) image" . is it some jar related warning or it 
> happen to u also?



--
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