Re: Problem generating PDF from tifs with zero dpi

2011-11-29 Thread qns.java

Hi

I had problems with zero dpi tiffs as there was a bug in apache xmlgraphics
code which threw an IllegalStateException for zero resolution instead of
Using source resolution set on 'FOPFactory', this has been fixed in
xmlgraphics trunk and I have used it in my code to fix the issue.

 Thankyou

lmpmbernardo wrote:
 
 I would use imagemagik then from the command line:
 
 convert old.tif -density 300 new.tif
 
 On Thu, Nov 24, 2011 at 10:46 AM, qns.java qns.j...@gmail.com wrote:

 Hi

 The problem is, there is a huge bulk of Images that have this problem and
 I
 only have read access to these Images.I get the Image Locations from
 database and embed them in xml to pass on to FOP.I was trying to find out
 with the existing infrastructure how can I be able to generate a pdf.

 thankyou


 qns.java wrote:

 Hi

 I am using Apache FOP to generate PDF from jpegs and tifs.When
 generating
 pdf from tifs which have a dpi of 0 an IllegalStateException :
 resolution
 mus be set is thrown.

 I tried setting source resolution to 96dpi on FOPFactory ,but that did
 not
 work.I am using FOP 0.95.

 Please advise what I am missing to do.

 Thankyou


 --
 View this message in context:
 http://old.nabble.com/Problem-generating-PDF-from-tifs-with-zero-dpi-tp32874297p32875054.html
 Sent from the FOP - Users mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://old.nabble.com/Problem-generating-PDF-from-tifs-with-zero-dpi-tp32874297p32880515.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: Problem generating PDF from tifs with zero dpi

2011-11-24 Thread qns.java

Hi

The problem is, there is a huge bulk of Images that have this problem and I
only have read access to these Images.I get the Image Locations from
database and embed them in xml to pass on to FOP.I was trying to find out
with the existing infrastructure how can I be able to generate a pdf.

thankyou


qns.java wrote:
 
 Hi
 
 I am using Apache FOP to generate PDF from jpegs and tifs.When generating
 pdf from tifs which have a dpi of 0 an IllegalStateException : resolution
 mus be set is thrown.
 
 I tried setting source resolution to 96dpi on FOPFactory ,but that did not
 work.I am using FOP 0.95.
 
 Please advise what I am missing to do.
 
 Thankyou
 

-- 
View this message in context: 
http://old.nabble.com/Problem-generating-PDF-from-tifs-with-zero-dpi-tp32874297p32875054.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: Problem generating PDF from tifs with zero dpi

2011-11-24 Thread Luis Bernardo
I would use imagemagik then from the command line:

convert old.tif -density 300 new.tif

On Thu, Nov 24, 2011 at 10:46 AM, qns.java qns.j...@gmail.com wrote:

 Hi

 The problem is, there is a huge bulk of Images that have this problem and I
 only have read access to these Images.I get the Image Locations from
 database and embed them in xml to pass on to FOP.I was trying to find out
 with the existing infrastructure how can I be able to generate a pdf.

 thankyou


 qns.java wrote:

 Hi

 I am using Apache FOP to generate PDF from jpegs and tifs.When generating
 pdf from tifs which have a dpi of 0 an IllegalStateException : resolution
 mus be set is thrown.

 I tried setting source resolution to 96dpi on FOPFactory ,but that did not
 work.I am using FOP 0.95.

 Please advise what I am missing to do.

 Thankyou


 --
 View this message in context: 
 http://old.nabble.com/Problem-generating-PDF-from-tifs-with-zero-dpi-tp32874297p32875054.html
 Sent from the FOP - Users mailing list archive at Nabble.com.


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



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



Re: Problem generating PDF from tifs with zero dpi

2011-11-23 Thread Luis Bernardo


Have you tried setting the dpi in the image to something meaningful?  
You can use Gimp for that (assuming it will not choke with such image): 
Image -- Print Size..., and then set Resolution.


Luis

On 11/23/11 4:51 PM, qns.java wrote:

Hi

I am using Apache FOP to generate PDF from jpegs and tifs.When generating
pdf from tifs which have a dpi of 0 an IllegalStateException : resolution
mus be set is thrown.

I tried setting source resolution to 96dpi on FOPFactory ,but that did not
work.I am using FOP 0.95.

Please advise what I am missing to do.

Thankyou



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