Re: Problems with FOP and image

2011-06-07 Thread Oscar.Flores

Ok i actually register the handler now what i have to do is setup this
handler or not?? and how can i do that, also it seem that the bmp its not
recognice also what can i do?? thanks for the help rob 
also i am trying to convert the images to see if it that helps
   

Rob Sargent-4 wrote:
 
 
 
 On 06/06/2011 02:29 PM, Oscar.Flores wrote:
 Hi what can be the difference between execute the program in netbeans
 (where
 it works and print the images and the jar in the console)
 Different classes being loaded by Netbeans than the console app.  Get 
 Netbeans to show you the full classpath it's using in it's %classpath 
 variable
 also i tried the
 imageIO.getImageReadersBySuffix but i cant interpretate the data y.y, its
 that or always its true in the boolean variable, and how can i register
 the
 handler??
 
 Talk to IIORegistry, some thing like
  
 IIORegistry.getDefaultInstance().registerServiceProvider(new 
 CLibJPEGImageReaderSpi());
  
 IIORegistry.getDefaultInstance().registerServiceProvider(new 
 CLibJPEGImageWriterSpi());
 Note: those are not necessarily the services you have in your setup.
 Thanks


 Rob Sargent-4 wrote:
 See the javadoc on IIORegistry. With ImageIO you may have to register
 your handler(s). What does ImageIO.getImageReadersBySuffix() give you.

 For certain jpegs we don't use ImageIO, rather the classes in
 com.sun.image.codec.jpeg:
   try {
   FileOutputStream fos = new FileOutputStream(file);
   JPEGImageEncoder encoder =
 JPEGCodec.createJPEGEncoder(fos);
   JPEGEncodeParam param =
 encoder.getDefaultJPEGEncodeParam(image.getRaster(),
 JPEGDecodeParam.COLOR_ID_CMYK);
   param.setQuality(1, false);
   encoder.encode(image.getRaster(), param);
   fos.close();
   } catch (Throwable t) {
   logger.debug(t.getMessage());
   }
 But generally we use ImageIO

 On 06/06/2011 08:29 AM, Oscar.Flores wrote:
 Yeah i think i need your help again i tried tu run the .jar file in the
 console it work but without images this it what appears

 GRAVE: Error while processing image: I:\cfd\rfc.jpg (image/jpeg)
 org.apache.xmlgraphics.image.loader.ImageException: Cannot load image
 (no
 suitable loader/converter combination available) for I:\cfd\rfc.jpg
 (image/jpeg)

 i tried  download the jai-imagio add to the class path but it dont work


 Rob Sargent-4 wrote:
 Very odd.  I'm having no problems getting images into pdfs using
 fop-1.0.

 On 06/03/2011 11:04 AM, Oscar.Flores wrote:
 aaa hey thanks for the help the other day, i resolve the problem
 changing
 the
 version of FOP for the 0.95beta instead of the 1.0, it works now it
 prints
 the image and its good, thanks and we are in touch if anything else
 fails
 jejeje

 Rob Sargent-4 wrote:
 Nothing in the log from the transformer?

 On 06/03/2011 09:47 AM, Oscar.Flores wrote:
 hi there i have another problem i hope you can help me the pdf that
 i
 create
 with foe has no image, it dont show any of them, the xsl seems to
 be
 rigth i
 tested with EditX and the pdf show me the image, what can it be, i
 have
 xmlgraphics-commons-1.5svn, fop 1.0, fop-pdf-images 2.0.1 Snapshot
 for
 the
 render of the image but it don work please help!!!  :,(
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail:
 fop-users-h...@xmlgraphics.apache.org



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



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



 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 
 
 
:-):confused::confused::confused::confused:=)
-- 
View this message in context: 
http://old.nabble.com/Problems-with-FOP-and-image-tp31766430p31792091.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: Problems with FOP and image

2011-06-07 Thread Rob Sargent

ImageIO.write(bufferedImage, JPEG, file);

On 06/07/2011 08:21 AM, Oscar.Flores wrote:

Ok i actually register the handler now what i have to do is setup this
handler or not?? and how can i do that, also it seem that the bmp its not
recognice also what can i do?? thanks for the help rob
also i am trying to convert the images to see if it that helps


Rob Sargent-4 wrote:



On 06/06/2011 02:29 PM, Oscar.Flores wrote:

Hi what can be the difference between execute the program in netbeans
(where
it works and print the images and the jar in the console)

Different classes being loaded by Netbeans than the console app.  Get
Netbeans to show you the full classpath it's using in it's %classpath
variable

also i tried the
imageIO.getImageReadersBySuffix but i cant interpretate the data y.y, its
that or always its true in the boolean variable, and how can i register
the
handler??

Talk to IIORegistry, some thing like

IIORegistry.getDefaultInstance().registerServiceProvider(new
CLibJPEGImageReaderSpi());

IIORegistry.getDefaultInstance().registerServiceProvider(new
CLibJPEGImageWriterSpi());
Note: those are not necessarily the services you have in your setup.

Thanks


Rob Sargent-4 wrote:

See the javadoc on IIORegistry. With ImageIO you may have to register
your handler(s). What does ImageIO.getImageReadersBySuffix() give you.

For certain jpegs we don't use ImageIO, rather the classes in
com.sun.image.codec.jpeg:
   try {
   FileOutputStream fos = new FileOutputStream(file);
   JPEGImageEncoder encoder =
JPEGCodec.createJPEGEncoder(fos);
   JPEGEncodeParam param =
encoder.getDefaultJPEGEncodeParam(image.getRaster(),
JPEGDecodeParam.COLOR_ID_CMYK);
   param.setQuality(1, false);
   encoder.encode(image.getRaster(), param);
   fos.close();
   } catch (Throwable t) {
   logger.debug(t.getMessage());
   }
But generally we use ImageIO

On 06/06/2011 08:29 AM, Oscar.Flores wrote:

Yeah i think i need your help again i tried tu run the .jar file in the
console it work but without images this it what appears

GRAVE: Error while processing image: I:\cfd\rfc.jpg (image/jpeg)
org.apache.xmlgraphics.image.loader.ImageException: Cannot load image
(no
suitable loader/converter combination available) for I:\cfd\rfc.jpg
(image/jpeg)

i tried  download the jai-imagio add to the class path but it dont work


Rob Sargent-4 wrote:

Very odd.  I'm having no problems getting images into pdfs using
fop-1.0.

On 06/03/2011 11:04 AM, Oscar.Flores wrote:

aaa hey thanks for the help the other day, i resolve the problem
changing
the
version of FOP for the 0.95beta instead of the 1.0, it works now it
prints
the image and its good, thanks and we are in touch if anything else
fails
jejeje

Rob Sargent-4 wrote:

Nothing in the log from the transformer?

On 06/03/2011 09:47 AM, Oscar.Flores wrote:

hi there i have another problem i hope you can help me the pdf that
i
create
with foe has no image, it dont show any of them, the xsl seems to
be
rigth i
tested with EditX and the pdf show me the image, what can it be, i
have
xmlgraphics-commons-1.5svn, fop 1.0, fop-pdf-images 2.0.1 Snapshot
for
the
render of the image but it don work please help!!!  :,(

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




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




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




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




:-):confused::confused::confused::confused:=)


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



Re: Problems with FOP and image

2011-06-07 Thread Oscar.Flores

Hi ok this is for generate images that dont need to be decompress later?? and
the result image i put in my xsl ?? then it should work, aaa i change to fop
1.0 and xml communs 1.4 and its the same jejeje   dont find the image
preload

org.apache.fop.fo.flow.ExternalGraphic bind
SEVERE: Image not available: The file format is not supported. No
ImagePreloader for *.jpg or *.bmp


Rob Sargent-4 wrote:
 
 ImageIO.write(bufferedImage, JPEG, file);
 
 On 06/07/2011 08:21 AM, Oscar.Flores wrote:
 Ok i actually register the handler now what i have to do is setup this
 handler or not?? and how can i do that, also it seem that the bmp its not
 recognice also what can i do?? thanks for the help rob
 also i am trying to convert the images to see if it that helps


 Rob Sargent-4 wrote:


 On 06/06/2011 02:29 PM, Oscar.Flores wrote:
 Hi what can be the difference between execute the program in netbeans
 (where
 it works and print the images and the jar in the console)
 Different classes being loaded by Netbeans than the console app.  Get
 Netbeans to show you the full classpath it's using in it's %classpath
 variable
 also i tried the
 imageIO.getImageReadersBySuffix but i cant interpretate the data y.y,
 its
 that or always its true in the boolean variable, and how can i register
 the
 handler??
 Talk to IIORegistry, some thing like

 IIORegistry.getDefaultInstance().registerServiceProvider(new
 CLibJPEGImageReaderSpi());

 IIORegistry.getDefaultInstance().registerServiceProvider(new
 CLibJPEGImageWriterSpi());
 Note: those are not necessarily the services you have in your setup.
 Thanks


 Rob Sargent-4 wrote:
 See the javadoc on IIORegistry. With ImageIO you may have to register
 your handler(s). What does ImageIO.getImageReadersBySuffix() give you.

 For certain jpegs we don't use ImageIO, rather the classes in
 com.sun.image.codec.jpeg:
try {
FileOutputStream fos = new FileOutputStream(file);
JPEGImageEncoder encoder =
 JPEGCodec.createJPEGEncoder(fos);
JPEGEncodeParam param =
 encoder.getDefaultJPEGEncodeParam(image.getRaster(),
 JPEGDecodeParam.COLOR_ID_CMYK);
param.setQuality(1, false);
encoder.encode(image.getRaster(), param);
fos.close();
} catch (Throwable t) {
logger.debug(t.getMessage());
}
 But generally we use ImageIO

 On 06/06/2011 08:29 AM, Oscar.Flores wrote:
 Yeah i think i need your help again i tried tu run the .jar file in
 the
 console it work but without images this it what appears

 GRAVE: Error while processing image: I:\cfd\rfc.jpg (image/jpeg)
 org.apache.xmlgraphics.image.loader.ImageException: Cannot load image
 (no
 suitable loader/converter combination available) for I:\cfd\rfc.jpg
 (image/jpeg)

 i tried  download the jai-imagio add to the class path but it dont
 work


 Rob Sargent-4 wrote:
 Very odd.  I'm having no problems getting images into pdfs using
 fop-1.0.

 On 06/03/2011 11:04 AM, Oscar.Flores wrote:
 aaa hey thanks for the help the other day, i resolve the problem
 changing
 the
 version of FOP for the 0.95beta instead of the 1.0, it works now it
 prints
 the image and its good, thanks and we are in touch if anything else
 fails
 jejeje

 Rob Sargent-4 wrote:
 Nothing in the log from the transformer?

 On 06/03/2011 09:47 AM, Oscar.Flores wrote:
 hi there i have another problem i hope you can help me the pdf
 that
 i
 create
 with foe has no image, it dont show any of them, the xsl seems to
 be
 rigth i
 tested with EditX and the pdf show me the image, what can it be,
 i
 have
 xmlgraphics-commons-1.5svn, fop 1.0, fop-pdf-images 2.0.1
 Snapshot
 for
 the
 render of the image but it don work please help!!!  :,(
 -
 To unsubscribe, e-mail:
 fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail:
 fop-users-h...@xmlgraphics.apache.org



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



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



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



 :-):confused::confused::confused::confused:=)
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 
 
 

-- 
View this message in context: 

Re: Complex Script, BIDI text supported?

2011-06-07 Thread Glenn Adams
Matthias et al.,

The following issues have been fixed, and are available in the i18n.arabic
branch at http://github.com/skynavga/fop:

   - fo:character in RTL context (
   http://skynav.trac.cvsdude.com/fop/ticket/39)
   - fo:page-number-citation in RTL context (
   http://skynav.trac.cvsdude.com/fop/ticket/40)

Note that there remains an issue with fo:character in the context of certain
scripts, e.g., Arabic, Indic, etc., in which case an fo:character boundary
prevents script shaping (contextual variants, ligatures, etc) from occurring
across the element boundary. I am investigating ways to resolve this, but it
looks like it may require significant work to resolve. I am tracking this
separate problem at http://skynav.trac.cvsdude.com/fop/ticket/35.

Regards,
Glenn

2011/5/16 Matthias Reischenbacher matthias8...@gmx.at

  Hi Glenn,

 attached you'll find a test case for the three reported problems. I hate to
 ask, but could you please fix issue # 1 (fo:page-number-citation) soon? That
 would be of great help.

 Thanks!
 Matthias


 On 13.05.2011 11:36, Glenn Adams wrote:

 Matthias,

  Thanks. Yes, it would be helpful if you could send me minimal test cases
 for these issues, so I can address them.

  Regards,
 Glenn

  On Fri, May 13, 2011 at 5:58 AM, Matthias Reischenbacher 
 matthias8...@gmx.at wrote:

  Hi Glenn,

 I've tested your git branch and the following additional issues came up:

 1. fo:basic-links with internal destination don't work
 2. fo:page-number references only sometimes work
 3. start-indent on fo:block with a block-container child isn't taken into
 account.

 Please let me know, if you want me to prepare a test case showing all
 three issues.


 Best regards,
 Matthias




Re: Problems with FOP and image

2011-06-07 Thread Rob Sargent
Since you're now into xmlgraphics, I think you're best bet is here 
http://xmlgraphics.apache.org/commons/image-loader.html


On 06/07/2011 10:18 AM, Oscar.Flores wrote:

Hi ok this is for generate images that dont need to be decompress later?? and
the result image i put in my xsl ?? then it should work, aaa i change to fop
1.0 and xml communs 1.4 and its the same jejeje   dont find the image
preload

org.apache.fop.fo.flow.ExternalGraphic bind
SEVERE: Image not available: The file format is not supported. No
ImagePreloader for *.jpg or *.bmp


Rob Sargent-4 wrote:

ImageIO.write(bufferedImage, JPEG, file);

On 06/07/2011 08:21 AM, Oscar.Flores wrote:

Ok i actually register the handler now what i have to do is setup this
handler or not?? and how can i do that, also it seem that the bmp its not
recognice also what can i do?? thanks for the help rob
also i am trying to convert the images to see if it that helps


Rob Sargent-4 wrote:


On 06/06/2011 02:29 PM, Oscar.Flores wrote:

Hi what can be the difference between execute the program in netbeans
(where
it works and print the images and the jar in the console)

Different classes being loaded by Netbeans than the console app.  Get
Netbeans to show you the full classpath it's using in it's %classpath
variable

also i tried the
imageIO.getImageReadersBySuffix but i cant interpretate the data y.y,
its
that or always its true in the boolean variable, and how can i register
the
handler??

Talk to IIORegistry, some thing like

IIORegistry.getDefaultInstance().registerServiceProvider(new
CLibJPEGImageReaderSpi());

IIORegistry.getDefaultInstance().registerServiceProvider(new
CLibJPEGImageWriterSpi());
Note: those are not necessarily the services you have in your setup.

Thanks


Rob Sargent-4 wrote:

See the javadoc on IIORegistry. With ImageIO you may have to register
your handler(s). What does ImageIO.getImageReadersBySuffix() give you.

For certain jpegs we don't use ImageIO, rather the classes in
com.sun.image.codec.jpeg:
try {
FileOutputStream fos = new FileOutputStream(file);
JPEGImageEncoder encoder =
JPEGCodec.createJPEGEncoder(fos);
JPEGEncodeParam param =
encoder.getDefaultJPEGEncodeParam(image.getRaster(),
JPEGDecodeParam.COLOR_ID_CMYK);
param.setQuality(1, false);
encoder.encode(image.getRaster(), param);
fos.close();
} catch (Throwable t) {
logger.debug(t.getMessage());
}
But generally we use ImageIO

On 06/06/2011 08:29 AM, Oscar.Flores wrote:

Yeah i think i need your help again i tried tu run the .jar file in
the
console it work but without images this it what appears

GRAVE: Error while processing image: I:\cfd\rfc.jpg (image/jpeg)
org.apache.xmlgraphics.image.loader.ImageException: Cannot load image
(no
suitable loader/converter combination available) for I:\cfd\rfc.jpg
(image/jpeg)

i tried  download the jai-imagio add to the class path but it dont
work


Rob Sargent-4 wrote:

Very odd.  I'm having no problems getting images into pdfs using
fop-1.0.

On 06/03/2011 11:04 AM, Oscar.Flores wrote:

aaa hey thanks for the help the other day, i resolve the problem
changing
the
version of FOP for the 0.95beta instead of the 1.0, it works now it
prints
the image and its good, thanks and we are in touch if anything else
fails
jejeje

Rob Sargent-4 wrote:

Nothing in the log from the transformer?

On 06/03/2011 09:47 AM, Oscar.Flores wrote:

hi there i have another problem i hope you can help me the pdf
that
i
create
with foe has no image, it dont show any of them, the xsl seems to
be
rigth i
tested with EditX and the pdf show me the image, what can it be,
i
have
xmlgraphics-commons-1.5svn, fop 1.0, fop-pdf-images 2.0.1
Snapshot
for
the
render of the image but it don work please help!!!  :,(

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




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




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




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




:-):confused::confused::confused::confused:=)

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





RE: NoSuchMethodError: org.apache.fop.fonts.FontInfo.setEventListener

2011-06-07 Thread honyk
  java.lang.NoSuchMethodError: 
  org.apache.fop.fonts.FontInfo.setEventListener(...)V

 Since you are using 1.0 you better find a newer take on embedding fonts.

I've made several additional tests. Some observations:
1) I've generated file without any text, but getting the same error.
2) I've tested all the files using stand-alone FOP without any problems.

Actually, my file consist of basic FO skeleton with external SVG file (that
file has no text in nor any font specified in css, but the exception is the
same).

As it is NoSuchMethodError rather than NoClassDefFound, could it be any
obsolete component in my dependencies? Or is it problem in the passed
parameter? (Should be of type org/apache/fop/fonts/FontEventListener)

Jan


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



RE: NoSuchMethodError: org.apache.fop.fonts.FontInfo.setEventListener

2011-06-07 Thread honyk
   java.lang.NoSuchMethodError:
   org.apache.fop.fonts.FontInfo.setEventListener(...)V

Sorry for this noise. I've included all the libraries from FOP distributon
into my project and it works now! I had there just fop + batik before.



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