Login  Register

Re: Opening pdf files in ImageJ

Posted by dscho on Jul 10, 2009; 3:31pm
URL: http://imagej.273.s1.nabble.com/Opening-pdf-files-in-ImageJ-tp3691811p3691816.html

Hi,

On Fri, 10 Jul 2009, Aryeh Weiss wrote:

> Senger Fabrice wrote:
> > Mario Faretta a écrit :
> > > Dear all,
> > > is there any way using Imagej to open pdf files?
> > > Thanks for the help
> > > Mario
> > >
> > >  
> > http://pacific.mpi-cbg.de/wiki/index.php/Category:Plugins
> >
> > Category E :
> >
> > Extract Images From PDF...
> >
> > Cheers ,
> >
> > Fabrice.
>
> I downloaded the source, and compiled using compile and run. To make it
> compile, I had to name the source Extract_Images_From_PDF.java (it downloads
> as src-plugins_IO__io_Extract_Images_From_PDF)
>
> However, when I run it following apparently successful compilation, I get the
> following error:
>
> Plugin or class not found: "Extract_Images_From_PDF"
> (java.lang.NoClassDefFoundError: Extract_Images_From_PDF (wrong name:
> io/Extract_Images_From_PDF))
>
> What have I done wrong?
You need to put it into the subdirectory io/ because the class says
"package io;" at the beginning.  Alternatively, you can remove that
statement and recompile.  Be advised that you really need the jpedal.jar
in your plugins folder (but I guess you have, because you could
successfully compile the class).

Ciao,
Dscho