You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Musale, Meenakshi - GEXPRO" <Me...@gexpro.com> on 2012/06/26 14:15:12 UTC
Help needed on Image rendering
Hi,
I am facing random issues with image rendering while PDF generation with FOP 1.0 version.
Some images are coming properly but some of them are not. Images are present in location but still it gives exception :"Image not found"
Please let me know where I can subscribe to solve my issue. Any help will be appreciated.
Regards,
Meenakshi Musale
Web Operations
IGate Americas Inc
Gexpro, 1000 Bridgeport Avenue.
Shelton, CT 06484, USA.
Tel: (203) 925 - 2480
Email: meenakshi.musale@gexpro.com<bl...@gexpro.com>
Re: Help needed on Image rendering
Posted by Karsten Breit <ka...@spreadshirt.net>.
In our organisation we've been having issues rendering images with FOP 1.0 as well. We use to load images via http and it turned out that the preloader that detects the image type fails with redirects. So if you load images via http you might try to check the response headers for redirects.
Am 26.06.2012 um 14:15 schrieb Musale, Meenakshi - GEXPRO:
> Hi,
>
> I am facing random issues with image rendering while PDF generation with FOP 1.0 version.
>
> Some images are coming properly but some of them are not. Images are present in location but still it gives exception :"Image not found"
>
> Please let me know where I can subscribe to solve my issue. Any help will be appreciated.
>
>
> Regards,
> Meenakshi Musale
> Web Operations
> IGate Americas Inc
> Gexpro, 1000 Bridgeport Avenue.
> Shelton, CT 06484, USA.
> Tel: (203) 925 - 2480
> Email: meenakshi.musale@gexpro.com
>
sprd.net AG
Gießerstraße 27
04229 Leipzig
Germany
Vorstand/Executive Board: Philip Rooke (Vorsitzender/CEO), Matthias Spieß, Tobias Schaugg
Aufsichtsratsvorsitzender/Chairman of the Supervisory Board: Lukasz Gadowski
Handelsregister/Trade Register: Amtsgericht Leipzig, HRB 22478
Umsatzsteuer-IdentNummer/VAT-ID: DE 8138 7149 4
RE: Help needed on Image rendering
Posted by Robert Meyer <rm...@hotmail.co.uk>.
Hi Meenakshi,
Ok, just as a final confirmation, when you type in java -version you should be getting:
java version "1.6.0.0_xx"
Java(TM) SE Runtime Environment (build 1.6.0_xx)
Java HotSpot(TM) 64-Bit Server VM (build xxxxx, mixed mode)
not...
java version "1.6.0.0_xx"
OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu3)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
If everything is looking fine in that regard, then going back to the original issue I found this post:
http://www.java.net/node/658627
I would run a "locate GRAY.pf" and ensure that the file is located in the jre you are running. Which in your case should be:
/opt/apps/ecatalog/jdk1.6.0_18/jre/lib/cmm/GRAY.pf
If not, find it from another location on your disk (or download it if necessary) and copy it into that location.
Try running it again and see what you get.
If the file is in place and you are confirmed to be running the correct version of the JRE and are still getting the issue, I am afraid I cannot think why that might be happening. As a final suggestion I would try downloading a different version (aside from 16.0.0.18) and running it with that to see if it resolves the issue.
Regards,
Robert Meyer
From: Meenakshi.Musale@gexpro.com
To: rmeyer@hotmail.co.uk
Date: Tue, 10 Jul 2012 12:29:16 -0700
Subject: RE: Help needed on Image rendering
Hi Rob,
I have explicitly defined JAVA location for my
program.
I have installed JAVA at location
"/opt/apps/ecatalog/jdk1.6.0_18"
Snippet of JAVA configuration::
/* snip */
and used this
classpath during Java file invoke.
Please let me
know If I am trying something wrong.
Regards,
Meenakshi Musale
From: Robert Meyer [mailto:rmeyer@hotmail.co.uk]
Sent: Tuesday, July 10, 2012 10:43 AM
To:
fop-users@xmlgraphics.apache.org
Subject: RE: Help needed on Image
rendering
Hi Meenakshi,
I think Rob is correct in that FOP is using
openjdk which comes pre-installed on Linux. That message when entered into a
search engine refers many times to openjdk6. I would presume it is defaulting to
that even though you may have a separate jdk installation elsewhere on your
machine. FOP uses the $JAVA_HOME environment variable, so what you should be
able to do is specify the jdk location directly on the command line
e.g.
JAVA_HOME=/home/robert/jdk1.6.0_18/ ~/fop-1.0/fop -fo myFile.fo -c
fop.xconf -pdf catalog.pdf
This should force it to use it from the
correct location.
Regards,
Robert Meyer
> From:
Meenakshi.Musale@gexpro.com
> To: fop-users@xmlgraphics.apache.org
>
CC: rsargent@xmission.com
> Date: Mon, 9 Jul 2012 08:42:45 -0700
>
Subject: RE: Help needed on Image rendering
>
> Rob,
>
> We have installed on server(Linux) this version.
"jdk-6u18-linux-i586.bin" (its not working).
>
> and on my local
machine (windows) have installed "jdk-6u18-windows-i586.exe" (Its
working).
>
> Regards,
> Meenakshi Musale
>
>
-----Original Message-----
> From: Rob Sargent
[mailto:rsargent@xmission.com]
> Sent: Monday, July 09, 2012 11:35
AM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: Help needed
on Image rendering
>
> What does java -version give you. Ubuntu may
have installed openjdk
>
> On 07/09/2012 09:27 AM, Musale,
Meenakshi - Rexel Holdings USA wrote:
> > Hi Rob,
> >
>
> I was facing image rendering issue with Java 1.5. then I Installed
jdk1.6.0_18 on my local machine, After that PDF catalog generated
successfully.
> >
> > But when I run same catalog on Unix
server(Linux) where we have
> > installed jdk1.6.0_18, but it gives
exception as
> >
> > "java.lang.IllegalArgumentException:
Can't load standard profile: GRAY.pf".and not generating PDF.
>
>
> > I tried to search on java forums for this error message. The
possible
> > reason can be
> >
> > 1. Incomplete
installation of Java. But I tried 2,3 times fresh installation on server but
still gives same error.
> > 2. Missing GRAY.pf in JRE lib folder, but
this profile file is present in jre lib/cmm directory.
> >
> >
Can you please help to identify the root cause.
> >
> >
Regards,
> > Meenakshi
> >
----------------------------------------------------------------------
>
> --------------------------------------------------------------
>
>
> > -----Original Message-----
> > From: Robert Meyer
[mailto:rmeyer@hotmail.co.uk]
> > Sent: Thursday, June 28, 2012 4:33
AM
> > To: fop-users@xmlgraphics.apache.org
> > Subject: RE:
Help needed on Image rendering
> >
> >
> >
Hello,
> >
> > I took a slightly different approach to Luis
and created an Eclipse project and ran your code from there. I can confirm
Luis's findings and got similar output messages on my console.
>
>
> > I did not make any changes to either the code, XML or XSL
apart from changing the image directory location. The only errors I were
regarding missing images that were not present in the images directory.
>
>
> > I have attached the generated PDF to this e-mail.
>
>
> > Regards,
> >
> > Robert Meyer
> >
________________________________
> >> From:
Meenakshi.Musale@gexpro.com
> >> To:
fop-users@xmlgraphics.apache.org
> >> CC:
lmpmbernardo@gmail.com
> >> Date: Wed, 27 Jun 2012 18:53:18
-0700
> >> Subject: RE: Help needed on Image rendering
>
>>
> >>
> >> Hi,
> >>
>
>> How did you fix the issue?. can you please elaborate and if possible
> >> can you send me generated catalog?
> >>
>
>>
> >> ________________________________
> >>
From: Luis Bernardo [mailto:lmpmbernardo@gmail.com]
> >> Sent:
Wednesday, June 27, 2012 7:38 PM
> >> To:
fop-users@xmlgraphics.apache.org
> >> Subject: Re: Help needed on
Image rendering
> >>
> >>
> >> I used your
*.xml and *.xsl files, fixed the image paths, and ran
> >> from the
command line:
> >>
> >> macmaxi:code lbernardo$
../../Documents/fop-1.0/fop -xml test.xml
> >> -xsl test.xsl -pdf
test.pdf 2>&1 | grep SEVERE | sort -u
> >> SEVERE: Couldn't
find hyphenation pattern en
> >> SEVERE: Image not found. URI:
images/GES316847483.jpg. (No context
> >> info
> >>
available)
> >> SEVERE: Image not found. URI: images/Gexpro.jpg. (No
context info
> >> available) macmaxi:code lbernardo$ ls -l
images/GES316847483.jpg
> >> ls: images/GES316847483.jpg: No such
file or directory macmaxi:code
> >> lbernardo$ ls -l
images/GES316847483.jpg
> >> ls: images/GES316847483.jpg: No such
file or directory
> >>
> >> So, only two images could
not be found and they are not in the zip
> >> you sent. The
resulting PDF is a catalog of 679 pages.
> >>
> >> On
6/27/12 8:51 PM, Musale, Meenakshi - GEXPRO wrote:
> >> As an
FYI..
> >> I am using below jars.
> >>
> >>
1. avalon-framework-4.2.0.jar
> >> 2. barcode4j.jar
> >>
3. barcode4j-fop-ext.jar
> >> 4.
barcode4j-fop-ext-complete.jar
> >> 5. batik-all-1.7.jar
>
>> 6. classes12.jar
> >> 7. commons-io-1.3.1.jar
>
>> 8.commons-logging-1.0.4.jar
> >> 9.fop.jar
> >>
10. fop-hyph.jar
> >> 11. serializer-2.7.0.jar
> >> 12.
xalan-2.7.0.jar
> >> 13. xercesImpl-2.7.1.jar
> >> 14.
xml-apis-1.3.04.jar
> >> 15. xml-apis-ext-1.3.04.jar
>
>> 16. xmlgraphics-commons-1.4.jar
> >>
> >>
> >> Regards,
> >> Meenakshi Musale
> >>
> >>
> >>
> >>
________________________________
> >> From: Musale, Meenakshi -
GEXPRO
> >> Sent: Wednesday, June 27, 2012 3:04 PM
> >>
To: 'Rob Sargent'
> >> Cc:
> >>
fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.
>
>> o
> >> rg>
> >> Subject: RE: Help needed on
Image rendering
> >>
> >> Hi Rob,
> >>
> >> I am sorry which files are you asking, image file or any other
file?
> >>
> >> If you are asking about image file
then, yes these files exist and no
> >> zero length files. I had
attached image zip in my previous email
> >> which are being used
in xml file.
> >>
> >> Regards,
> >>
Meenakshi Musale
> >>> >>
> >>
>
>> ________________________________
> >> From: Rob Sargent
[mailto:rsargent@xmission.com]
> >> Sent: Wednesday, June 27, 2012
2:56 PM
> >> To: Musale, Meenakshi - GEXPRO
> >>
Cc:
> >>
fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.
>
>> o
> >> rg>
> >> Subject: Re: Help needed on
Image rendering
> >>
> >> Can you show that the file(s)
do(es) in fact exist? And that they are
> >> no zero-length
files?
> >>
> >> On 06/27/2012 12:34 PM, Musale,
Meenakshi - GEXPRO wrote:
> >> Hi Rob,
> >>
>
>> Attached "code.zip" contains
> >> 1. xml file which is
having data used for PDF generation.
> >> 2. xsl file which has FOP
tags for generating PDF.
> >> 3. Java code which in which xml, xsl
is used to generate PDF.
> >>
> >> I am using FOP1.0
version and the type of image is jpg.
> >>
> >> Actual
error message in log like
> >>
> >>
"org.apache.fop.fo.flow.ExternalGraphic bind
> >> SEVERE: Image not
found: /opt/apps/ecatalog/scripts/img/GES002746.jpg"
> >>
>
>> Jun 27, 2012 12:20:23 PM org.apache.fop.render.pdf.PDFRenderer
>
>> putImage
> >> SEVERE: Image not found:
/opt/apps/ecatalog/scripts/img/GES002746.jpg
> >>
> >>
I have done testing with various scenarios and did compressed images
>
>> but still some of the images not coming up properly.
> >>
In the attached XML file almost 1570 number of images being used
>
>> among that 50 + images blanks out.
> >>
> >>
Please let me know if need any help.
> >>
> >>
>
>> Regards,
> >> Meenakshi Musale
>
> >>
> >>
> >> ________________________________
>
>> From: Rob Sargent [mailto:rsargent@xmission.com]
> >> Sent:
Tuesday, June 26, 2012 8:22 AM
> >> To:
> >>
fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.
>
>> o
> >> rg>
> >> Subject: Re: Help needed on
Image rendering
> >>
> >> Show the fo (xml) you are
feeding to fop.
> >> Show the actual error message.
> >>
Show your configuration.
> >> Show which type of images work, which
don't.
> >>
> >> On 06/26/2012 06:15 AM, Musale,
Meenakshi - GEXPRO wrote:
> >> Hi,
> >>
>
>> I am facing random issues with image rendering while PDF generation
> >> with FOP 1.0 version.
> >>
> >> Some
images are coming properly but some of them are not. Images are
>
>> present in location but still it gives exception :"Image not
found"
> >>
> >> Please let me know where I can
subscribe to solve my issue. Any help
> >> will be
appreciated.
> >>
> >>
> >>
Regards,
> >> Meenakshi Musale
> >>> >>
> >>
> >>
> >>
> >>
>
>>
> >>
> >
> >
---------------------------------------------------------------------
>
> To unsubscribe, e-mail:
fop-users-unsubscribe@xmlgraphics.apache.org
> > For additional
commands, e-mail: fop-users-help@xmlgraphics.apache.org
> >
>
>
>
>
---------------------------------------------------------------------
> To
unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For
additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>
>
---------------------------------------------------------------------
> To
unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For
additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
RE: Help needed on Image rendering
Posted by Robert Meyer <rm...@hotmail.co.uk>.
Hi Meenakshi,
I think Rob is correct in that FOP is using openjdk which comes pre-installed on Linux. That message when entered into a search engine refers many times to openjdk6. I would presume it is defaulting to that even though you may have a separate jdk installation elsewhere on your machine. FOP uses the $JAVA_HOME environment variable, so what you should be able to do is specify the jdk location directly on the command line e.g.
JAVA_HOME=/home/robert/jdk1.6.0_18/ ~/fop-1.0/fop -fo myFile.fo -c fop.xconf -pdf catalog.pdf
This should force it to use it from the correct location.
Regards,
Robert Meyer
> From: Meenakshi.Musale@gexpro.com
> To: fop-users@xmlgraphics.apache.org
> CC: rsargent@xmission.com
> Date: Mon, 9 Jul 2012 08:42:45 -0700
> Subject: RE: Help needed on Image rendering
>
> Rob,
>
> We have installed on server(Linux) this version. "jdk-6u18-linux-i586.bin" (its not working).
>
> and on my local machine (windows) have installed "jdk-6u18-windows-i586.exe" (Its working).
>
> Regards,
> Meenakshi Musale
>
> -----Original Message-----
> From: Rob Sargent [mailto:rsargent@xmission.com]
> Sent: Monday, July 09, 2012 11:35 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: Help needed on Image rendering
>
> What does java -version give you. Ubuntu may have installed openjdk
>
> On 07/09/2012 09:27 AM, Musale, Meenakshi - Rexel Holdings USA wrote:
> > Hi Rob,
> >
> > I was facing image rendering issue with Java 1.5. then I Installed jdk1.6.0_18 on my local machine, After that PDF catalog generated successfully.
> >
> > But when I run same catalog on Unix server(Linux) where we have
> > installed jdk1.6.0_18, but it gives exception as
> >
> > "java.lang.IllegalArgumentException: Can't load standard profile: GRAY.pf".and not generating PDF.
> >
> > I tried to search on java forums for this error message. The possible
> > reason can be
> >
> > 1. Incomplete installation of Java. But I tried 2,3 times fresh installation on server but still gives same error.
> > 2. Missing GRAY.pf in JRE lib folder, but this profile file is present in jre lib/cmm directory.
> >
> > Can you please help to identify the root cause.
> >
> > Regards,
> > Meenakshi
> > ----------------------------------------------------------------------
> > --------------------------------------------------------------
> >
> > -----Original Message-----
> > From: Robert Meyer [mailto:rmeyer@hotmail.co.uk]
> > Sent: Thursday, June 28, 2012 4:33 AM
> > To: fop-users@xmlgraphics.apache.org
> > Subject: RE: Help needed on Image rendering
> >
> >
> > Hello,
> >
> > I took a slightly different approach to Luis and created an Eclipse project and ran your code from there. I can confirm Luis's findings and got similar output messages on my console.
> >
> > I did not make any changes to either the code, XML or XSL apart from changing the image directory location. The only errors I were regarding missing images that were not present in the images directory.
> >
> > I have attached the generated PDF to this e-mail.
> >
> > Regards,
> >
> > Robert Meyer
> > ________________________________
> >> From: Meenakshi.Musale@gexpro.com
> >> To: fop-users@xmlgraphics.apache.org
> >> CC: lmpmbernardo@gmail.com
> >> Date: Wed, 27 Jun 2012 18:53:18 -0700
> >> Subject: RE: Help needed on Image rendering
> >>
> >>
> >> Hi,
> >>
> >> How did you fix the issue?. can you please elaborate and if possible
> >> can you send me generated catalog?
> >>
> >>
> >> ________________________________
> >> From: Luis Bernardo [mailto:lmpmbernardo@gmail.com]
> >> Sent: Wednesday, June 27, 2012 7:38 PM
> >> To: fop-users@xmlgraphics.apache.org
> >> Subject: Re: Help needed on Image rendering
> >>
> >>
> >> I used your *.xml and *.xsl files, fixed the image paths, and ran
> >> from the command line:
> >>
> >> macmaxi:code lbernardo$ ../../Documents/fop-1.0/fop -xml test.xml
> >> -xsl test.xsl -pdf test.pdf 2>&1 | grep SEVERE | sort -u
> >> SEVERE: Couldn't find hyphenation pattern en
> >> SEVERE: Image not found. URI: images/GES316847483.jpg. (No context
> >> info
> >> available)
> >> SEVERE: Image not found. URI: images/Gexpro.jpg. (No context info
> >> available) macmaxi:code lbernardo$ ls -l images/GES316847483.jpg
> >> ls: images/GES316847483.jpg: No such file or directory macmaxi:code
> >> lbernardo$ ls -l images/GES316847483.jpg
> >> ls: images/GES316847483.jpg: No such file or directory
> >>
> >> So, only two images could not be found and they are not in the zip
> >> you sent. The resulting PDF is a catalog of 679 pages.
> >>
> >> On 6/27/12 8:51 PM, Musale, Meenakshi - GEXPRO wrote:
> >> As an FYI..
> >> I am using below jars.
> >>
> >> 1. avalon-framework-4.2.0.jar
> >> 2. barcode4j.jar
> >> 3. barcode4j-fop-ext.jar
> >> 4. barcode4j-fop-ext-complete.jar
> >> 5. batik-all-1.7.jar
> >> 6. classes12.jar
> >> 7. commons-io-1.3.1.jar
> >> 8.commons-logging-1.0.4.jar
> >> 9.fop.jar
> >> 10. fop-hyph.jar
> >> 11. serializer-2.7.0.jar
> >> 12. xalan-2.7.0.jar
> >> 13. xercesImpl-2.7.1.jar
> >> 14. xml-apis-1.3.04.jar
> >> 15. xml-apis-ext-1.3.04.jar
> >> 16. xmlgraphics-commons-1.4.jar
> >>
> >>
> >> Regards,
> >> Meenakshi Musale
> >> Web Operations
> >> IGate Americas Inc
> >> Gexpro, 1000 Bridgeport Avenue.
> >> Shelton, CT 06484, USA.
> >> Tel: (203) 925 - 2480
> >> Email: meenakshi.musale@gexpro.com
> >>
> >>
> >> ________________________________
> >> From: Musale, Meenakshi - GEXPRO
> >> Sent: Wednesday, June 27, 2012 3:04 PM
> >> To: 'Rob Sargent'
> >> Cc:
> >> fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.
> >> o
> >> rg>
> >> Subject: RE: Help needed on Image rendering
> >>
> >> Hi Rob,
> >>
> >> I am sorry which files are you asking, image file or any other file?
> >>
> >> If you are asking about image file then, yes these files exist and no
> >> zero length files. I had attached image zip in my previous email
> >> which are being used in xml file.
> >>
> >> Regards,
> >> Meenakshi Musale
> >> Web Operations
> >> IGate Americas Inc
> >> Gexpro, 1000 Bridgeport Avenue.
> >> Shelton, CT 06484, USA.
> >> Tel: (203) 925 - 2480
> >> Email: meenakshi.musale@gexpro.com
> >>
> >>
> >> ________________________________
> >> From: Rob Sargent [mailto:rsargent@xmission.com]
> >> Sent: Wednesday, June 27, 2012 2:56 PM
> >> To: Musale, Meenakshi - GEXPRO
> >> Cc:
> >> fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.
> >> o
> >> rg>
> >> Subject: Re: Help needed on Image rendering
> >>
> >> Can you show that the file(s) do(es) in fact exist? And that they are
> >> no zero-length files?
> >>
> >> On 06/27/2012 12:34 PM, Musale, Meenakshi - GEXPRO wrote:
> >> Hi Rob,
> >>
> >> Attached "code.zip" contains
> >> 1. xml file which is having data used for PDF generation.
> >> 2. xsl file which has FOP tags for generating PDF.
> >> 3. Java code which in which xml, xsl is used to generate PDF.
> >>
> >> I am using FOP1.0 version and the type of image is jpg.
> >>
> >> Actual error message in log like
> >>
> >> "org.apache.fop.fo.flow.ExternalGraphic bind
> >> SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg"
> >>
> >> Jun 27, 2012 12:20:23 PM org.apache.fop.render.pdf.PDFRenderer
> >> putImage
> >> SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg
> >>
> >> I have done testing with various scenarios and did compressed images
> >> but still some of the images not coming up properly.
> >> In the attached XML file almost 1570 number of images being used
> >> among that 50 + images blanks out.
> >>
> >> Please let me know if need any help.
> >>
> >>
> >> Regards,
> >> Meenakshi Musale
> >> Web Operations
> >> IGate Americas Inc
> >> Gexpro, 1000 Bridgeport Avenue.
> >> Shelton, CT 06484, USA.
> >> Tel: (203) 925 - 2480
> >> Email: meenakshi.musale@gexpro.com
> >>
> >>
> >> ________________________________
> >> From: Rob Sargent [mailto:rsargent@xmission.com]
> >> Sent: Tuesday, June 26, 2012 8:22 AM
> >> To:
> >> fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.
> >> o
> >> rg>
> >> Subject: Re: Help needed on Image rendering
> >>
> >> Show the fo (xml) you are feeding to fop.
> >> Show the actual error message.
> >> Show your configuration.
> >> Show which type of images work, which don't.
> >>
> >> On 06/26/2012 06:15 AM, Musale, Meenakshi - GEXPRO wrote:
> >> Hi,
> >>
> >> I am facing random issues with image rendering while PDF generation
> >> with FOP 1.0 version.
> >>
> >> Some images are coming properly but some of them are not. Images are
> >> present in location but still it gives exception :"Image not found"
> >>
> >> Please let me know where I can subscribe to solve my issue. Any help
> >> will be appreciated.
> >>
> >>
> >> Regards,
> >> Meenakshi Musale
> >> Web Operations
> >> IGate Americas Inc
> >> Gexpro, 1000 Bridgeport Avenue.
> >> Shelton, CT 06484, USA.
> >> Tel: (203) 925 - 2480
> >> Email: meenakshi.musale@gexpro.com
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> > For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
RE: Help needed on Image rendering
Posted by "Musale, Meenakshi - Rexel Holdings USA" <Me...@gexpro.com>.
Rob,
We have installed on server(Linux) this version. "jdk-6u18-linux-i586.bin" (its not working).
and on my local machine (windows) have installed "jdk-6u18-windows-i586.exe" (Its working).
Regards,
Meenakshi Musale
-----Original Message-----
From: Rob Sargent [mailto:rsargent@xmission.com]
Sent: Monday, July 09, 2012 11:35 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Help needed on Image rendering
What does java -version give you. Ubuntu may have installed openjdk
On 07/09/2012 09:27 AM, Musale, Meenakshi - Rexel Holdings USA wrote:
> Hi Rob,
>
> I was facing image rendering issue with Java 1.5. then I Installed jdk1.6.0_18 on my local machine, After that PDF catalog generated successfully.
>
> But when I run same catalog on Unix server(Linux) where we have
> installed jdk1.6.0_18, but it gives exception as
>
> "java.lang.IllegalArgumentException: Can't load standard profile: GRAY.pf".and not generating PDF.
>
> I tried to search on java forums for this error message. The possible
> reason can be
>
> 1. Incomplete installation of Java. But I tried 2,3 times fresh installation on server but still gives same error.
> 2. Missing GRAY.pf in JRE lib folder, but this profile file is present in jre lib/cmm directory.
>
> Can you please help to identify the root cause.
>
> Regards,
> Meenakshi
> ----------------------------------------------------------------------
> --------------------------------------------------------------
>
> -----Original Message-----
> From: Robert Meyer [mailto:rmeyer@hotmail.co.uk]
> Sent: Thursday, June 28, 2012 4:33 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: RE: Help needed on Image rendering
>
>
> Hello,
>
> I took a slightly different approach to Luis and created an Eclipse project and ran your code from there. I can confirm Luis's findings and got similar output messages on my console.
>
> I did not make any changes to either the code, XML or XSL apart from changing the image directory location. The only errors I were regarding missing images that were not present in the images directory.
>
> I have attached the generated PDF to this e-mail.
>
> Regards,
>
> Robert Meyer
> ________________________________
>> From: Meenakshi.Musale@gexpro.com
>> To: fop-users@xmlgraphics.apache.org
>> CC: lmpmbernardo@gmail.com
>> Date: Wed, 27 Jun 2012 18:53:18 -0700
>> Subject: RE: Help needed on Image rendering
>>
>>
>> Hi,
>>
>> How did you fix the issue?. can you please elaborate and if possible
>> can you send me generated catalog?
>>
>>
>> ________________________________
>> From: Luis Bernardo [mailto:lmpmbernardo@gmail.com]
>> Sent: Wednesday, June 27, 2012 7:38 PM
>> To: fop-users@xmlgraphics.apache.org
>> Subject: Re: Help needed on Image rendering
>>
>>
>> I used your *.xml and *.xsl files, fixed the image paths, and ran
>> from the command line:
>>
>> macmaxi:code lbernardo$ ../../Documents/fop-1.0/fop -xml test.xml
>> -xsl test.xsl -pdf test.pdf 2>&1 | grep SEVERE | sort -u
>> SEVERE: Couldn't find hyphenation pattern en
>> SEVERE: Image not found. URI: images/GES316847483.jpg. (No context
>> info
>> available)
>> SEVERE: Image not found. URI: images/Gexpro.jpg. (No context info
>> available) macmaxi:code lbernardo$ ls -l images/GES316847483.jpg
>> ls: images/GES316847483.jpg: No such file or directory macmaxi:code
>> lbernardo$ ls -l images/GES316847483.jpg
>> ls: images/GES316847483.jpg: No such file or directory
>>
>> So, only two images could not be found and they are not in the zip
>> you sent. The resulting PDF is a catalog of 679 pages.
>>
>> On 6/27/12 8:51 PM, Musale, Meenakshi - GEXPRO wrote:
>> As an FYI..
>> I am using below jars.
>>
>> 1. avalon-framework-4.2.0.jar
>> 2. barcode4j.jar
>> 3. barcode4j-fop-ext.jar
>> 4. barcode4j-fop-ext-complete.jar
>> 5. batik-all-1.7.jar
>> 6. classes12.jar
>> 7. commons-io-1.3.1.jar
>> 8.commons-logging-1.0.4.jar
>> 9.fop.jar
>> 10. fop-hyph.jar
>> 11. serializer-2.7.0.jar
>> 12. xalan-2.7.0.jar
>> 13. xercesImpl-2.7.1.jar
>> 14. xml-apis-1.3.04.jar
>> 15. xml-apis-ext-1.3.04.jar
>> 16. xmlgraphics-commons-1.4.jar
>>
>>
>> Regards,
>> Meenakshi Musale
>> Web Operations
>> IGate Americas Inc
>> Gexpro, 1000 Bridgeport Avenue.
>> Shelton, CT 06484, USA.
>> Tel: (203) 925 - 2480
>> Email: meenakshi.musale@gexpro.com
>>
>>
>> ________________________________
>> From: Musale, Meenakshi - GEXPRO
>> Sent: Wednesday, June 27, 2012 3:04 PM
>> To: 'Rob Sargent'
>> Cc:
>> fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.
>> o
>> rg>
>> Subject: RE: Help needed on Image rendering
>>
>> Hi Rob,
>>
>> I am sorry which files are you asking, image file or any other file?
>>
>> If you are asking about image file then, yes these files exist and no
>> zero length files. I had attached image zip in my previous email
>> which are being used in xml file.
>>
>> Regards,
>> Meenakshi Musale
>> Web Operations
>> IGate Americas Inc
>> Gexpro, 1000 Bridgeport Avenue.
>> Shelton, CT 06484, USA.
>> Tel: (203) 925 - 2480
>> Email: meenakshi.musale@gexpro.com
>>
>>
>> ________________________________
>> From: Rob Sargent [mailto:rsargent@xmission.com]
>> Sent: Wednesday, June 27, 2012 2:56 PM
>> To: Musale, Meenakshi - GEXPRO
>> Cc:
>> fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.
>> o
>> rg>
>> Subject: Re: Help needed on Image rendering
>>
>> Can you show that the file(s) do(es) in fact exist? And that they are
>> no zero-length files?
>>
>> On 06/27/2012 12:34 PM, Musale, Meenakshi - GEXPRO wrote:
>> Hi Rob,
>>
>> Attached "code.zip" contains
>> 1. xml file which is having data used for PDF generation.
>> 2. xsl file which has FOP tags for generating PDF.
>> 3. Java code which in which xml, xsl is used to generate PDF.
>>
>> I am using FOP1.0 version and the type of image is jpg.
>>
>> Actual error message in log like
>>
>> "org.apache.fop.fo.flow.ExternalGraphic bind
>> SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg"
>>
>> Jun 27, 2012 12:20:23 PM org.apache.fop.render.pdf.PDFRenderer
>> putImage
>> SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg
>>
>> I have done testing with various scenarios and did compressed images
>> but still some of the images not coming up properly.
>> In the attached XML file almost 1570 number of images being used
>> among that 50 + images blanks out.
>>
>> Please let me know if need any help.
>>
>>
>> Regards,
>> Meenakshi Musale
>> Web Operations
>> IGate Americas Inc
>> Gexpro, 1000 Bridgeport Avenue.
>> Shelton, CT 06484, USA.
>> Tel: (203) 925 - 2480
>> Email: meenakshi.musale@gexpro.com
>>
>>
>> ________________________________
>> From: Rob Sargent [mailto:rsargent@xmission.com]
>> Sent: Tuesday, June 26, 2012 8:22 AM
>> To:
>> fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.
>> o
>> rg>
>> Subject: Re: Help needed on Image rendering
>>
>> Show the fo (xml) you are feeding to fop.
>> Show the actual error message.
>> Show your configuration.
>> Show which type of images work, which don't.
>>
>> On 06/26/2012 06:15 AM, Musale, Meenakshi - GEXPRO wrote:
>> Hi,
>>
>> I am facing random issues with image rendering while PDF generation
>> with FOP 1.0 version.
>>
>> Some images are coming properly but some of them are not. Images are
>> present in location but still it gives exception :"Image not found"
>>
>> Please let me know where I can subscribe to solve my issue. Any help
>> will be appreciated.
>>
>>
>> Regards,
>> Meenakshi Musale
>> Web Operations
>> IGate Americas Inc
>> Gexpro, 1000 Bridgeport Avenue.
>> Shelton, CT 06484, USA.
>> Tel: (203) 925 - 2480
>> Email: meenakshi.musale@gexpro.com
>>
>>
>>
>>
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Help needed on Image rendering
Posted by Rob Sargent <rs...@xmission.com>.
What does java -version give you. Ubuntu may have installed openjdk
On 07/09/2012 09:27 AM, Musale, Meenakshi - Rexel Holdings USA wrote:
> Hi Rob,
>
> I was facing image rendering issue with Java 1.5. then I Installed jdk1.6.0_18 on my local machine, After that PDF catalog generated successfully.
>
> But when I run same catalog on Unix server(Linux) where we have installed jdk1.6.0_18, but it gives exception as
>
> "java.lang.IllegalArgumentException: Can't load standard profile: GRAY.pf".and not generating PDF.
>
> I tried to search on java forums for this error message. The possible reason can be
>
> 1. Incomplete installation of Java. But I tried 2,3 times fresh installation on server but still gives same error.
> 2. Missing GRAY.pf in JRE lib folder, but this profile file is present in jre lib/cmm directory.
>
> Can you please help to identify the root cause.
>
> Regards,
> Meenakshi
> ------------------------------------------------------------------------------------------------------------------------------------
>
> -----Original Message-----
> From: Robert Meyer [mailto:rmeyer@hotmail.co.uk]
> Sent: Thursday, June 28, 2012 4:33 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: RE: Help needed on Image rendering
>
>
> Hello,
>
> I took a slightly different approach to Luis and created an Eclipse project and ran your code from there. I can confirm Luis's findings and got similar output messages on my console.
>
> I did not make any changes to either the code, XML or XSL apart from changing the image directory location. The only errors I were regarding missing images that were not present in the images directory.
>
> I have attached the generated PDF to this e-mail.
>
> Regards,
>
> Robert Meyer
> ________________________________
>> From: Meenakshi.Musale@gexpro.com
>> To: fop-users@xmlgraphics.apache.org
>> CC: lmpmbernardo@gmail.com
>> Date: Wed, 27 Jun 2012 18:53:18 -0700
>> Subject: RE: Help needed on Image rendering
>>
>>
>> Hi,
>>
>> How did you fix the issue?. can you please elaborate and if possible
>> can you send me generated catalog?
>>
>>
>> ________________________________
>> From: Luis Bernardo [mailto:lmpmbernardo@gmail.com]
>> Sent: Wednesday, June 27, 2012 7:38 PM
>> To: fop-users@xmlgraphics.apache.org
>> Subject: Re: Help needed on Image rendering
>>
>>
>> I used your *.xml and *.xsl files, fixed the image paths, and ran from
>> the command line:
>>
>> macmaxi:code lbernardo$ ../../Documents/fop-1.0/fop -xml test.xml -xsl
>> test.xsl -pdf test.pdf 2>&1 | grep SEVERE | sort -u
>> SEVERE: Couldn't find hyphenation pattern en
>> SEVERE: Image not found. URI: images/GES316847483.jpg. (No context
>> info
>> available)
>> SEVERE: Image not found. URI: images/Gexpro.jpg. (No context info
>> available) macmaxi:code lbernardo$ ls -l images/GES316847483.jpg
>> ls: images/GES316847483.jpg: No such file or directory macmaxi:code
>> lbernardo$ ls -l images/GES316847483.jpg
>> ls: images/GES316847483.jpg: No such file or directory
>>
>> So, only two images could not be found and they are not in the zip you
>> sent. The resulting PDF is a catalog of 679 pages.
>>
>> On 6/27/12 8:51 PM, Musale, Meenakshi - GEXPRO wrote:
>> As an FYI..
>> I am using below jars.
>>
>> 1. avalon-framework-4.2.0.jar
>> 2. barcode4j.jar
>> 3. barcode4j-fop-ext.jar
>> 4. barcode4j-fop-ext-complete.jar
>> 5. batik-all-1.7.jar
>> 6. classes12.jar
>> 7. commons-io-1.3.1.jar
>> 8.commons-logging-1.0.4.jar
>> 9.fop.jar
>> 10. fop-hyph.jar
>> 11. serializer-2.7.0.jar
>> 12. xalan-2.7.0.jar
>> 13. xercesImpl-2.7.1.jar
>> 14. xml-apis-1.3.04.jar
>> 15. xml-apis-ext-1.3.04.jar
>> 16. xmlgraphics-commons-1.4.jar
>>
>>
>> Regards,
>> Meenakshi Musale
>> Web Operations
>> IGate Americas Inc
>> Gexpro, 1000 Bridgeport Avenue.
>> Shelton, CT 06484, USA.
>> Tel: (203) 925 - 2480
>> Email: meenakshi.musale@gexpro.com
>>
>>
>> ________________________________
>> From: Musale, Meenakshi - GEXPRO
>> Sent: Wednesday, June 27, 2012 3:04 PM
>> To: 'Rob Sargent'
>> Cc:
>> fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.o
>> rg>
>> Subject: RE: Help needed on Image rendering
>>
>> Hi Rob,
>>
>> I am sorry which files are you asking, image file or any other file?
>>
>> If you are asking about image file then, yes these files exist and no
>> zero length files. I had attached image zip in my previous email which
>> are being used in xml file.
>>
>> Regards,
>> Meenakshi Musale
>> Web Operations
>> IGate Americas Inc
>> Gexpro, 1000 Bridgeport Avenue.
>> Shelton, CT 06484, USA.
>> Tel: (203) 925 - 2480
>> Email: meenakshi.musale@gexpro.com
>>
>>
>> ________________________________
>> From: Rob Sargent [mailto:rsargent@xmission.com]
>> Sent: Wednesday, June 27, 2012 2:56 PM
>> To: Musale, Meenakshi - GEXPRO
>> Cc:
>> fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.o
>> rg>
>> Subject: Re: Help needed on Image rendering
>>
>> Can you show that the file(s) do(es) in fact exist? And that they are
>> no zero-length files?
>>
>> On 06/27/2012 12:34 PM, Musale, Meenakshi - GEXPRO wrote:
>> Hi Rob,
>>
>> Attached "code.zip" contains
>> 1. xml file which is having data used for PDF generation.
>> 2. xsl file which has FOP tags for generating PDF.
>> 3. Java code which in which xml, xsl is used to generate PDF.
>>
>> I am using FOP1.0 version and the type of image is jpg.
>>
>> Actual error message in log like
>>
>> "org.apache.fop.fo.flow.ExternalGraphic bind
>> SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg"
>>
>> Jun 27, 2012 12:20:23 PM org.apache.fop.render.pdf.PDFRenderer
>> putImage
>> SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg
>>
>> I have done testing with various scenarios and did compressed images
>> but still some of the images not coming up properly.
>> In the attached XML file almost 1570 number of images being used among
>> that 50 + images blanks out.
>>
>> Please let me know if need any help.
>>
>>
>> Regards,
>> Meenakshi Musale
>> Web Operations
>> IGate Americas Inc
>> Gexpro, 1000 Bridgeport Avenue.
>> Shelton, CT 06484, USA.
>> Tel: (203) 925 - 2480
>> Email: meenakshi.musale@gexpro.com
>>
>>
>> ________________________________
>> From: Rob Sargent [mailto:rsargent@xmission.com]
>> Sent: Tuesday, June 26, 2012 8:22 AM
>> To:
>> fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.o
>> rg>
>> Subject: Re: Help needed on Image rendering
>>
>> Show the fo (xml) you are feeding to fop.
>> Show the actual error message.
>> Show your configuration.
>> Show which type of images work, which don't.
>>
>> On 06/26/2012 06:15 AM, Musale, Meenakshi - GEXPRO wrote:
>> Hi,
>>
>> I am facing random issues with image rendering while PDF generation
>> with FOP 1.0 version.
>>
>> Some images are coming properly but some of them are not. Images are
>> present in location but still it gives exception :"Image not found"
>>
>> Please let me know where I can subscribe to solve my issue. Any help
>> will be appreciated.
>>
>>
>> Regards,
>> Meenakshi Musale
>> Web Operations
>> IGate Americas Inc
>> Gexpro, 1000 Bridgeport Avenue.
>> Shelton, CT 06484, USA.
>> Tel: (203) 925 - 2480
>> Email: meenakshi.musale@gexpro.com
>>
>>
>>
>>
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
RE: Help needed on Image rendering
Posted by "Musale, Meenakshi - Rexel Holdings USA" <Me...@gexpro.com>.
Hi Rob,
I was facing image rendering issue with Java 1.5. then I Installed jdk1.6.0_18 on my local machine, After that PDF catalog generated successfully.
But when I run same catalog on Unix server(Linux) where we have installed jdk1.6.0_18, but it gives exception as
"java.lang.IllegalArgumentException: Can't load standard profile: GRAY.pf".and not generating PDF.
I tried to search on java forums for this error message. The possible reason can be
1. Incomplete installation of Java. But I tried 2,3 times fresh installation on server but still gives same error.
2. Missing GRAY.pf in JRE lib folder, but this profile file is present in jre lib/cmm directory.
Can you please help to identify the root cause.
Regards,
Meenakshi
------------------------------------------------------------------------------------------------------------------------------------
-----Original Message-----
From: Robert Meyer [mailto:rmeyer@hotmail.co.uk]
Sent: Thursday, June 28, 2012 4:33 AM
To: fop-users@xmlgraphics.apache.org
Subject: RE: Help needed on Image rendering
Hello,
I took a slightly different approach to Luis and created an Eclipse project and ran your code from there. I can confirm Luis's findings and got similar output messages on my console.
I did not make any changes to either the code, XML or XSL apart from changing the image directory location. The only errors I were regarding missing images that were not present in the images directory.
I have attached the generated PDF to this e-mail.
Regards,
Robert Meyer
________________________________
> From: Meenakshi.Musale@gexpro.com
> To: fop-users@xmlgraphics.apache.org
> CC: lmpmbernardo@gmail.com
> Date: Wed, 27 Jun 2012 18:53:18 -0700
> Subject: RE: Help needed on Image rendering
>
>
> Hi,
>
> How did you fix the issue?. can you please elaborate and if possible
> can you send me generated catalog?
>
>
> ________________________________
> From: Luis Bernardo [mailto:lmpmbernardo@gmail.com]
> Sent: Wednesday, June 27, 2012 7:38 PM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: Help needed on Image rendering
>
>
> I used your *.xml and *.xsl files, fixed the image paths, and ran from
> the command line:
>
> macmaxi:code lbernardo$ ../../Documents/fop-1.0/fop -xml test.xml -xsl
> test.xsl -pdf test.pdf 2>&1 | grep SEVERE | sort -u
> SEVERE: Couldn't find hyphenation pattern en
> SEVERE: Image not found. URI: images/GES316847483.jpg. (No context
> info
> available)
> SEVERE: Image not found. URI: images/Gexpro.jpg. (No context info
> available) macmaxi:code lbernardo$ ls -l images/GES316847483.jpg
> ls: images/GES316847483.jpg: No such file or directory macmaxi:code
> lbernardo$ ls -l images/GES316847483.jpg
> ls: images/GES316847483.jpg: No such file or directory
>
> So, only two images could not be found and they are not in the zip you
> sent. The resulting PDF is a catalog of 679 pages.
>
> On 6/27/12 8:51 PM, Musale, Meenakshi - GEXPRO wrote:
> As an FYI..
> I am using below jars.
>
> 1. avalon-framework-4.2.0.jar
> 2. barcode4j.jar
> 3. barcode4j-fop-ext.jar
> 4. barcode4j-fop-ext-complete.jar
> 5. batik-all-1.7.jar
> 6. classes12.jar
> 7. commons-io-1.3.1.jar
> 8.commons-logging-1.0.4.jar
> 9.fop.jar
> 10. fop-hyph.jar
> 11. serializer-2.7.0.jar
> 12. xalan-2.7.0.jar
> 13. xercesImpl-2.7.1.jar
> 14. xml-apis-1.3.04.jar
> 15. xml-apis-ext-1.3.04.jar
> 16. xmlgraphics-commons-1.4.jar
>
>
> Regards,
> Meenakshi Musale
> Web Operations
> IGate Americas Inc
> Gexpro, 1000 Bridgeport Avenue.
> Shelton, CT 06484, USA.
> Tel: (203) 925 - 2480
> Email: meenakshi.musale@gexpro.com
>
>
> ________________________________
> From: Musale, Meenakshi - GEXPRO
> Sent: Wednesday, June 27, 2012 3:04 PM
> To: 'Rob Sargent'
> Cc:
> fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.o
> rg>
> Subject: RE: Help needed on Image rendering
>
> Hi Rob,
>
> I am sorry which files are you asking, image file or any other file?
>
> If you are asking about image file then, yes these files exist and no
> zero length files. I had attached image zip in my previous email which
> are being used in xml file.
>
> Regards,
> Meenakshi Musale
> Web Operations
> IGate Americas Inc
> Gexpro, 1000 Bridgeport Avenue.
> Shelton, CT 06484, USA.
> Tel: (203) 925 - 2480
> Email: meenakshi.musale@gexpro.com
>
>
> ________________________________
> From: Rob Sargent [mailto:rsargent@xmission.com]
> Sent: Wednesday, June 27, 2012 2:56 PM
> To: Musale, Meenakshi - GEXPRO
> Cc:
> fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.o
> rg>
> Subject: Re: Help needed on Image rendering
>
> Can you show that the file(s) do(es) in fact exist? And that they are
> no zero-length files?
>
> On 06/27/2012 12:34 PM, Musale, Meenakshi - GEXPRO wrote:
> Hi Rob,
>
> Attached "code.zip" contains
> 1. xml file which is having data used for PDF generation.
> 2. xsl file which has FOP tags for generating PDF.
> 3. Java code which in which xml, xsl is used to generate PDF.
>
> I am using FOP1.0 version and the type of image is jpg.
>
> Actual error message in log like
>
> "org.apache.fop.fo.flow.ExternalGraphic bind
> SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg"
>
> Jun 27, 2012 12:20:23 PM org.apache.fop.render.pdf.PDFRenderer
> putImage
> SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg
>
> I have done testing with various scenarios and did compressed images
> but still some of the images not coming up properly.
> In the attached XML file almost 1570 number of images being used among
> that 50 + images blanks out.
>
> Please let me know if need any help.
>
>
> Regards,
> Meenakshi Musale
> Web Operations
> IGate Americas Inc
> Gexpro, 1000 Bridgeport Avenue.
> Shelton, CT 06484, USA.
> Tel: (203) 925 - 2480
> Email: meenakshi.musale@gexpro.com
>
>
> ________________________________
> From: Rob Sargent [mailto:rsargent@xmission.com]
> Sent: Tuesday, June 26, 2012 8:22 AM
> To:
> fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.o
> rg>
> Subject: Re: Help needed on Image rendering
>
> Show the fo (xml) you are feeding to fop.
> Show the actual error message.
> Show your configuration.
> Show which type of images work, which don't.
>
> On 06/26/2012 06:15 AM, Musale, Meenakshi - GEXPRO wrote:
> Hi,
>
> I am facing random issues with image rendering while PDF generation
> with FOP 1.0 version.
>
> Some images are coming properly but some of them are not. Images are
> present in location but still it gives exception :"Image not found"
>
> Please let me know where I can subscribe to solve my issue. Any help
> will be appreciated.
>
>
> Regards,
> Meenakshi Musale
> Web Operations
> IGate Americas Inc
> Gexpro, 1000 Bridgeport Avenue.
> Shelton, CT 06484, USA.
> Tel: (203) 925 - 2480
> Email: meenakshi.musale@gexpro.com
>
>
>
>
>
>
>
Re: Help needed on Image rendering
Posted by Alexios Giotis <al...@gmail.com>.
Hi,
2 quick suggestions:
1. Check if the problem occurs when the JAI image library is installed (a wild guess).
2. Register an event listener on FOUserAgent that will throw (and eventually log) the underlying root exception, see [1], [2]. Make sure that IOExceptions are also logged, the embedding.events.ExampleEvents.MyEventListener will only log fnfe (FileNotFoundException).
Alexios
[1] http://xmlgraphics.apache.org/fop/1.0/events.html
[2] ${apache-fop-src}/examples/embedding/java/embedding/events/ExampleEvents.java
On Jun 28, 2012, at 6:41 PM, Robert Meyer wrote:
>
> I am running a 64-bit i7 with 8gb of RAM.
>
> In my eclipse.ini settings, I recently changed the maximum memory setting from the original 256mb to vmargs -Xmx2048m.
>
> After talking with Luis, he said the first time he tried to generate the document he also ran out of memory, so the memory setting might be the issue. If you haven't already done so, try increasing that value to see if it resolves the issue.
>
> Alternatively, it might be worth running it directly with FOP from the command line to see if you get different results. You can set the amount of memory java uses through the JAVA_OPTS system variable.
>
> Again though, this is just a guess at the moment. If it is always the same images it complains about, then it is less likely to be memory related.
>
> Regards,
>
> Robert Meyer
>
> ----------------------------------------
>> From: Meenakshi.Musale@gexpro.com
>> To: fop-users@xmlgraphics.apache.org; rmeyer@hotmail.co.uk
>> Date: Thu, 28 Jun 2012 06:42:20 -0700
>> Subject: RE: Help needed on Image rendering
>>
>> Rob,
>>
>> What is memory setting for eclipse and what is machine configuration, is it 32 bit or 64 bit processor?
>>
>>
>> Regards,
>> Meenakshi Musale
>> Web Operations
>> IGate Americas Inc
>> Gexpro, 1000 Bridgeport Avenue.
>> Shelton, CT 06484, USA.
>> Tel: (203) 925 - 2480
>> Email: meenakshi.musale@gexpro.com
>>
>> -----Original Message-----
>> From: Robert Meyer [mailto:rmeyer@hotmail.co.uk]
>> Sent: Thursday, June 28, 2012 4:33 AM
>> To: fop-users@xmlgraphics.apache.org
>> Subject: RE: Help needed on Image rendering
>>
>>
>> Hello,
>>
>> I took a slightly different approach to Luis and created an Eclipse project and ran your code from there. I can confirm Luis's findings and got similar output messages on my console.
>>
>> I did not make any changes to either the code, XML or XSL apart from changing the image directory location. The only errors I were regarding missing images that were not present in the images directory.
>>
>> I have attached the generated PDF to this e-mail.
>>
>> Regards,
>>
>> Robert Meyer
>> ________________________________
>>> From: Meenakshi.Musale@gexpro.com
>>> To: fop-users@xmlgraphics.apache.org
>>> CC: lmpmbernardo@gmail.com
>>> Date: Wed, 27 Jun 2012 18:53:18 -0700
>>> Subject: RE: Help needed on Image rendering
>>>
>>>
>>> Hi,
>>>
>>> How did you fix the issue?. can you please elaborate and if possible
>>> can you send me generated catalog?
>>>
>>>
>>> ________________________________
>>> From: Luis Bernardo [mailto:lmpmbernardo@gmail.com]
>>> Sent: Wednesday, June 27, 2012 7:38 PM
>>> To: fop-users@xmlgraphics.apache.org
>>> Subject: Re: Help needed on Image rendering
>>>
>>>
>>> I used your *.xml and *.xsl files, fixed the image paths, and ran from
>>> the command line:
>>>
>>> macmaxi:code lbernardo$ ../../Documents/fop-1.0/fop -xml test.xml -xsl
>>> test.xsl -pdf test.pdf 2>&1 | grep SEVERE | sort -u
>>> SEVERE: Couldn't find hyphenation pattern en
>>> SEVERE: Image not found. URI: images/GES316847483.jpg. (No context
>>> info
>>> available)
>>> SEVERE: Image not found. URI: images/Gexpro.jpg. (No context info
>>> available) macmaxi:code lbernardo$ ls -l images/GES316847483.jpg
>>> ls: images/GES316847483.jpg: No such file or directory macmaxi:code
>>> lbernardo$ ls -l images/GES316847483.jpg
>>> ls: images/GES316847483.jpg: No such file or directory
>>>
>>> So, only two images could not be found and they are not in the zip you
>>> sent. The resulting PDF is a catalog of 679 pages.
>>>
>>> On 6/27/12 8:51 PM, Musale, Meenakshi - GEXPRO wrote:
>>> As an FYI..
>>> I am using below jars.
>>>
>>> 1. avalon-framework-4.2.0.jar
>>> 2. barcode4j.jar
>>> 3. barcode4j-fop-ext.jar
>>> 4. barcode4j-fop-ext-complete.jar
>>> 5. batik-all-1.7.jar
>>> 6. classes12.jar
>>> 7. commons-io-1.3.1.jar
>>> 8.commons-logging-1.0.4.jar
>>> 9.fop.jar
>>> 10. fop-hyph.jar
>>> 11. serializer-2.7.0.jar
>>> 12. xalan-2.7.0.jar
>>> 13. xercesImpl-2.7.1.jar
>>> 14. xml-apis-1.3.04.jar
>>> 15. xml-apis-ext-1.3.04.jar
>>> 16. xmlgraphics-commons-1.4.jar
>>>
>>>
>>> Regards,
>>> Meenakshi Musale
>>> Web Operations
>>> IGate Americas Inc
>>> Gexpro, 1000 Bridgeport Avenue.
>>> Shelton, CT 06484, USA.
>>> Tel: (203) 925 - 2480
>>> Email: meenakshi.musale@gexpro.com
>>>
>>>
>>> ________________________________
>>> From: Musale, Meenakshi - GEXPRO
>>> Sent: Wednesday, June 27, 2012 3:04 PM
>>> To: 'Rob Sargent'
>>> Cc:
>>> fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.o
>>> rg>
>>> Subject: RE: Help needed on Image rendering
>>>
>>> Hi Rob,
>>>
>>> I am sorry which files are you asking, image file or any other file?
>>>
>>> If you are asking about image file then, yes these files exist and no
>>> zero length files. I had attached image zip in my previous email which
>>> are being used in xml file.
>>>
>>> Regards,
>>> Meenakshi Musale
>>> Web Operations
>>> IGate Americas Inc
>>> Gexpro, 1000 Bridgeport Avenue.
>>> Shelton, CT 06484, USA.
>>> Tel: (203) 925 - 2480
>>> Email: meenakshi.musale@gexpro.com
>>>
>>>
>>> ________________________________
>>> From: Rob Sargent [mailto:rsargent@xmission.com]
>>> Sent: Wednesday, June 27, 2012 2:56 PM
>>> To: Musale, Meenakshi - GEXPRO
>>> Cc:
>>> fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.o
>>> rg>
>>> Subject: Re: Help needed on Image rendering
>>>
>>> Can you show that the file(s) do(es) in fact exist? And that they are
>>> no zero-length files?
>>>
>>> On 06/27/2012 12:34 PM, Musale, Meenakshi - GEXPRO wrote:
>>> Hi Rob,
>>>
>>> Attached "code.zip" contains
>>> 1. xml file which is having data used for PDF generation.
>>> 2. xsl file which has FOP tags for generating PDF.
>>> 3. Java code which in which xml, xsl is used to generate PDF.
>>>
>>> I am using FOP1.0 version and the type of image is jpg.
>>>
>>> Actual error message in log like
>>>
>>> "org.apache.fop.fo.flow.ExternalGraphic bind
>>> SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg"
>>>
>>> Jun 27, 2012 12:20:23 PM org.apache.fop.render.pdf.PDFRenderer
>>> putImage
>>> SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg
>>>
>>> I have done testing with various scenarios and did compressed images
>>> but still some of the images not coming up properly.
>>> In the attached XML file almost 1570 number of images being used among
>>> that 50 + images blanks out.
>>>
>>> Please let me know if need any help.
>>>
>>>
>>> Regards,
>>> Meenakshi Musale
>>> Web Operations
>>> IGate Americas Inc
>>> Gexpro, 1000 Bridgeport Avenue.
>>> Shelton, CT 06484, USA.
>>> Tel: (203) 925 - 2480
>>> Email: meenakshi.musale@gexpro.com
>>>
>>>
>>> ________________________________
>>> From: Rob Sargent [mailto:rsargent@xmission.com]
>>> Sent: Tuesday, June 26, 2012 8:22 AM
>>> To:
>>> fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.o
>>> rg>
>>> Subject: Re: Help needed on Image rendering
>>>
>>> Show the fo (xml) you are feeding to fop.
>>> Show the actual error message.
>>> Show your configuration.
>>> Show which type of images work, which don't.
>>>
>>> On 06/26/2012 06:15 AM, Musale, Meenakshi - GEXPRO wrote:
>>> Hi,
>>>
>>> I am facing random issues with image rendering while PDF generation
>>> with FOP 1.0 version.
>>>
>>> Some images are coming properly but some of them are not. Images are
>>> present in location but still it gives exception :"Image not found"
>>>
>>> Please let me know where I can subscribe to solve my issue. Any help
>>> will be appreciated.
>>>
>>>
>>> Regards,
>>> Meenakshi Musale
>>> Web Operations
>>> IGate Americas Inc
>>> Gexpro, 1000 Bridgeport Avenue.
>>> Shelton, CT 06484, USA.
>>> Tel: (203) 925 - 2480
>>> Email: meenakshi.musale@gexpro.com
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
RE: Help needed on Image rendering
Posted by Robert Meyer <rm...@hotmail.co.uk>.
I am running a 64-bit i7 with 8gb of RAM.
In my eclipse.ini settings, I recently changed the maximum memory setting from the original 256mb to vmargs -Xmx2048m.
After talking with Luis, he said the first time he tried to generate the document he also ran out of memory, so the memory setting might be the issue. If you haven't already done so, try increasing that value to see if it resolves the issue.
Alternatively, it might be worth running it directly with FOP from the command line to see if you get different results. You can set the amount of memory java uses through the JAVA_OPTS system variable.
Again though, this is just a guess at the moment. If it is always the same images it complains about, then it is less likely to be memory related.
Regards,
Robert Meyer
----------------------------------------
> From: Meenakshi.Musale@gexpro.com
> To: fop-users@xmlgraphics.apache.org; rmeyer@hotmail.co.uk
> Date: Thu, 28 Jun 2012 06:42:20 -0700
> Subject: RE: Help needed on Image rendering
>
> Rob,
>
> What is memory setting for eclipse and what is machine configuration, is it 32 bit or 64 bit processor?
>
>
> Regards,
> Meenakshi Musale
> Web Operations
> IGate Americas Inc
> Gexpro, 1000 Bridgeport Avenue.
> Shelton, CT 06484, USA.
> Tel: (203) 925 - 2480
> Email: meenakshi.musale@gexpro.com
>
> -----Original Message-----
> From: Robert Meyer [mailto:rmeyer@hotmail.co.uk]
> Sent: Thursday, June 28, 2012 4:33 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: RE: Help needed on Image rendering
>
>
> Hello,
>
> I took a slightly different approach to Luis and created an Eclipse project and ran your code from there. I can confirm Luis's findings and got similar output messages on my console.
>
> I did not make any changes to either the code, XML or XSL apart from changing the image directory location. The only errors I were regarding missing images that were not present in the images directory.
>
> I have attached the generated PDF to this e-mail.
>
> Regards,
>
> Robert Meyer
> ________________________________
> > From: Meenakshi.Musale@gexpro.com
> > To: fop-users@xmlgraphics.apache.org
> > CC: lmpmbernardo@gmail.com
> > Date: Wed, 27 Jun 2012 18:53:18 -0700
> > Subject: RE: Help needed on Image rendering
> >
> >
> > Hi,
> >
> > How did you fix the issue?. can you please elaborate and if possible
> > can you send me generated catalog?
> >
> >
> > ________________________________
> > From: Luis Bernardo [mailto:lmpmbernardo@gmail.com]
> > Sent: Wednesday, June 27, 2012 7:38 PM
> > To: fop-users@xmlgraphics.apache.org
> > Subject: Re: Help needed on Image rendering
> >
> >
> > I used your *.xml and *.xsl files, fixed the image paths, and ran from
> > the command line:
> >
> > macmaxi:code lbernardo$ ../../Documents/fop-1.0/fop -xml test.xml -xsl
> > test.xsl -pdf test.pdf 2>&1 | grep SEVERE | sort -u
> > SEVERE: Couldn't find hyphenation pattern en
> > SEVERE: Image not found. URI: images/GES316847483.jpg. (No context
> > info
> > available)
> > SEVERE: Image not found. URI: images/Gexpro.jpg. (No context info
> > available) macmaxi:code lbernardo$ ls -l images/GES316847483.jpg
> > ls: images/GES316847483.jpg: No such file or directory macmaxi:code
> > lbernardo$ ls -l images/GES316847483.jpg
> > ls: images/GES316847483.jpg: No such file or directory
> >
> > So, only two images could not be found and they are not in the zip you
> > sent. The resulting PDF is a catalog of 679 pages.
> >
> > On 6/27/12 8:51 PM, Musale, Meenakshi - GEXPRO wrote:
> > As an FYI..
> > I am using below jars.
> >
> > 1. avalon-framework-4.2.0.jar
> > 2. barcode4j.jar
> > 3. barcode4j-fop-ext.jar
> > 4. barcode4j-fop-ext-complete.jar
> > 5. batik-all-1.7.jar
> > 6. classes12.jar
> > 7. commons-io-1.3.1.jar
> > 8.commons-logging-1.0.4.jar
> > 9.fop.jar
> > 10. fop-hyph.jar
> > 11. serializer-2.7.0.jar
> > 12. xalan-2.7.0.jar
> > 13. xercesImpl-2.7.1.jar
> > 14. xml-apis-1.3.04.jar
> > 15. xml-apis-ext-1.3.04.jar
> > 16. xmlgraphics-commons-1.4.jar
> >
> >
> > Regards,
> > Meenakshi Musale
> > Web Operations
> > IGate Americas Inc
> > Gexpro, 1000 Bridgeport Avenue.
> > Shelton, CT 06484, USA.
> > Tel: (203) 925 - 2480
> > Email: meenakshi.musale@gexpro.com
> >
> >
> > ________________________________
> > From: Musale, Meenakshi - GEXPRO
> > Sent: Wednesday, June 27, 2012 3:04 PM
> > To: 'Rob Sargent'
> > Cc:
> > fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.o
> > rg>
> > Subject: RE: Help needed on Image rendering
> >
> > Hi Rob,
> >
> > I am sorry which files are you asking, image file or any other file?
> >
> > If you are asking about image file then, yes these files exist and no
> > zero length files. I had attached image zip in my previous email which
> > are being used in xml file.
> >
> > Regards,
> > Meenakshi Musale
> > Web Operations
> > IGate Americas Inc
> > Gexpro, 1000 Bridgeport Avenue.
> > Shelton, CT 06484, USA.
> > Tel: (203) 925 - 2480
> > Email: meenakshi.musale@gexpro.com
> >
> >
> > ________________________________
> > From: Rob Sargent [mailto:rsargent@xmission.com]
> > Sent: Wednesday, June 27, 2012 2:56 PM
> > To: Musale, Meenakshi - GEXPRO
> > Cc:
> > fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.o
> > rg>
> > Subject: Re: Help needed on Image rendering
> >
> > Can you show that the file(s) do(es) in fact exist? And that they are
> > no zero-length files?
> >
> > On 06/27/2012 12:34 PM, Musale, Meenakshi - GEXPRO wrote:
> > Hi Rob,
> >
> > Attached "code.zip" contains
> > 1. xml file which is having data used for PDF generation.
> > 2. xsl file which has FOP tags for generating PDF.
> > 3. Java code which in which xml, xsl is used to generate PDF.
> >
> > I am using FOP1.0 version and the type of image is jpg.
> >
> > Actual error message in log like
> >
> > "org.apache.fop.fo.flow.ExternalGraphic bind
> > SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg"
> >
> > Jun 27, 2012 12:20:23 PM org.apache.fop.render.pdf.PDFRenderer
> > putImage
> > SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg
> >
> > I have done testing with various scenarios and did compressed images
> > but still some of the images not coming up properly.
> > In the attached XML file almost 1570 number of images being used among
> > that 50 + images blanks out.
> >
> > Please let me know if need any help.
> >
> >
> > Regards,
> > Meenakshi Musale
> > Web Operations
> > IGate Americas Inc
> > Gexpro, 1000 Bridgeport Avenue.
> > Shelton, CT 06484, USA.
> > Tel: (203) 925 - 2480
> > Email: meenakshi.musale@gexpro.com
> >
> >
> > ________________________________
> > From: Rob Sargent [mailto:rsargent@xmission.com]
> > Sent: Tuesday, June 26, 2012 8:22 AM
> > To:
> > fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.o
> > rg>
> > Subject: Re: Help needed on Image rendering
> >
> > Show the fo (xml) you are feeding to fop.
> > Show the actual error message.
> > Show your configuration.
> > Show which type of images work, which don't.
> >
> > On 06/26/2012 06:15 AM, Musale, Meenakshi - GEXPRO wrote:
> > Hi,
> >
> > I am facing random issues with image rendering while PDF generation
> > with FOP 1.0 version.
> >
> > Some images are coming properly but some of them are not. Images are
> > present in location but still it gives exception :"Image not found"
> >
> > Please let me know where I can subscribe to solve my issue. Any help
> > will be appreciated.
> >
> >
> > Regards,
> > Meenakshi Musale
> > Web Operations
> > IGate Americas Inc
> > Gexpro, 1000 Bridgeport Avenue.
> > Shelton, CT 06484, USA.
> > Tel: (203) 925 - 2480
> > Email: meenakshi.musale@gexpro.com
> >
> >
> >
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Help needed on Image rendering
Posted by Rob Sargent <rs...@xmission.com>.
Be very careful with that plan. This list is full of stories of people
getting in to trouble because their IDE is different from production.
If you can't run it by hand, you don't know if what makes it work.
On 06/28/2012 07:42 AM, Musale, Meenakshi - GEXPRO wrote:
> Rob,
>
> What is memory setting for eclipse and what is machine configuration, is it 32 bit or 64 bit processor?
>
>
> Regards,
> Meenakshi Musale
> Web Operations
> IGate Americas Inc
> Gexpro, 1000 Bridgeport Avenue.
> Shelton, CT 06484, USA.
> Tel: (203) 925 - 2480
> Email: meenakshi.musale@gexpro.com
>
> -----Original Message-----
> From: Robert Meyer [mailto:rmeyer@hotmail.co.uk]
> Sent: Thursday, June 28, 2012 4:33 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: RE: Help needed on Image rendering
>
>
> Hello,
>
> I took a slightly different approach to Luis and created an Eclipse project and ran your code from there. I can confirm Luis's findings and got similar output messages on my console.
>
> I did not make any changes to either the code, XML or XSL apart from changing the image directory location. The only errors I were regarding missing images that were not present in the images directory.
>
> I have attached the generated PDF to this e-mail.
>
> Regards,
>
> Robert Meyer
> ________________________________
>> From: Meenakshi.Musale@gexpro.com
>> To: fop-users@xmlgraphics.apache.org
>> CC: lmpmbernardo@gmail.com
>> Date: Wed, 27 Jun 2012 18:53:18 -0700
>> Subject: RE: Help needed on Image rendering
>>
>>
>> Hi,
>>
>> How did you fix the issue?. can you please elaborate and if possible
>> can you send me generated catalog?
>>
>>
>> ________________________________
>> From: Luis Bernardo [mailto:lmpmbernardo@gmail.com]
>> Sent: Wednesday, June 27, 2012 7:38 PM
>> To: fop-users@xmlgraphics.apache.org
>> Subject: Re: Help needed on Image rendering
>>
>>
>> I used your *.xml and *.xsl files, fixed the image paths, and ran from
>> the command line:
>>
>> macmaxi:code lbernardo$ ../../Documents/fop-1.0/fop -xml test.xml -xsl
>> test.xsl -pdf test.pdf 2>&1 | grep SEVERE | sort -u
>> SEVERE: Couldn't find hyphenation pattern en
>> SEVERE: Image not found. URI: images/GES316847483.jpg. (No context
>> info
>> available)
>> SEVERE: Image not found. URI: images/Gexpro.jpg. (No context info
>> available) macmaxi:code lbernardo$ ls -l images/GES316847483.jpg
>> ls: images/GES316847483.jpg: No such file or directory macmaxi:code
>> lbernardo$ ls -l images/GES316847483.jpg
>> ls: images/GES316847483.jpg: No such file or directory
>>
>> So, only two images could not be found and they are not in the zip you
>> sent. The resulting PDF is a catalog of 679 pages.
>>
>> On 6/27/12 8:51 PM, Musale, Meenakshi - GEXPRO wrote:
>> As an FYI..
>> I am using below jars.
>>
>> 1. avalon-framework-4.2.0.jar
>> 2. barcode4j.jar
>> 3. barcode4j-fop-ext.jar
>> 4. barcode4j-fop-ext-complete.jar
>> 5. batik-all-1.7.jar
>> 6. classes12.jar
>> 7. commons-io-1.3.1.jar
>> 8.commons-logging-1.0.4.jar
>> 9.fop.jar
>> 10. fop-hyph.jar
>> 11. serializer-2.7.0.jar
>> 12. xalan-2.7.0.jar
>> 13. xercesImpl-2.7.1.jar
>> 14. xml-apis-1.3.04.jar
>> 15. xml-apis-ext-1.3.04.jar
>> 16. xmlgraphics-commons-1.4.jar
>>
>>
>> Regards,
>> Meenakshi Musale
>> Web Operations
>> IGate Americas Inc
>> Gexpro, 1000 Bridgeport Avenue.
>> Shelton, CT 06484, USA.
>> Tel: (203) 925 - 2480
>> Email: meenakshi.musale@gexpro.com
>>
>>
>> ________________________________
>> From: Musale, Meenakshi - GEXPRO
>> Sent: Wednesday, June 27, 2012 3:04 PM
>> To: 'Rob Sargent'
>> Cc:
>> fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.o
>> rg>
>> Subject: RE: Help needed on Image rendering
>>
>> Hi Rob,
>>
>> I am sorry which files are you asking, image file or any other file?
>>
>> If you are asking about image file then, yes these files exist and no
>> zero length files. I had attached image zip in my previous email which
>> are being used in xml file.
>>
>> Regards,
>> Meenakshi Musale
>> Web Operations
>> IGate Americas Inc
>> Gexpro, 1000 Bridgeport Avenue.
>> Shelton, CT 06484, USA.
>> Tel: (203) 925 - 2480
>> Email: meenakshi.musale@gexpro.com
>>
>>
>> ________________________________
>> From: Rob Sargent [mailto:rsargent@xmission.com]
>> Sent: Wednesday, June 27, 2012 2:56 PM
>> To: Musale, Meenakshi - GEXPRO
>> Cc:
>> fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.o
>> rg>
>> Subject: Re: Help needed on Image rendering
>>
>> Can you show that the file(s) do(es) in fact exist? And that they are
>> no zero-length files?
>>
>> On 06/27/2012 12:34 PM, Musale, Meenakshi - GEXPRO wrote:
>> Hi Rob,
>>
>> Attached "code.zip" contains
>> 1. xml file which is having data used for PDF generation.
>> 2. xsl file which has FOP tags for generating PDF.
>> 3. Java code which in which xml, xsl is used to generate PDF.
>>
>> I am using FOP1.0 version and the type of image is jpg.
>>
>> Actual error message in log like
>>
>> "org.apache.fop.fo.flow.ExternalGraphic bind
>> SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg"
>>
>> Jun 27, 2012 12:20:23 PM org.apache.fop.render.pdf.PDFRenderer
>> putImage
>> SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg
>>
>> I have done testing with various scenarios and did compressed images
>> but still some of the images not coming up properly.
>> In the attached XML file almost 1570 number of images being used among
>> that 50 + images blanks out.
>>
>> Please let me know if need any help.
>>
>>
>> Regards,
>> Meenakshi Musale
>> Web Operations
>> IGate Americas Inc
>> Gexpro, 1000 Bridgeport Avenue.
>> Shelton, CT 06484, USA.
>> Tel: (203) 925 - 2480
>> Email: meenakshi.musale@gexpro.com
>>
>>
>> ________________________________
>> From: Rob Sargent [mailto:rsargent@xmission.com]
>> Sent: Tuesday, June 26, 2012 8:22 AM
>> To:
>> fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.o
>> rg>
>> Subject: Re: Help needed on Image rendering
>>
>> Show the fo (xml) you are feeding to fop.
>> Show the actual error message.
>> Show your configuration.
>> Show which type of images work, which don't.
>>
>> On 06/26/2012 06:15 AM, Musale, Meenakshi - GEXPRO wrote:
>> Hi,
>>
>> I am facing random issues with image rendering while PDF generation
>> with FOP 1.0 version.
>>
>> Some images are coming properly but some of them are not. Images are
>> present in location but still it gives exception :"Image not found"
>>
>> Please let me know where I can subscribe to solve my issue. Any help
>> will be appreciated.
>>
>>
>> Regards,
>> Meenakshi Musale
>> Web Operations
>> IGate Americas Inc
>> Gexpro, 1000 Bridgeport Avenue.
>> Shelton, CT 06484, USA.
>> Tel: (203) 925 - 2480
>> Email: meenakshi.musale@gexpro.com
>>
>>
>>
>>
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
RE: Help needed on Image rendering
Posted by "Musale, Meenakshi - GEXPRO" <Me...@gexpro.com>.
Rob,
What is memory setting for eclipse and what is machine configuration, is it 32 bit or 64 bit processor?
Regards,
Meenakshi Musale
Web Operations
IGate Americas Inc
Gexpro, 1000 Bridgeport Avenue.
Shelton, CT 06484, USA.
Tel: (203) 925 - 2480
Email: meenakshi.musale@gexpro.com
-----Original Message-----
From: Robert Meyer [mailto:rmeyer@hotmail.co.uk]
Sent: Thursday, June 28, 2012 4:33 AM
To: fop-users@xmlgraphics.apache.org
Subject: RE: Help needed on Image rendering
Hello,
I took a slightly different approach to Luis and created an Eclipse project and ran your code from there. I can confirm Luis's findings and got similar output messages on my console.
I did not make any changes to either the code, XML or XSL apart from changing the image directory location. The only errors I were regarding missing images that were not present in the images directory.
I have attached the generated PDF to this e-mail.
Regards,
Robert Meyer
________________________________
> From: Meenakshi.Musale@gexpro.com
> To: fop-users@xmlgraphics.apache.org
> CC: lmpmbernardo@gmail.com
> Date: Wed, 27 Jun 2012 18:53:18 -0700
> Subject: RE: Help needed on Image rendering
>
>
> Hi,
>
> How did you fix the issue?. can you please elaborate and if possible
> can you send me generated catalog?
>
>
> ________________________________
> From: Luis Bernardo [mailto:lmpmbernardo@gmail.com]
> Sent: Wednesday, June 27, 2012 7:38 PM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: Help needed on Image rendering
>
>
> I used your *.xml and *.xsl files, fixed the image paths, and ran from
> the command line:
>
> macmaxi:code lbernardo$ ../../Documents/fop-1.0/fop -xml test.xml -xsl
> test.xsl -pdf test.pdf 2>&1 | grep SEVERE | sort -u
> SEVERE: Couldn't find hyphenation pattern en
> SEVERE: Image not found. URI: images/GES316847483.jpg. (No context
> info
> available)
> SEVERE: Image not found. URI: images/Gexpro.jpg. (No context info
> available) macmaxi:code lbernardo$ ls -l images/GES316847483.jpg
> ls: images/GES316847483.jpg: No such file or directory macmaxi:code
> lbernardo$ ls -l images/GES316847483.jpg
> ls: images/GES316847483.jpg: No such file or directory
>
> So, only two images could not be found and they are not in the zip you
> sent. The resulting PDF is a catalog of 679 pages.
>
> On 6/27/12 8:51 PM, Musale, Meenakshi - GEXPRO wrote:
> As an FYI..
> I am using below jars.
>
> 1. avalon-framework-4.2.0.jar
> 2. barcode4j.jar
> 3. barcode4j-fop-ext.jar
> 4. barcode4j-fop-ext-complete.jar
> 5. batik-all-1.7.jar
> 6. classes12.jar
> 7. commons-io-1.3.1.jar
> 8.commons-logging-1.0.4.jar
> 9.fop.jar
> 10. fop-hyph.jar
> 11. serializer-2.7.0.jar
> 12. xalan-2.7.0.jar
> 13. xercesImpl-2.7.1.jar
> 14. xml-apis-1.3.04.jar
> 15. xml-apis-ext-1.3.04.jar
> 16. xmlgraphics-commons-1.4.jar
>
>
> Regards,
> Meenakshi Musale
> Web Operations
> IGate Americas Inc
> Gexpro, 1000 Bridgeport Avenue.
> Shelton, CT 06484, USA.
> Tel: (203) 925 - 2480
> Email: meenakshi.musale@gexpro.com
>
>
> ________________________________
> From: Musale, Meenakshi - GEXPRO
> Sent: Wednesday, June 27, 2012 3:04 PM
> To: 'Rob Sargent'
> Cc:
> fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.o
> rg>
> Subject: RE: Help needed on Image rendering
>
> Hi Rob,
>
> I am sorry which files are you asking, image file or any other file?
>
> If you are asking about image file then, yes these files exist and no
> zero length files. I had attached image zip in my previous email which
> are being used in xml file.
>
> Regards,
> Meenakshi Musale
> Web Operations
> IGate Americas Inc
> Gexpro, 1000 Bridgeport Avenue.
> Shelton, CT 06484, USA.
> Tel: (203) 925 - 2480
> Email: meenakshi.musale@gexpro.com
>
>
> ________________________________
> From: Rob Sargent [mailto:rsargent@xmission.com]
> Sent: Wednesday, June 27, 2012 2:56 PM
> To: Musale, Meenakshi - GEXPRO
> Cc:
> fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.o
> rg>
> Subject: Re: Help needed on Image rendering
>
> Can you show that the file(s) do(es) in fact exist? And that they are
> no zero-length files?
>
> On 06/27/2012 12:34 PM, Musale, Meenakshi - GEXPRO wrote:
> Hi Rob,
>
> Attached "code.zip" contains
> 1. xml file which is having data used for PDF generation.
> 2. xsl file which has FOP tags for generating PDF.
> 3. Java code which in which xml, xsl is used to generate PDF.
>
> I am using FOP1.0 version and the type of image is jpg.
>
> Actual error message in log like
>
> "org.apache.fop.fo.flow.ExternalGraphic bind
> SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg"
>
> Jun 27, 2012 12:20:23 PM org.apache.fop.render.pdf.PDFRenderer
> putImage
> SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg
>
> I have done testing with various scenarios and did compressed images
> but still some of the images not coming up properly.
> In the attached XML file almost 1570 number of images being used among
> that 50 + images blanks out.
>
> Please let me know if need any help.
>
>
> Regards,
> Meenakshi Musale
> Web Operations
> IGate Americas Inc
> Gexpro, 1000 Bridgeport Avenue.
> Shelton, CT 06484, USA.
> Tel: (203) 925 - 2480
> Email: meenakshi.musale@gexpro.com
>
>
> ________________________________
> From: Rob Sargent [mailto:rsargent@xmission.com]
> Sent: Tuesday, June 26, 2012 8:22 AM
> To:
> fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.o
> rg>
> Subject: Re: Help needed on Image rendering
>
> Show the fo (xml) you are feeding to fop.
> Show the actual error message.
> Show your configuration.
> Show which type of images work, which don't.
>
> On 06/26/2012 06:15 AM, Musale, Meenakshi - GEXPRO wrote:
> Hi,
>
> I am facing random issues with image rendering while PDF generation
> with FOP 1.0 version.
>
> Some images are coming properly but some of them are not. Images are
> present in location but still it gives exception :"Image not found"
>
> Please let me know where I can subscribe to solve my issue. Any help
> will be appreciated.
>
>
> Regards,
> Meenakshi Musale
> Web Operations
> IGate Americas Inc
> Gexpro, 1000 Bridgeport Avenue.
> Shelton, CT 06484, USA.
> Tel: (203) 925 - 2480
> Email: meenakshi.musale@gexpro.com
>
>
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
RE: Help needed on Image rendering
Posted by Robert Meyer <rm...@hotmail.co.uk>.
Hello,
I took a slightly different approach to Luis and created an Eclipse project and ran your code from there. I can confirm Luis's findings and got similar output messages on my console.
I did not make any changes to either the code, XML or XSL apart from changing the image directory location. The only errors I were regarding missing images that were not present in the images directory.
I have attached the generated PDF to this e-mail.
Regards,
Robert Meyer
________________________________
> From: Meenakshi.Musale@gexpro.com
> To: fop-users@xmlgraphics.apache.org
> CC: lmpmbernardo@gmail.com
> Date: Wed, 27 Jun 2012 18:53:18 -0700
> Subject: RE: Help needed on Image rendering
>
>
> Hi,
>
> How did you fix the issue?. can you please elaborate and if possible
> can you send me generated catalog?
>
>
> ________________________________
> From: Luis Bernardo [mailto:lmpmbernardo@gmail.com]
> Sent: Wednesday, June 27, 2012 7:38 PM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: Help needed on Image rendering
>
>
> I used your *.xml and *.xsl files, fixed the image paths, and ran from
> the command line:
>
> macmaxi:code lbernardo$ ../../Documents/fop-1.0/fop -xml test.xml -xsl
> test.xsl -pdf test.pdf 2>&1 | grep SEVERE | sort -u
> SEVERE: Couldn't find hyphenation pattern en
> SEVERE: Image not found. URI: images/GES316847483.jpg. (No context info
> available)
> SEVERE: Image not found. URI: images/Gexpro.jpg. (No context info available)
> macmaxi:code lbernardo$ ls -l images/GES316847483.jpg
> ls: images/GES316847483.jpg: No such file or directory
> macmaxi:code lbernardo$ ls -l images/GES316847483.jpg
> ls: images/GES316847483.jpg: No such file or directory
>
> So, only two images could not be found and they are not in the zip you
> sent. The resulting PDF is a catalog of 679 pages.
>
> On 6/27/12 8:51 PM, Musale, Meenakshi - GEXPRO wrote:
> As an FYI..
> I am using below jars.
>
> 1. avalon-framework-4.2.0.jar
> 2. barcode4j.jar
> 3. barcode4j-fop-ext.jar
> 4. barcode4j-fop-ext-complete.jar
> 5. batik-all-1.7.jar
> 6. classes12.jar
> 7. commons-io-1.3.1.jar
> 8.commons-logging-1.0.4.jar
> 9.fop.jar
> 10. fop-hyph.jar
> 11. serializer-2.7.0.jar
> 12. xalan-2.7.0.jar
> 13. xercesImpl-2.7.1.jar
> 14. xml-apis-1.3.04.jar
> 15. xml-apis-ext-1.3.04.jar
> 16. xmlgraphics-commons-1.4.jar
>
>
> Regards,
> Meenakshi Musale
> Web Operations
> IGate Americas Inc
> Gexpro, 1000 Bridgeport Avenue.
> Shelton, CT 06484, USA.
> Tel: (203) 925 - 2480
> Email: meenakshi.musale@gexpro.com
>
>
> ________________________________
> From: Musale, Meenakshi - GEXPRO
> Sent: Wednesday, June 27, 2012 3:04 PM
> To: 'Rob Sargent'
> Cc: fop-users@xmlgraphics.apache.org<ma...@xmlgraphics.apache.org>
> Subject: RE: Help needed on Image rendering
>
> Hi Rob,
>
> I am sorry which files are you asking, image file or any other file?
>
> If you are asking about image file then, yes these files exist and no
> zero length files. I had attached image zip in my previous email which
> are being used in xml file.
>
> Regards,
> Meenakshi Musale
> Web Operations
> IGate Americas Inc
> Gexpro, 1000 Bridgeport Avenue.
> Shelton, CT 06484, USA.
> Tel: (203) 925 - 2480
> Email: meenakshi.musale@gexpro.com
>
>
> ________________________________
> From: Rob Sargent [mailto:rsargent@xmission.com]
> Sent: Wednesday, June 27, 2012 2:56 PM
> To: Musale, Meenakshi - GEXPRO
> Cc: fop-users@xmlgraphics.apache.org<ma...@xmlgraphics.apache.org>
> Subject: Re: Help needed on Image rendering
>
> Can you show that the file(s) do(es) in fact exist? And that they are
> no zero-length files?
>
> On 06/27/2012 12:34 PM, Musale, Meenakshi - GEXPRO wrote:
> Hi Rob,
>
> Attached "code.zip" contains
> 1. xml file which is having data used for PDF generation.
> 2. xsl file which has FOP tags for generating PDF.
> 3. Java code which in which xml, xsl is used to generate PDF.
>
> I am using FOP1.0 version and the type of image is jpg.
>
> Actual error message in log like
>
> "org.apache.fop.fo.flow.ExternalGraphic bind
> SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg"
>
> Jun 27, 2012 12:20:23 PM org.apache.fop.render.pdf.PDFRenderer putImage
> SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg
>
> I have done testing with various scenarios and did compressed images
> but still some of the images not coming up properly.
> In the attached XML file almost 1570 number of images being used among
> that 50 + images blanks out.
>
> Please let me know if need any help.
>
>
> Regards,
> Meenakshi Musale
> Web Operations
> IGate Americas Inc
> Gexpro, 1000 Bridgeport Avenue.
> Shelton, CT 06484, USA.
> Tel: (203) 925 - 2480
> Email: meenakshi.musale@gexpro.com
>
>
> ________________________________
> From: Rob Sargent [mailto:rsargent@xmission.com]
> Sent: Tuesday, June 26, 2012 8:22 AM
> To: fop-users@xmlgraphics.apache.org<ma...@xmlgraphics.apache.org>
> Subject: Re: Help needed on Image rendering
>
> Show the fo (xml) you are feeding to fop.
> Show the actual error message.
> Show your configuration.
> Show which type of images work, which don't.
>
> On 06/26/2012 06:15 AM, Musale, Meenakshi - GEXPRO wrote:
> Hi,
>
> I am facing random issues with image rendering while PDF generation
> with FOP 1.0 version.
>
> Some images are coming properly but some of them are not. Images are
> present in location but still it gives exception :"Image not found"
>
> Please let me know where I can subscribe to solve my issue. Any help
> will be appreciated.
>
>
> Regards,
> Meenakshi Musale
> Web Operations
> IGate Americas Inc
> Gexpro, 1000 Bridgeport Avenue.
> Shelton, CT 06484, USA.
> Tel: (203) 925 - 2480
> Email: meenakshi.musale@gexpro.com
>
>
>
>
>
>
>
RE: Help needed on Image rendering
Posted by "Musale, Meenakshi - GEXPRO" <Me...@gexpro.com>.
Hi,
How did you fix the issue?. can you please elaborate and if possible can you send me generated catalog?
________________________________
From: Luis Bernardo [mailto:lmpmbernardo@gmail.com]
Sent: Wednesday, June 27, 2012 7:38 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Help needed on Image rendering
I used your *.xml and *.xsl files, fixed the image paths, and ran from the command line:
macmaxi:code lbernardo$ ../../Documents/fop-1.0/fop -xml test.xml -xsl test.xsl -pdf test.pdf 2>&1 | grep SEVERE | sort -u
SEVERE: Couldn't find hyphenation pattern en
SEVERE: Image not found. URI: images/GES316847483.jpg. (No context info available)
SEVERE: Image not found. URI: images/Gexpro.jpg. (No context info available)
macmaxi:code lbernardo$ ls -l images/GES316847483.jpg
ls: images/GES316847483.jpg: No such file or directory
macmaxi:code lbernardo$ ls -l images/GES316847483.jpg
ls: images/GES316847483.jpg: No such file or directory
So, only two images could not be found and they are not in the zip you sent. The resulting PDF is a catalog of 679 pages.
On 6/27/12 8:51 PM, Musale, Meenakshi - GEXPRO wrote:
As an FYI..
I am using below jars.
1. avalon-framework-4.2.0.jar
2. barcode4j.jar
3. barcode4j-fop-ext.jar
4. barcode4j-fop-ext-complete.jar
5. batik-all-1.7.jar
6. classes12.jar
7. commons-io-1.3.1.jar
8.commons-logging-1.0.4.jar
9.fop.jar
10. fop-hyph.jar
11. serializer-2.7.0.jar
12. xalan-2.7.0.jar
13. xercesImpl-2.7.1.jar
14. xml-apis-1.3.04.jar
15. xml-apis-ext-1.3.04.jar
16. xmlgraphics-commons-1.4.jar
Regards,
Meenakshi Musale
Web Operations
IGate Americas Inc
Gexpro, 1000 Bridgeport Avenue.
Shelton, CT 06484, USA.
Tel: (203) 925 - 2480
Email: meenakshi.musale@gexpro.com<bl...@gexpro.com>
________________________________
From: Musale, Meenakshi - GEXPRO
Sent: Wednesday, June 27, 2012 3:04 PM
To: 'Rob Sargent'
Cc: fop-users@xmlgraphics.apache.org<ma...@xmlgraphics.apache.org>
Subject: RE: Help needed on Image rendering
Hi Rob,
I am sorry which files are you asking, image file or any other file?
If you are asking about image file then, yes these files exist and no zero length files. I had attached image zip in my previous email which are being used in xml file.
Regards,
Meenakshi Musale
Web Operations
IGate Americas Inc
Gexpro, 1000 Bridgeport Avenue.
Shelton, CT 06484, USA.
Tel: (203) 925 - 2480
Email: meenakshi.musale@gexpro.com<bl...@gexpro.com>
________________________________
From: Rob Sargent [mailto:rsargent@xmission.com]
Sent: Wednesday, June 27, 2012 2:56 PM
To: Musale, Meenakshi - GEXPRO
Cc: fop-users@xmlgraphics.apache.org<ma...@xmlgraphics.apache.org>
Subject: Re: Help needed on Image rendering
Can you show that the file(s) do(es) in fact exist? And that they are no zero-length files?
On 06/27/2012 12:34 PM, Musale, Meenakshi - GEXPRO wrote:
Hi Rob,
Attached "code.zip" contains
1. xml file which is having data used for PDF generation.
2. xsl file which has FOP tags for generating PDF.
3. Java code which in which xml, xsl is used to generate PDF.
I am using FOP1.0 version and the type of image is jpg.
Actual error message in log like
"org.apache.fop.fo.flow.ExternalGraphic bind
SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg"
Jun 27, 2012 12:20:23 PM org.apache.fop.render.pdf.PDFRenderer putImage
SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg
I have done testing with various scenarios and did compressed images but still some of the images not coming up properly.
In the attached XML file almost 1570 number of images being used among that 50 + images blanks out.
Please let me know if need any help.
Regards,
Meenakshi Musale
Web Operations
IGate Americas Inc
Gexpro, 1000 Bridgeport Avenue.
Shelton, CT 06484, USA.
Tel: (203) 925 - 2480
Email: meenakshi.musale@gexpro.com<bl...@gexpro.com>
________________________________
From: Rob Sargent [mailto:rsargent@xmission.com]
Sent: Tuesday, June 26, 2012 8:22 AM
To: fop-users@xmlgraphics.apache.org<ma...@xmlgraphics.apache.org>
Subject: Re: Help needed on Image rendering
Show the fo (xml) you are feeding to fop.
Show the actual error message.
Show your configuration.
Show which type of images work, which don't.
On 06/26/2012 06:15 AM, Musale, Meenakshi - GEXPRO wrote:
Hi,
I am facing random issues with image rendering while PDF generation with FOP 1.0 version.
Some images are coming properly but some of them are not. Images are present in location but still it gives exception :"Image not found"
Please let me know where I can subscribe to solve my issue. Any help will be appreciated.
Regards,
Meenakshi Musale
Web Operations
IGate Americas Inc
Gexpro, 1000 Bridgeport Avenue.
Shelton, CT 06484, USA.
Tel: (203) 925 - 2480
Email: meenakshi.musale@gexpro.com<bl...@gexpro.com>
Re: Help needed on Image rendering
Posted by Luis Bernardo <lm...@gmail.com>.
I used your *.xml and *.xsl files, fixed the image paths, and ran from
the command line:
macmaxi:code lbernardo$ ../../Documents/fop-1.0/fop -xml test.xml -xsl
test.xsl -pdf test.pdf 2>&1 | grep SEVERE | sort -u
SEVERE: Couldn't find hyphenation pattern en
SEVERE: Image not found. URI: images/GES316847483.jpg. (No context info
available)
SEVERE: Image not found. URI: images/Gexpro.jpg. (No context info available)
macmaxi:code lbernardo$ ls -l images/GES316847483.jpg
ls: images/GES316847483.jpg: No such file or directory
macmaxi:code lbernardo$ ls -l images/GES316847483.jpg
ls: images/GES316847483.jpg: No such file or directory
So, only two images could not be found and they are not in the zip you
sent. The resulting PDF is a catalog of 679 pages.
On 6/27/12 8:51 PM, Musale, Meenakshi - GEXPRO wrote:
> As an FYI..
> I am using below jars.
> 1. avalon-framework-4.2.0.jar
> 2. barcode4j.jar
> 3. barcode4j-fop-ext.jar
> 4. barcode4j-fop-ext-complete.jar
> 5. batik-all-1.7.jar
> 6. classes12.jar
> 7. commons-io-1.3.1.jar
> 8.commons-logging-1.0.4.jar
> 9.fop.jar
> 10. fop-hyph.jar
> 11. serializer-2.7.0.jar
> 12. xalan-2.7.0.jar
> 13. xercesImpl-2.7.1.jar
> 14. xml-apis-1.3.04.jar
> 15. xml-apis-ext-1.3.04.jar
> 16. xmlgraphics-commons-1.4.jar
> *Regards,*
> **
> **
> *Meenakshi Musale*
> Web Operations
> IGate Americas Inc
> Gexpro, 1000 Bridgeport Avenue.
> Shelton, CT 06484, USA.
> Tel: (203) 925 - 2480
> Email: meenakshi.musale@gexpro.com
> <bl...@gexpro.com>
>
> ------------------------------------------------------------------------
> *From:* Musale, Meenakshi - GEXPRO
> *Sent:* Wednesday, June 27, 2012 3:04 PM
> *To:* 'Rob Sargent'
> *Cc:* fop-users@xmlgraphics.apache.org
> *Subject:* RE: Help needed on Image rendering
>
> Hi Rob,
> I am sorry which files are you asking, image file or any other file?
> If you are asking about image file then, yes these files exist and no
> zero length files. I had attached image zip in my previous email which
> are being used in xml file.
> *Regards,*
> **
> **
> *Meenakshi Musale*
> Web Operations
> IGate Americas Inc
> Gexpro, 1000 Bridgeport Avenue.
> Shelton, CT 06484, USA.
> Tel: (203) 925 - 2480
> Email: meenakshi.musale@gexpro.com
> <bl...@gexpro.com>
>
> ------------------------------------------------------------------------
> *From:* Rob Sargent [mailto:rsargent@xmission.com]
> *Sent:* Wednesday, June 27, 2012 2:56 PM
> *To:* Musale, Meenakshi - GEXPRO
> *Cc:* fop-users@xmlgraphics.apache.org
> *Subject:* Re: Help needed on Image rendering
>
> Can you show that the file(s) do(es) in fact exist? And that they are
> no zero-length files?
>
> On 06/27/2012 12:34 PM, Musale, Meenakshi - GEXPRO wrote:
>> Hi Rob,
>> Attached "code.zip" contains
>> 1. xml file which is having data used for PDF generation.
>> 2. xsl file which has FOP tags for generating PDF.
>> 3. Java code which in which xml, xsl is used to generate PDF.
>> I am using FOP1.0 version and the type of image is jpg.
>> Actual error message in log like
>> "org.apache.fop.fo.flow.ExternalGraphic bind
>> SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg"
>> Jun 27, 2012 12:20:23 PM org.apache.fop.render.pdf.PDFRenderer putImage
>> SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg
>> I have done testing with various scenarios and did compressed images
>> but still some of the images not coming up properly.
>> In the attached XML file almost 1570 number of images being used
>> among that 50 + images blanks out.
>> Please let me know if need any help.
>> *Regards,*
>> **
>> **
>> *Meenakshi Musale*
>> Web Operations
>> IGate Americas Inc
>> Gexpro, 1000 Bridgeport Avenue.
>> Shelton, CT 06484, USA.
>> Tel: (203) 925 - 2480
>> Email: meenakshi.musale@gexpro.com
>> <bl...@gexpro.com>
>>
>> ------------------------------------------------------------------------
>> *From:* Rob Sargent [mailto:rsargent@xmission.com]
>> *Sent:* Tuesday, June 26, 2012 8:22 AM
>> *To:* fop-users@xmlgraphics.apache.org
>> *Subject:* Re: Help needed on Image rendering
>>
>> Show the fo (xml) you are feeding to fop.
>> Show the actual error message.
>> Show your configuration.
>> Show which type of images work, which don't.
>>
>> On 06/26/2012 06:15 AM, Musale, Meenakshi - GEXPRO wrote:
>>> Hi,
>>> I am facing random issues with image rendering while PDF generation
>>> with FOP 1.0 version.
>>> Some images are coming properly but some of them are not. Images are
>>> present in location but still it gives exception :"Image not found"
>>> Please let me know where I can subscribe to solve my issue. Any help
>>> will be appreciated.
>>> *Regards,*
>>> **
>>> **
>>> *Meenakshi Musale*
>>> Web Operations
>>> IGate Americas Inc
>>> Gexpro, 1000 Bridgeport Avenue.
>>> Shelton, CT 06484, USA.
>>> Tel: (203) 925 - 2480
>>> Email: meenakshi.musale@gexpro.com
>>> <bl...@gexpro.com>
>>
>>
>
>
RE: Help needed on Image rendering
Posted by "Musale, Meenakshi - GEXPRO" <Me...@gexpro.com>.
As an FYI..
I am using below jars.
1. avalon-framework-4.2.0.jar
2. barcode4j.jar
3. barcode4j-fop-ext.jar
4. barcode4j-fop-ext-complete.jar
5. batik-all-1.7.jar
6. classes12.jar
7. commons-io-1.3.1.jar
8.commons-logging-1.0.4.jar
9.fop.jar
10. fop-hyph.jar
11. serializer-2.7.0.jar
12. xalan-2.7.0.jar
13. xercesImpl-2.7.1.jar
14. xml-apis-1.3.04.jar
15. xml-apis-ext-1.3.04.jar
16. xmlgraphics-commons-1.4.jar
Regards,
Meenakshi Musale
Web Operations
IGate Americas Inc
Gexpro, 1000 Bridgeport Avenue.
Shelton, CT 06484, USA.
Tel: (203) 925 - 2480
Email: meenakshi.musale@gexpro.com<bl...@gexpro.com>
________________________________
From: Musale, Meenakshi - GEXPRO
Sent: Wednesday, June 27, 2012 3:04 PM
To: 'Rob Sargent'
Cc: fop-users@xmlgraphics.apache.org
Subject: RE: Help needed on Image rendering
Hi Rob,
I am sorry which files are you asking, image file or any other file?
If you are asking about image file then, yes these files exist and no zero length files. I had attached image zip in my previous email which are being used in xml file.
Regards,
Meenakshi Musale
Web Operations
IGate Americas Inc
Gexpro, 1000 Bridgeport Avenue.
Shelton, CT 06484, USA.
Tel: (203) 925 - 2480
Email: meenakshi.musale@gexpro.com<bl...@gexpro.com>
________________________________
From: Rob Sargent [mailto:rsargent@xmission.com]
Sent: Wednesday, June 27, 2012 2:56 PM
To: Musale, Meenakshi - GEXPRO
Cc: fop-users@xmlgraphics.apache.org
Subject: Re: Help needed on Image rendering
Can you show that the file(s) do(es) in fact exist? And that they are no zero-length files?
On 06/27/2012 12:34 PM, Musale, Meenakshi - GEXPRO wrote:
Hi Rob,
Attached "code.zip" contains
1. xml file which is having data used for PDF generation.
2. xsl file which has FOP tags for generating PDF.
3. Java code which in which xml, xsl is used to generate PDF.
I am using FOP1.0 version and the type of image is jpg.
Actual error message in log like
"org.apache.fop.fo.flow.ExternalGraphic bind
SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg"
Jun 27, 2012 12:20:23 PM org.apache.fop.render.pdf.PDFRenderer putImage
SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg
I have done testing with various scenarios and did compressed images but still some of the images not coming up properly.
In the attached XML file almost 1570 number of images being used among that 50 + images blanks out.
Please let me know if need any help.
Regards,
Meenakshi Musale
Web Operations
IGate Americas Inc
Gexpro, 1000 Bridgeport Avenue.
Shelton, CT 06484, USA.
Tel: (203) 925 - 2480
Email: meenakshi.musale@gexpro.com<bl...@gexpro.com>
________________________________
From: Rob Sargent [mailto:rsargent@xmission.com]
Sent: Tuesday, June 26, 2012 8:22 AM
To: fop-users@xmlgraphics.apache.org<ma...@xmlgraphics.apache.org>
Subject: Re: Help needed on Image rendering
Show the fo (xml) you are feeding to fop.
Show the actual error message.
Show your configuration.
Show which type of images work, which don't.
On 06/26/2012 06:15 AM, Musale, Meenakshi - GEXPRO wrote:
Hi,
I am facing random issues with image rendering while PDF generation with FOP 1.0 version.
Some images are coming properly but some of them are not. Images are present in location but still it gives exception :"Image not found"
Please let me know where I can subscribe to solve my issue. Any help will be appreciated.
Regards,
Meenakshi Musale
Web Operations
IGate Americas Inc
Gexpro, 1000 Bridgeport Avenue.
Shelton, CT 06484, USA.
Tel: (203) 925 - 2480
Email: meenakshi.musale@gexpro.com<bl...@gexpro.com>
RE: Help needed on Image rendering
Posted by "Musale, Meenakshi - GEXPRO" <Me...@gexpro.com>.
Hi Rob,
I am sorry which files are you asking, image file or any other file?
If you are asking about image file then, yes these files exist and no zero length files. I had attached image zip in my previous email which are being used in xml file.
Regards,
Meenakshi Musale
Web Operations
IGate Americas Inc
Gexpro, 1000 Bridgeport Avenue.
Shelton, CT 06484, USA.
Tel: (203) 925 - 2480
Email: meenakshi.musale@gexpro.com<bl...@gexpro.com>
________________________________
From: Rob Sargent [mailto:rsargent@xmission.com]
Sent: Wednesday, June 27, 2012 2:56 PM
To: Musale, Meenakshi - GEXPRO
Cc: fop-users@xmlgraphics.apache.org
Subject: Re: Help needed on Image rendering
Can you show that the file(s) do(es) in fact exist? And that they are no zero-length files?
On 06/27/2012 12:34 PM, Musale, Meenakshi - GEXPRO wrote:
Hi Rob,
Attached "code.zip" contains
1. xml file which is having data used for PDF generation.
2. xsl file which has FOP tags for generating PDF.
3. Java code which in which xml, xsl is used to generate PDF.
I am using FOP1.0 version and the type of image is jpg.
Actual error message in log like
"org.apache.fop.fo.flow.ExternalGraphic bind
SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg"
Jun 27, 2012 12:20:23 PM org.apache.fop.render.pdf.PDFRenderer putImage
SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg
I have done testing with various scenarios and did compressed images but still some of the images not coming up properly.
In the attached XML file almost 1570 number of images being used among that 50 + images blanks out.
Please let me know if need any help.
Regards,
Meenakshi Musale
Web Operations
IGate Americas Inc
Gexpro, 1000 Bridgeport Avenue.
Shelton, CT 06484, USA.
Tel: (203) 925 - 2480
Email: meenakshi.musale@gexpro.com<bl...@gexpro.com>
________________________________
From: Rob Sargent [mailto:rsargent@xmission.com]
Sent: Tuesday, June 26, 2012 8:22 AM
To: fop-users@xmlgraphics.apache.org<ma...@xmlgraphics.apache.org>
Subject: Re: Help needed on Image rendering
Show the fo (xml) you are feeding to fop.
Show the actual error message.
Show your configuration.
Show which type of images work, which don't.
On 06/26/2012 06:15 AM, Musale, Meenakshi - GEXPRO wrote:
Hi,
I am facing random issues with image rendering while PDF generation with FOP 1.0 version.
Some images are coming properly but some of them are not. Images are present in location but still it gives exception :"Image not found"
Please let me know where I can subscribe to solve my issue. Any help will be appreciated.
Regards,
Meenakshi Musale
Web Operations
IGate Americas Inc
Gexpro, 1000 Bridgeport Avenue.
Shelton, CT 06484, USA.
Tel: (203) 925 - 2480
Email: meenakshi.musale@gexpro.com<bl...@gexpro.com>
Re: Help needed on Image rendering
Posted by Rob Sargent <rs...@xmission.com>.
Can you show that the file(s) do(es) in fact exist? And that they are no
zero-length files?
On 06/27/2012 12:34 PM, Musale, Meenakshi - GEXPRO wrote:
> Hi Rob,
> Attached "code.zip" contains
> 1. xml file which is having data used for PDF generation.
> 2. xsl file which has FOP tags for generating PDF.
> 3. Java code which in which xml, xsl is used to generate PDF.
> I am using FOP1.0 version and the type of image is jpg.
> Actual error message in log like
> "org.apache.fop.fo.flow.ExternalGraphic bind
> SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg"
> Jun 27, 2012 12:20:23 PM org.apache.fop.render.pdf.PDFRenderer putImage
> SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg
> I have done testing with various scenarios and did compressed images
> but still some of the images not coming up properly.
> In the attached XML file almost 1570 number of images being used among
> that 50 + images blanks out.
> Please let me know if need any help.
> *Regards,*
> **
> **
> *Meenakshi Musale*
> Web Operations
> IGate Americas Inc
> Gexpro, 1000 Bridgeport Avenue.
> Shelton, CT 06484, USA.
> Tel: (203) 925 - 2480
> Email: meenakshi.musale@gexpro.com
> <bl...@gexpro.com>
>
> ------------------------------------------------------------------------
> *From:* Rob Sargent [mailto:rsargent@xmission.com]
> *Sent:* Tuesday, June 26, 2012 8:22 AM
> *To:* fop-users@xmlgraphics.apache.org
> *Subject:* Re: Help needed on Image rendering
>
> Show the fo (xml) you are feeding to fop.
> Show the actual error message.
> Show your configuration.
> Show which type of images work, which don't.
>
> On 06/26/2012 06:15 AM, Musale, Meenakshi - GEXPRO wrote:
>> Hi,
>> I am facing random issues with image rendering while PDF generation
>> with FOP 1.0 version.
>> Some images are coming properly but some of them are not. Images are
>> present in location but still it gives exception :"Image not found"
>> Please let me know where I can subscribe to solve my issue. Any help
>> will be appreciated.
>> *Regards,*
>> **
>> **
>> *Meenakshi Musale*
>> Web Operations
>> IGate Americas Inc
>> Gexpro, 1000 Bridgeport Avenue.
>> Shelton, CT 06484, USA.
>> Tel: (203) 925 - 2480
>> Email: meenakshi.musale@gexpro.com
>> <bl...@gexpro.com>
>
>
RE: Help needed on Image rendering
Posted by "Musale, Meenakshi - GEXPRO" <Me...@gexpro.com>.
Hi Rob,
Attached "code.zip" contains
1. xml file which is having data used for PDF generation.
2. xsl file which has FOP tags for generating PDF.
3. Java code which in which xml, xsl is used to generate PDF.
I am using FOP1.0 version and the type of image is jpg.
Actual error message in log like
"org.apache.fop.fo.flow.ExternalGraphic bind
SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg"
Jun 27, 2012 12:20:23 PM org.apache.fop.render.pdf.PDFRenderer putImage
SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg
I have done testing with various scenarios and did compressed images but still some of the images not coming up properly.
In the attached XML file almost 1570 number of images being used among that 50 + images blanks out.
Please let me know if need any help.
Regards,
Meenakshi Musale
Web Operations
IGate Americas Inc
Gexpro, 1000 Bridgeport Avenue.
Shelton, CT 06484, USA.
Tel: (203) 925 - 2480
Email: meenakshi.musale@gexpro.com<bl...@gexpro.com>
________________________________
From: Rob Sargent [mailto:rsargent@xmission.com]
Sent: Tuesday, June 26, 2012 8:22 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Help needed on Image rendering
Show the fo (xml) you are feeding to fop.
Show the actual error message.
Show your configuration.
Show which type of images work, which don't.
On 06/26/2012 06:15 AM, Musale, Meenakshi - GEXPRO wrote:
Hi,
I am facing random issues with image rendering while PDF generation with FOP 1.0 version.
Some images are coming properly but some of them are not. Images are present in location but still it gives exception :"Image not found"
Please let me know where I can subscribe to solve my issue. Any help will be appreciated.
Regards,
Meenakshi Musale
Web Operations
IGate Americas Inc
Gexpro, 1000 Bridgeport Avenue.
Shelton, CT 06484, USA.
Tel: (203) 925 - 2480
Email: meenakshi.musale@gexpro.com<bl...@gexpro.com>
Re: Help needed on Image rendering
Posted by Rob Sargent <rs...@xmission.com>.
Show the fo (xml) you are feeding to fop.
Show the actual error message.
Show your configuration.
Show which type of images work, which don't.
On 06/26/2012 06:15 AM, Musale, Meenakshi - GEXPRO wrote:
> Hi,
> I am facing random issues with image rendering while PDF generation
> with FOP 1.0 version.
> Some images are coming properly but some of them are not. Images are
> present in location but still it gives exception :"Image not found"
> Please let me know where I can subscribe to solve my issue. Any help
> will be appreciated.
> *Regards,*
> **
> **
> *Meenakshi Musale*
> Web Operations
> IGate Americas Inc
> Gexpro, 1000 Bridgeport Avenue.
> Shelton, CT 06484, USA.
> Tel: (203) 925 - 2480
> Email: meenakshi.musale@gexpro.com
> <bl...@gexpro.com>
Re: Help needed on Image rendering
Posted by "David J. B. Hollis" <dh...@AandOConsultancy.ltd.uk>.
Hi,
What image type? SVG, by any chance?
David
> Hi,
>
> I am facing random issues with image rendering while PDF generation
> with FOP 1.0 version.
>
> Some images are coming properly but some of them are not. Images are
> present in location but still it gives exception :"Image not found"
>
> Please let me know where I can subscribe to solve my issue. Any help
> will be appreciated.
>
>
> Regards,
> Meenakshi Musale
> Web Operations
> IGate Americas Inc
> Gexpro, 1000 Bridgeport Avenue.
> Shelton, CT 06484, USA.
> Tel: (203) 925 - 2480
> Email: meenakshi.musale@gexpro.com
>