Re: unable to convert scanned pdf to jpg using pdf box with JBIG2 ImageIO 3.0.2

2018-11-01 Thread ACE
Hi,

Thank you so much for your help.


Regards,
Ace


On Thu, Nov 1, 2018 at 4:16 PM Tilman Hausherr 
wrote:

> Am 01.11.2018 um 09:05 schrieb ACE:
> > Hi,
> >
> > Do I just replace the jai jpeg2000 jar with bfopdf-jj2000.jar for the
> > conversion to work?
> > I don't find any sample implementation code using jj2000.
> >
> > Our situation is there is a jpeg 2000 embedded in pdf. We wanted to
> > converted pdf to jpg.
> > We are using the implementation code found in
> > https://github.com/faceless2/jpeg2000.
> > We got error No JP2 signature box. It seems like it is expecting us to
> pass
> > in a JP2 file.
>
> As I wrote in the linked issue "The bfo.com fork doesn't create a
> plugin". They mention this too: "but with the JAI dependencies removed".
>
> Pleased use the steps I described in
>
> https://issues.apache.org/jira/browse/PDFBOX-1752 .
>
>
> Tilman
>
>
> >
> > Please advise. Thank you.
> >
> >
> >
> > Regards,
> > Ace
> >
> > On Thu, Nov 1, 2018 at 12:26 AM Tilman Hausherr 
> > wrote:
> >
> >> Hi,
> >>
> >> This is a bug in the oracle jpeg2000 decoder. See at the bottom of
> >> https://issues.apache.org/jira/browse/PDFBOX-1752
> >> on how to fix this. You need to get the decoder sources and make a few
> >> changes and build.
> >>
> >> Tilman
> >>
> >> Am 31.10.2018 um 10:31 schrieb ACE:
> >>> Hi,
> >>>
> >>> The error is Cannot read JPEG2000 image: java advance imaging(JAI)
> image
> >>> i/o tools are not installed.
> >>> Subsequently I added jai-imageio-jpeg2000 1.3.0 and jai-imageio-core
> >> 1.4.0
> >>> and the image converted has black dots all over.
> >>>
> >>> Pdf and converted image can be found in google drive:
> >>>
> >>
> https://drive.google.com/drive/folders/1_f_aNFQJbqXz50ol8IxlJaLJ41hVH5T2?usp=sharing
> >>>
> >>> Thank you.
> >>>
> >>>
> >>> Regards,
> >>> Ace
> >>>
> >>>
> >>>
> >>> On Wed, Oct 31, 2018 at 3:45 PM Tilman Hausherr  >
> >>> wrote:
> >>>
>  Am 31.10.2018 um 07:38 schrieb ACE:
> > Hi,
> >
> > I am using pdfbox 2.0.12 with extension, JBIG2 ImageIO 3.0.2. I am
> > unable to convert the attached pdf to jpg. Converted jpg show white
> > background only.
>  Hello,
> 
>  Please upload your PDF somewhere, PDF attachments are usually deleted.
>  Please tell also how you converted. (Code or command line utility)
> Also
>  tell whether there were any log messages.
> 
>  Tilman
> 
>  -
>  To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
>  For additional commands, e-mail: users-h...@pdfbox.apache.org
> 
> 
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
> >> For additional commands, e-mail: users-h...@pdfbox.apache.org
> >>
> >>
>
>


Re: unable to convert scanned pdf to jpg using pdf box with JBIG2 ImageIO 3.0.2

2018-11-01 Thread Tilman Hausherr

Am 01.11.2018 um 09:05 schrieb ACE:

Hi,

Do I just replace the jai jpeg2000 jar with bfopdf-jj2000.jar for the
conversion to work?
I don't find any sample implementation code using jj2000.

Our situation is there is a jpeg 2000 embedded in pdf. We wanted to
converted pdf to jpg.
We are using the implementation code found in
https://github.com/faceless2/jpeg2000.
We got error No JP2 signature box. It seems like it is expecting us to pass
in a JP2 file.


As I wrote in the linked issue "The bfo.com fork doesn't create a 
plugin". They mention this too: "but with the JAI dependencies removed".


Pleased use the steps I described in

https://issues.apache.org/jira/browse/PDFBOX-1752 .


Tilman




Please advise. Thank you.



Regards,
Ace

On Thu, Nov 1, 2018 at 12:26 AM Tilman Hausherr 
wrote:


Hi,

This is a bug in the oracle jpeg2000 decoder. See at the bottom of
https://issues.apache.org/jira/browse/PDFBOX-1752
on how to fix this. You need to get the decoder sources and make a few
changes and build.

Tilman

Am 31.10.2018 um 10:31 schrieb ACE:

Hi,

The error is Cannot read JPEG2000 image: java advance imaging(JAI) image
i/o tools are not installed.
Subsequently I added jai-imageio-jpeg2000 1.3.0 and jai-imageio-core

1.4.0

and the image converted has black dots all over.

Pdf and converted image can be found in google drive:


https://drive.google.com/drive/folders/1_f_aNFQJbqXz50ol8IxlJaLJ41hVH5T2?usp=sharing


Thank you.


Regards,
Ace



On Wed, Oct 31, 2018 at 3:45 PM Tilman Hausherr 
wrote:


Am 31.10.2018 um 07:38 schrieb ACE:

Hi,

I am using pdfbox 2.0.12 with extension, JBIG2 ImageIO 3.0.2. I am
unable to convert the attached pdf to jpg. Converted jpg show white
background only.

Hello,

Please upload your PDF somewhere, PDF attachments are usually deleted.
Please tell also how you converted. (Code or command line utility) Also
tell whether there were any log messages.

Tilman

-
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org






Re: unable to convert scanned pdf to jpg using pdf box with JBIG2 ImageIO 3.0.2

2018-11-01 Thread ACE
Hi,

Do I just replace the jai jpeg2000 jar with bfopdf-jj2000.jar for the
conversion to work?
I don't find any sample implementation code using jj2000.

Our situation is there is a jpeg 2000 embedded in pdf. We wanted to
converted pdf to jpg.
We are using the implementation code found in
https://github.com/faceless2/jpeg2000.
We got error No JP2 signature box. It seems like it is expecting us to pass
in a JP2 file.

Please advise. Thank you.



Regards,
Ace

On Thu, Nov 1, 2018 at 12:26 AM Tilman Hausherr 
wrote:

> Hi,
>
> This is a bug in the oracle jpeg2000 decoder. See at the bottom of
> https://issues.apache.org/jira/browse/PDFBOX-1752
> on how to fix this. You need to get the decoder sources and make a few
> changes and build.
>
> Tilman
>
> Am 31.10.2018 um 10:31 schrieb ACE:
> > Hi,
> >
> > The error is Cannot read JPEG2000 image: java advance imaging(JAI) image
> > i/o tools are not installed.
> > Subsequently I added jai-imageio-jpeg2000 1.3.0 and jai-imageio-core
> 1.4.0
> > and the image converted has black dots all over.
> >
> > Pdf and converted image can be found in google drive:
> >
> https://drive.google.com/drive/folders/1_f_aNFQJbqXz50ol8IxlJaLJ41hVH5T2?usp=sharing
> >
> >
> > Thank you.
> >
> >
> > Regards,
> > Ace
> >
> >
> >
> > On Wed, Oct 31, 2018 at 3:45 PM Tilman Hausherr 
> > wrote:
> >
> >> Am 31.10.2018 um 07:38 schrieb ACE:
> >>> Hi,
> >>>
> >>> I am using pdfbox 2.0.12 with extension, JBIG2 ImageIO 3.0.2. I am
> >>> unable to convert the attached pdf to jpg. Converted jpg show white
> >>> background only.
> >> Hello,
> >>
> >> Please upload your PDF somewhere, PDF attachments are usually deleted.
> >> Please tell also how you converted. (Code or command line utility) Also
> >> tell whether there were any log messages.
> >>
> >> Tilman
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
> >> For additional commands, e-mail: users-h...@pdfbox.apache.org
> >>
> >>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
> For additional commands, e-mail: users-h...@pdfbox.apache.org
>
>


Re: unable to convert scanned pdf to jpg using pdf box with JBIG2 ImageIO 3.0.2

2018-10-31 Thread Tilman Hausherr

Hi,

This is a bug in the oracle jpeg2000 decoder. See at the bottom of
https://issues.apache.org/jira/browse/PDFBOX-1752
on how to fix this. You need to get the decoder sources and make a few 
changes and build.


Tilman

Am 31.10.2018 um 10:31 schrieb ACE:

Hi,

The error is Cannot read JPEG2000 image: java advance imaging(JAI) image
i/o tools are not installed.
Subsequently I added jai-imageio-jpeg2000 1.3.0 and jai-imageio-core 1.4.0
and the image converted has black dots all over.

Pdf and converted image can be found in google drive:
https://drive.google.com/drive/folders/1_f_aNFQJbqXz50ol8IxlJaLJ41hVH5T2?usp=sharing


Thank you.


Regards,
Ace



On Wed, Oct 31, 2018 at 3:45 PM Tilman Hausherr 
wrote:


Am 31.10.2018 um 07:38 schrieb ACE:

Hi,

I am using pdfbox 2.0.12 with extension, JBIG2 ImageIO 3.0.2. I am
unable to convert the attached pdf to jpg. Converted jpg show white
background only.

Hello,

Please upload your PDF somewhere, PDF attachments are usually deleted.
Please tell also how you converted. (Code or command line utility) Also
tell whether there were any log messages.

Tilman

-
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org



Re: unable to convert scanned pdf to jpg using pdf box with JBIG2 ImageIO 3.0.2

2018-10-31 Thread ACE
Hi,

The error is Cannot read JPEG2000 image: java advance imaging(JAI) image
i/o tools are not installed.
Subsequently I added jai-imageio-jpeg2000 1.3.0 and jai-imageio-core 1.4.0
and the image converted has black dots all over.

Pdf and converted image can be found in google drive:
https://drive.google.com/drive/folders/1_f_aNFQJbqXz50ol8IxlJaLJ41hVH5T2?usp=sharing


Thank you.


Regards,
Ace



On Wed, Oct 31, 2018 at 3:45 PM Tilman Hausherr 
wrote:

> Am 31.10.2018 um 07:38 schrieb ACE:
> > Hi,
> >
> > I am using pdfbox 2.0.12 with extension, JBIG2 ImageIO 3.0.2. I am
> > unable to convert the attached pdf to jpg. Converted jpg show white
> > background only.
>
> Hello,
>
> Please upload your PDF somewhere, PDF attachments are usually deleted.
> Please tell also how you converted. (Code or command line utility) Also
> tell whether there were any log messages.
>
> Tilman
>
> -
> To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
> For additional commands, e-mail: users-h...@pdfbox.apache.org
>
>


Re: unable to convert scanned pdf to jpg using pdf box with JBIG2 ImageIO 3.0.2

2018-10-31 Thread Tilman Hausherr

Am 31.10.2018 um 07:38 schrieb ACE:

Hi,

I am using pdfbox 2.0.12 with extension, JBIG2 ImageIO 3.0.2. I am 
unable to convert the attached pdf to jpg. Converted jpg show white 
background only.


Hello,

Please upload your PDF somewhere, PDF attachments are usually deleted. 
Please tell also how you converted. (Code or command line utility) Also 
tell whether there were any log messages.


Tilman

-
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org



unable to convert scanned pdf to jpg using pdf box with JBIG2 ImageIO 3.0.2

2018-10-31 Thread ACE
Hi,

I am using pdfbox 2.0.12 with extension, JBIG2 ImageIO 3.0.2. I am unable
to convert the attached pdf to jpg. Converted jpg show white background
only.


Regards,
Ace

-
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org

Re: Fwd: unable to convert scanned pdf to jpg using pdf box

2018-10-16 Thread Tilman Hausherr

Hi,

You need to have the JBIG2 decoder in your class path, see
https://pdfbox.apache.org/2.0/dependencies.html

Also update to 2.0.12 (current version) and make sure logging is enabled 
- if it had been, you would have received a message about the missing 
JBIG2 decoder.


Tilman

Am 17.10.2018 um 03:46 schrieb ACE:

Hi,

I am using pdfbox 2.0.7. I am having problem converting the attached 
pdf to jpg. Image converted turn out to be blank/white. The pdf is 
scanned from Xerox. This is the same problem as PDFBOX-886 which is 
flagged in year 2011.


Please advice. Thank you.

PDFBOX-886:
https://issues.apache.org/jira/browse/PDFBOX-886?jql=issuetype%20%3D%20Bug%20AND%20text%20~%20%22scanned%20pdf%22 



Regards,
Chui Eng


-
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org





Fwd: unable to convert scanned pdf to jpg using pdf box

2018-10-16 Thread ACE
Hi,

I am using pdfbox 2.0.7. I am having problem converting the attached pdf to
jpg. Image converted turn out to be blank/white. The pdf is scanned from
Xerox. This is the same problem as PDFBOX-886 which is flagged in year 2011.

Please advice. Thank you.

PDFBOX-886:
https://issues.apache.org/jira/browse/PDFBOX-886?jql=issuetype%20%3D%20Bug%20AND%20text%20~%20%22scanned%20pdf%22


Regards,
Chui Eng

-
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org

Re: unable to convert scanned pdf to jpg using pdf box

2018-10-11 Thread Tilman Hausherr

Hello,

Please update to the current version (2.0.12) and include the JBIG2 decoder.
https://pdfbox.apache.org/2.0/dependencies.html

There should have been a log message telling you that the JBIG2 decoder 
is missing. If not, then please take care that log messages with warning 
or worse do appear.


That PDF seems to be recent. It also shows that a Xerox scanner wasn't 
properly configured - JBIG2 encoding shouldn't be used (just google 
"Xerox jbig2" :-)  )


Tilman

Am 12.10.2018 um 05:05 schrieb ACE:

Hi,

I am using pdfbox 2.0.7. I am having problem converting the attached 
pdf to jpg. Image converted turn out to be blank/white. The pdf is 
scanned from Xerox. This is the same problem as PDFBOX-886 which is 
flagged in year 2011.


Please advice. Thank you.

PDFBOX-886:
https://issues.apache.org/jira/browse/PDFBOX-886?jql=issuetype%20%3D%20Bug%20AND%20text%20~%20%22scanned%20pdf%22 



Regards,
Chui Eng


-
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org





unable to convert scanned pdf to jpg using pdf box

2018-10-11 Thread ACE
Hi,

I am using pdfbox 2.0.7. I am having problem converting the attached pdf to
jpg. Image converted turn out to be blank/white. The pdf is scanned from
Xerox. This is the same problem as PDFBOX-886 which is flagged in year 2011.

Please advice. Thank you.

PDFBOX-886:
https://issues.apache.org/jira/browse/PDFBOX-886?jql=issuetype%20%3D%20Bug%20AND%20text%20~%20%22scanned%20pdf%22


Regards,
Chui Eng

-
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org