Thanks a lot. 

 

 

 

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

 

Hi,

 

You need to enable color in fop.xconf

https://xmlgraphics.apache.org/fop/trunk/output.html#afp-image-config

 

<fop version="1.0">

 

<renderers>

 

<renderer mime="application/x-afp">

<images mode="color" />

 

</renderer>

</renderers>

</fop>

 

Thanks

 

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

 

Hi,

 

Thanks for your reply.

 

I am trying now with xsl. 

 

Below code is for include image in AFP file.

 

<fo:block  left="5mm" padding="0mm" margin="0mm">

<fo:external-graphic
src="file:/C:/Users/rajkumar_singh/Desktop/newgen.png"/>

</fo:block>

 

But logo in result AFP file is coming as faded(black and white) rather than
like with original color as attached(Newgen.png)

Can you please help with this.

 

Also I want to add reference of image file instead of embedding it.

Please help.

 

Regards,

Rajkumar Singh

 

 

 

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

 

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:

 

   <fo:block-container absolute-position="absolute" ...>
        <fo:block top="150mm" left="150mm" padding="0mm" margin="0mm">
            <fo:external-graphic src="#"/>
        </fo:block>

?

 

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

Reply via email to