RE: rendering Image file(png/bmp) on AFP file

2016-08-18 Thread Simon Steiner
Hi,

 

See http://xmlgraphics.apache.org/fop/trunk/embedding.html#basics

 

Thanks

 

From: Rajkumar Singh [mailto:rajkumar_si...@newgen.co.in] 
Sent: 17 August 2016 14:46
To: fop-dev@xmlgraphics.apache.org
Subject: RE: rendering Image file(png/bmp) on AFP file

 

Hi ,

Can you provide me a sample for the same.

 

Thanks

 

From: Simon Steiner [mailto:simonsteiner1...@gmail.com] 
Sent: Wednesday, August 17, 2016 5:48 PM
To: fop-dev@xmlgraphics.apache.org  
Subject: RE: rendering Image file(png/bmp) on AFP file

 

Hi,

 

Why are you using such a low level api, try using fo or IF or even calling
AFPPainter.

 

Thanks

 

From: Rajkumar Singh [mailto:rajkumar_si...@newgen.co.in] 
Sent: 17 August 2016 13:11
To: fop-dev@xmlgraphics.apache.org  
Subject: RE: rendering Image file(png/bmp) on AFP file

 

Hi,

Can you help me to provide a sample for adding image in AFP file.

I am trying with IMImageObject

And my sample code is 

 

   

IMImageObject io = new IMImageObject(imagePath);

 ImageOutputControl ioc = new ImageOutputControl(0, 0);

 ImageInputDescriptor iid = new ImageInputDescriptor();

 ImageCellPosition icp = new ImageCellPosition(5, 5);

 icp.setXFillSize(20);

 icp.setYFillSize(20);

 icp.setXSize(64);

 icp.setYSize(8);

 float shade = (float) ((5 * 0.3) + (5 * 0.59) + (5 *
0.11));

 

 int greyscale = Math.round((shade / 255) * 16);

 

   

 ImageRasterData ird = new
ImageRasterData(ImageRasterPattern

.getRasterData(greyscale));

 

 io.setImageOutputControl(ioc);

 io.setImageInputDescriptor(iid);

 io.setImageCellPosition(icp);

io.setImageRasterData(ird);

page.addObject(io);

but still not able to add image.

Please provide me sample for the same.

 

From: Robert Meyer [mailto:rme...@hotmail.co.uk] 
Sent: Tuesday, August 16, 2016 9:07 PM
To: fop-dev@xmlgraphics.apache.org  
Subject: RE: rendering Image file(png/bmp) on AFP file

 

Do you mean something like the following:

 

   




?

 

Best regards,

 

Robert

 

  _  

From: rajkumar_si...@newgen.co.in  
To: fop-dev@xmlgraphics.apache.org  
Subject: rendering Image file(png/bmp) on AFP file
Date: Tue, 16 Aug 2016 20:15:25 +0530

Dear Sir,

 

I am developing an application using fop2.1 that create an AFP file and
write text and image at specified position in that file.

I am able to write text at specified position. But I am not getting any clue
how to do it with an image. Can you please guide for this. Thanks in
advance!

 

Regards

Rajkumar Singh

 

 


Disclaimer :- This e-mail and any attachment may contain confidential,
proprietary or legally privileged information. If you are not the original
intended recipient and have erroneously received this message, you are
prohibited from using, copying, altering or disclosing the content of this
message. Please delete it immediately and notify the sender. Newgen Software
Technologies Ltd (NSTL) accepts no responsibilities for loss or damage
arising from the use of the information transmitted by this email including
damages from virus and further acknowledges that no binding nature of the
message shall be implied or assumed unless the sender does so expressly with
due authority of NSTL. 


 

 


Disclaimer :- This e-mail and any attachment may contain confidential,
proprietary or legally privileged information. If you are not the original
intended recipient and have erroneously received this message, you are
prohibited from using, copying, altering or disclosing the content of this
message. Please delete it immediately and notify the sender. Newgen Software
Technologies Ltd (NSTL) accepts no responsibilities for loss or damage
arising from the use of the information transmitted by this email including
damages from virus and further acknowledges that no binding nature of the
message shall be implied or assumed unless the sender does so expressly with
due authority of NSTL. 


 

 


Disclaimer :- This e-mail and any attachment may contain confidential,
proprietary or legally privileged information. If you are not the original
intended recipient and have erroneously received this message, you are
prohibited from using, copying, altering or disclosing the content of this
message. Please delete it immediately and notify the sender. Newgen Software
Technologies Ltd (NSTL) accepts no responsibilities for loss or damage
arising from the use of the information transmitted by this email including
damages 

Re: Building from current TRUNK fails

2016-08-18 Thread Jacopo Cappellato
On Tue, Jul 26, 2016 at 10:35 PM, Andreas Delmelle <
andreas.delme...@telenet.be> wrote:

> Hi Jan
>
> > On 26 Jul 2016, at 22:15, Jan Tosovsky  wrote:
> >
> > Dear All,
> >
> > I've updated local copy to the current (mavenized) version and I am
> unable
> > build (Oracle JDK 1.8) the FOP Core project:
> > (1) testAES256() fails with
> > java.lang.IllegalStateException: java.security.InvalidKeyException:
> Illegal
> > key size
> >   at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1034)
> >  ...
> >   at
> > o.a.f.pdf.PDFEncryptionJCETestCase.testAES256(
> PDFEncryptionJCETestCase.java:
> > 468)
>
> Are you on OS X/macOS?
> I am not entirely sure, but I seem to recall running into that as well. It
> just means you need to download the "unlimited strength" encryption policy
> files from Oracle. They made that a separate download, just like in the
> good old Sun days. On OS X, when Apple maintained their own JDK, it was
> always included. I only ran into that after Apple abandoned maintenance of
> the JDK for OS X...
>
> see - http://www.oracle.com/technetwork/java/javase/
> downloads/jce8-download-2133166.html


I am on OS X and I can confirm I had the same issue and the solution
proposed by Adreas did the trick, thank you!

Jacopo