hi all,

Good Day!!!

i have read lots about images in PDF and have successfully 
displayed an image already however i noticed on my system that it 
could not accommodate an image greater than 60kb to 70kb of size, 
what happens is i get an empty pdf file when the image size goes 
higher than mentioned.

before creating the xml file i call: 

~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
org.apache.fop.image.FopImageFactory.resetCache(); 
~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=


as mentioned on one of the docs frees up memory to accommodate 
image transactions. now on the XML file here is what i use:


~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
<figure><photo 
image="http://FQDN/images/drawings/B747/ThisIsATest-1234-
5678/.061_67-11-018-Sht5_RevA.jpg"/></figure>
~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=


and on the XSL file:


~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
<xsl:template match="figure">
  <fo:block>
    <xsl:apply-templates/>
  </fo:block>
</xsl:template>

<xsl:template match="photo">
  <fo:block text-align="center">
    <fo:external-graphic src="[EMAIL PROTECTED]"/>
  </fo:block>
</xsl:template>
~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=


my system runs on a Pentium 3 800Mhz with 256Mb RAM having:


~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
Operating System: Linux RedHat 7.2 
Java: j2sdk1.4
Tomcat: jakarta-tomcat-4.1.27
FOP: fop-0.20.5
Cocoon: cocoon-2.1.2
~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=


ok where does this all boil down to? ... Image Quality... when i lower 
down the image file size to 60Kb all the small figures, numbers and 
tables get blurry to the point that even when the document gets 
printed those small numbers could not be read anymore not to 
mention the actual drawings/diagrams.... the original file size with 
good quality could go up to 17x11inches in dimension @ 100 ppi 
quality = 400Kb file size.... imagine bringing that down to 60Kbto 
70Kb... i was hoping if anyone has a workaround for this case so as 
i could still maintain the sharpness in detail of the images attached 
in the PDF file... herewith i also attach the 60kb image for a better 
view of the quality disintegration thanks for the attention... all the 
best!!!

pal,
benjohn
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any another MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

   ---- File information -----------
     File:  061_67-11-018-Sht1-RevA0001.gif
     Date:  24 Dec 2003, 11:40
     Size:  60456 bytes.
     Type:  GIF-image

<<attachment: 061_67-11-018-Sht1-RevA0001.gif>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to