Re: Tables breaking borders in 0.92beta

2006-11-01 Thread Manuel Mall
On Thursday 02 November 2006 08:57, Jay Bryant wrote:
> Hi, all,
>

Jay,

have you tried with border-collapse="separate" because fop doesn't 
support collapsing borders.

Manuel
> I'm using 0.92beta with DocBook's XSL stylesheets, and I'm getting
> tables that consistently put content across the right-hand border.
>
> I've attached an image that shows the problem, and here's the
> corresponding table in FO:
>
>  border-collapse="collapse" border-left-style="solid"
> border-right-style="solid" border-top-style="solid"
> border-bottom-style="solid" border-left-width="0.5pt"
> border-right-width="0.5pt" border-top-width="0.5pt"
> border-bottom-width="0.5pt" border-left-color="black"
> border-right-color="black" border-top-color="black"
> border-bottom-color="black" table-layout="fixed" width="100%">
>   
>   
>   
> 
>padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt"
> border-bottom-style="solid" border-bottom-color="black"
> border-right-width="0.5pt" border-right-style="solid"
> border-right-color="black">
> 
>space-before.minimum="0.8em" space-before.maximum="1.2em"> font-style="italic">Italics
> 
>   
>padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt"
> border-bottom-style="solid" border-bottom-color="black">
> 
>space-before.minimum="0.8em" space-before.maximum="1.2em">Italics
> represent placeholders in commands and options for context-sensitive
> values like file names, device types and names, numeric values, etc.
> Chapter and section names are italicized when referenced in the text
> as well.
> 
>   
> 
> 
>padding-top="2pt" padding-bottom="2pt" border-right-width="0.5pt"
> border-right-style="solid" border-right-color="black">
> 
>space-before.minimum="0.8em" space-before.maximum="1.2em"> font-family="monospace">Courier
> 
>   
>padding-top="2pt" padding-bottom="2pt">
> 
>space-before.minimum="0.8em" space-before.maximum="1.2em">Courier is
> used for literal commands and options, and output from the
> computer.
> 
>   
> 
>   
> 
>
> Any ideas?
>
> Thanks.
>
> Jay Bryant
> Bryant Communication Services

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



Tables breaking borders in 0.92beta

2006-11-01 Thread Jay Bryant

Hi, all,

I'm using 0.92beta with DocBook's XSL stylesheets, and I'm getting tables 
that consistently put content across the right-hand border.


I've attached an image that shows the problem, and here's the corresponding 
table in FO:


border-collapse="collapse" border-left-style="solid" 
border-right-style="solid" border-top-style="solid" 
border-bottom-style="solid" border-left-width="0.5pt" 
border-right-width="0.5pt" border-top-width="0.5pt" 
border-bottom-width="0.5pt" border-left-color="black" 
border-right-color="black" border-top-color="black" 
border-bottom-color="black" table-layout="fixed" width="100%">

 
 
 
   
 padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt" 
border-bottom-style="solid" border-bottom-color="black" 
border-right-width="0.5pt" border-right-style="solid" 
border-right-color="black">

   
 space-before.maximum="1.2em">font-style="italic">Italics

   
 
 padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt" 
border-bottom-style="solid" border-bottom-color="black">

   
 space-before.maximum="1.2em">Italics represent placeholders in commands and 
options for context-sensitive values like file names, device types and 
names, numeric values, etc. Chapter and section names are italicized when 
referenced in the text as well.

   
 
   
   
 padding-top="2pt" padding-bottom="2pt" border-right-width="0.5pt" 
border-right-style="solid" border-right-color="black">

   
 space-before.maximum="1.2em">font-family="monospace">Courier

   
 
 padding-top="2pt" padding-bottom="2pt">

   
 space-before.maximum="1.2em">Courier is used for literal commands and 
options, and output from the computer.

   
 
   
 


Any ideas?

Thanks.

Jay Bryant
Bryant Communication Services 


table-border-problem.png
Description: PNG image
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: MIME_TIFF format

2006-11-01 Thread Abel Braaksma

Richard King wrote:

Hi all,
I currently use fop 0.92 to product PDF documents but have had a request to 
also produce a TIFF documents.  To this end I updated my java code so MIME_TIFF 
is used.

The file produced is very large.
The PDF created is 145KB
The equivalent tiff file is 9650KB!

Is there any way to reduce this file size?
Are there any other alternatives I could consider?
I understand that Batik only supports Deflate algorithm. But you may try 
this extension of Apache Fop: TIFFRenderer. It is made to add 
compression capabilities. Not sure if it works with the 0.92 version, though

http://www.tkachenko.com/fop/tiffrenderer.html

Other libraries are around, like LibTIFF (a C library that does what you 
want) and Sun's library for TIFF (com.sun.media.imageio.plugins.tiff, 
not sure of the version). Commercial libs are around too, look for tiff 
compression in google.


-- Abel Braaksma
  http://www.nuntia.com

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



Re: MIME_TIFF format

2006-11-01 Thread Fernando T. Martins Mano

Ok, my confusion here. I said "input TIFF files", forget it, hehe.
There is only TIFF output, then.

I don't know about TIFF compression options INSIDE FOP, but the "plan B" 
solution would be to compress it after you have produced this TIFF 
output in an external tool, such as Gimp or Photoshop.


Does anyone know about TIFF compression options inside FOP?

Thanks,
Fernando

Richard King wrote:

Heya,
Thanks for your quick response.
I am new to all this so may have missed something.

My input consists of some initial XML, XSL:FO and some small JPG images.  I am 
using exactly the same source for both generating PDF's as I am to generate 
TIFF files.

The only thing I am changing is the java implementation so the output will be 
in TIFF format.

Do I have to specify anything in the java or XSL which is specific for TIFF 
files and will help me here?

Cheers,
Richard

Java implementation is as follows:
OutputStream out = new java.io.FileOutputStream(fopOutputDir + fileRoot + 
".tiff");
out = new java.io.BufferedOutputStream(out);
try {
Fop fop = fopFactory.newFop(MimeConstants.MIME_TIFF, userAgent, 
out);

//Setup Transformer
Source xsltSrc = new StreamSource(fopDirectory + xslName);
TransformerFactory transformerFactory = 
TransformerFactory.newInstance();
Transformer transformer = 
transformerFactory.newTransformer(xsltSrc);
Source src = new StreamSource(fopOutputDir + fileRoot + ".xml");

//Make sure the XSL transformation's result is piped through to 
FOP
Result res = new SAXResult(fop.getDefaultHandler());

//Start the transformation and rendering process
transformer.transform(src, res);


-Original Message-
From: Fernando T. Martins Mano [mailto:[EMAIL PROTECTED]
Sent: 01 November 2006 17:03
To: fop-users@xmlgraphics.apache.org
Subject: Re: MIME_TIFF format


Hi,

Have you already tried to compress your input TIFF files? I never used 
this FOP's version, but check if there is any compression options for 
this kind of output.


Using tools as Gimp or Photoshop could easily do this job, as well. 
Using LZW compression would cause a minor impact in the loss of quality 
than JPEG, in your compressed TIFF files.


Probably better suggestions may arise in the list.

Good luck ;-)
Fernando




Richard King wrote:
  

Hi all,
I currently use fop 0.92 to product PDF documents but have had a request to 
also produce a TIFF documents.  To this end I updated my java code so MIME_TIFF 
is used.

The file produced is very large.
The PDF created is 145KB
The equivalent tiff file is 9650KB!

Is there any way to reduce this file size?
Are there any other alternatives I could consider?

Many thanks,
Richard

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



  




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


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



  



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



RE: MIME_TIFF format

2006-11-01 Thread Richard King
Heya,
Thanks for your quick response.
I am new to all this so may have missed something.

My input consists of some initial XML, XSL:FO and some small JPG images.  I am 
using exactly the same source for both generating PDF's as I am to generate 
TIFF files.

The only thing I am changing is the java implementation so the output will be 
in TIFF format.

Do I have to specify anything in the java or XSL which is specific for TIFF 
files and will help me here?

Cheers,
Richard

Java implementation is as follows:
OutputStream out = new java.io.FileOutputStream(fopOutputDir + 
fileRoot + ".tiff");
out = new java.io.BufferedOutputStream(out);
try {
Fop fop = fopFactory.newFop(MimeConstants.MIME_TIFF, userAgent, 
out);

//Setup Transformer
Source xsltSrc = new StreamSource(fopDirectory + xslName);
TransformerFactory transformerFactory = 
TransformerFactory.newInstance();
Transformer transformer = 
transformerFactory.newTransformer(xsltSrc);
Source src = new StreamSource(fopOutputDir + fileRoot + ".xml");

//Make sure the XSL transformation's result is piped through to 
FOP
Result res = new SAXResult(fop.getDefaultHandler());

//Start the transformation and rendering process
transformer.transform(src, res);


-Original Message-
From: Fernando T. Martins Mano [mailto:[EMAIL PROTECTED]
Sent: 01 November 2006 17:03
To: fop-users@xmlgraphics.apache.org
Subject: Re: MIME_TIFF format


Hi,

Have you already tried to compress your input TIFF files? I never used 
this FOP's version, but check if there is any compression options for 
this kind of output.

Using tools as Gimp or Photoshop could easily do this job, as well. 
Using LZW compression would cause a minor impact in the loss of quality 
than JPEG, in your compressed TIFF files.

Probably better suggestions may arise in the list.

Good luck ;-)
Fernando




Richard King wrote:
> Hi all,
> I currently use fop 0.92 to product PDF documents but have had a request to 
> also produce a TIFF documents.  To this end I updated my java code so 
> MIME_TIFF is used.
>
> The file produced is very large.
> The PDF created is 145KB
> The equivalent tiff file is 9650KB!
>
> Is there any way to reduce this file size?
> Are there any other alternatives I could consider?
>
> Many thanks,
> Richard
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>   


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


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



Re: MIME_TIFF format

2006-11-01 Thread Fernando T. Martins Mano

Hi,

Have you already tried to compress your input TIFF files? I never used 
this FOP's version, but check if there is any compression options for 
this kind of output.


Using tools as Gimp or Photoshop could easily do this job, as well. 
Using LZW compression would cause a minor impact in the loss of quality 
than JPEG, in your compressed TIFF files.


Probably better suggestions may arise in the list.

Good luck ;-)
Fernando




Richard King wrote:

Hi all,
I currently use fop 0.92 to product PDF documents but have had a request to 
also produce a TIFF documents.  To this end I updated my java code so MIME_TIFF 
is used.

The file produced is very large.
The PDF created is 145KB
The equivalent tiff file is 9650KB!

Is there any way to reduce this file size?
Are there any other alternatives I could consider?

Many thanks,
Richard

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



  



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



MIME_TIFF format

2006-11-01 Thread Richard King
Hi all,
I currently use fop 0.92 to product PDF documents but have had a request to 
also produce a TIFF documents.  To this end I updated my java code so MIME_TIFF 
is used.

The file produced is very large.
The PDF created is 145KB
The equivalent tiff file is 9650KB!

Is there any way to reduce this file size?
Are there any other alternatives I could consider?

Many thanks,
Richard

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



How to process xhtml form data into pdf document?

2006-11-01 Thread Nielsen, Michael




Hi 
there
 
Im new to FOP and I 
have been searching the web for hours now trying to find a solution the the 
following challenge:
 
I have an XHTML file 
that consists of a scanned gif file and some html form fields that are 
positioned on the xhtml file using css where the positioning of of the fields 
are described. So if you open the xhtml file you can enter data 
directly.
 
My challege is how 
to transform this into xsl:fo?? I have tried to make a block use the image gif 
as background and render text on top of it but no luck. Only the part of the 
image that has text on it is shown. What i need is the full form image to be 
shown and then render the html form data on top of it in the correct positions. 

 
I have also tried to 
use the external-graphics tag to render the image but then I cant position data 
on top of it ;(.
 
So:
 
1) Whats the best 
solution for rendering the full image and position data on top of 
it?
2) How to position 
data on top of the image file?
 
Thanx in 
advance!
 
/Regards 
Michael

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.



RE: How to process xhtml form data into pdf document?

2006-11-01 Thread Nielsen, Michael

Thanx :)

Will do just now!

And thanx for your quick answer..I will definitely look into the below.

Regards
Michael 

-Original Message-
From: Glen Mazza [mailto:[EMAIL PROTECTED] 
Sent: 1. november 2006 15:38
To: general@xmlgraphics.apache.org; fop-users@xmlgraphics.apache.org
Subject: Re: How to process xhtml form data into pdf document?

Oh, by the way, you want to ask these types of questions on
fop-users@xmlgraphics.apache.org, *many* more users there.

Glen

Glen Mazza wrote:

> Jeremias provided a solution[1] to a similar question I had.  Also, I 
> wonder if XForms might be a better option for you--there are some open

> source server-side solutions you might want to look at[2].  (However, 
> I have not yet used XForms myself so am unsure here.)
>
> Glen
>
> [1] http://marc.theaimsgroup.com/?l=fop-user&m=108136796216447&w=2
> [2] http://en.wikipedia.org/wiki/XForms#Software_support
>
>
> Nielsen, Michael wrote:
>
>> Hi there
>>
>> Im new to FOP and I have been searching the web for hours now trying 
>> to find a solution the the following challenge:
>>
>> I have an XHTML file that consists of a scanned gif file and some 
>> html form fields that are positioned on the xhtml file using css 
>> where the positioning of of the fields are described. So if you open 
>> the xhtml file you can enter data directly.
>>
>> My challege is how to transform this into xsl:fo?? I have tried to 
>> make a block use the image gif as background and render text on top 
>> of it but no luck. Only the part of the image that has text on it is 
>> shown. What i need is the full form image to be shown and then render

>> the html form data on top of it in the correct positions.
>> I have also tried to use the external-graphics tag to render the 
>> image but then I cant position data on top of it ;(.
>>
>> So:
>>
>> 1) Whats the best solution for rendering the full image and position 
>> data on top of it?
>> 2) How to position data on top of the image file?
>>
>> Thanx in advance!
>>
>> /Regards Michael
>>
>>
>> This message contains information that may be privileged or 
>> confidential and is the property of the Capgemini Group. It is 
>> intended only for the person to whom it is addressed. If you are not 
>> the intended recipient,  you are not authorized to read, print, 
>> retain, copy, disseminate,  distribute, or use this message or any 
>> part thereof. If you receive this  message in error, please notify 
>> the sender immediately and delete all  copies of this message.
>>
>>  
>>
>
>
> -
> Apache XML Graphics Project URL: http://xmlgraphics.apache.org/ To 
> unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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



Re: How to process xhtml form data into pdf document?

2006-11-01 Thread Glen Mazza
Oh, by the way, you want to ask these types of questions on 
fop-users@xmlgraphics.apache.org, *many* more users there.


Glen

Glen Mazza wrote:

Jeremias provided a solution[1] to a similar question I had.  Also, I 
wonder if XForms might be a better option for you--there are some open 
source server-side solutions you might want to look at[2].  (However, 
I have not yet used XForms myself so am unsure here.)


Glen

[1] http://marc.theaimsgroup.com/?l=fop-user&m=108136796216447&w=2
[2] http://en.wikipedia.org/wiki/XForms#Software_support


Nielsen, Michael wrote:


Hi there

Im new to FOP and I have been searching the web for hours now trying to
find a solution the the following challenge:

I have an XHTML file that consists of a scanned gif file and some html
form fields that are positioned on the xhtml file using css where the
positioning of of the fields are described. So if you open the xhtml
file you can enter data directly.

My challege is how to transform this into xsl:fo?? I have tried to make
a block use the image gif as background and render text on top of it but
no luck. Only the part of the image that has text on it is shown. What i
need is the full form image to be shown and then render the html form
data on top of it in the correct positions.
I have also tried to use the external-graphics tag to render the image
but then I cant position data on top of it ;(.

So:

1) Whats the best solution for rendering the full image and position
data on top of it?
2) How to position data on top of the image file?

Thanx in advance!

/Regards Michael


This message contains information that may be privileged or 
confidential and is the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not 
the intended recipient,  you are not authorized to read, print, 
retain, copy, disseminate,  distribute, or use this message or any 
part thereof. If you receive this  message in error, please notify 
the sender immediately and delete all  copies of this message.


 




-
Apache XML Graphics Project URL: http://xmlgraphics.apache.org/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





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



Bar code font

2006-11-01 Thread Richard King
Heya,
Appologies for posting on this list but I am unsure where the barcode list is.

I am using barcode4J to generate a barcode for FOP 0.92.
This is all working fine.

However, I have had a request from the client to use
Bar code font = IDAutomationC39M
Bar code size = 18'
Bar code style = Normal

I am assuming this means a barcode of "code39".  Is this correct?
However, this will not allow me to use exclamation marks.  I have found that I 
can only have exclamation marks when I use "code128".  They have stated however 
that using the above font allows exclamation marks.

Can someone point me in the right direction?

Cheers,
Richard

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