use already existing PDF for XSL:FO

2004-09-02 Thread Peter
Hello lists,

I know it's probably not the right list.

situation: on a client i have a C++ application that creates a pdf by list 
labels. the data from the client application ist transferd by webservice to
a server, the server make out of the object an xml file.
problem: Can I make a XSL:FO out of the PDF that already exists? otherwise I
have to recreate the layout, structure and design of the document.

thanks for your help


with kind regards
Peter Reiner


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



Re: use already existing PDF for XSL:FO

2004-09-02 Thread Sven Waibel
Hello Peter,

i don't think that's possible to get a xsl-fo file of a pdf.

Sven

Peter wrote:

 Hello lists,
 
 I know it's probably not the right list.
 
 situation: on a client i have a C++ application that creates a pdf by list 
 labels. the data from the client application ist transferd by webservice to
 a server, the server make out of the object an xml file.
 problem: Can I make a XSL:FO out of the PDF that already exists? otherwise I
 have to recreate the layout, structure and design of the document.
 
 thanks for your help
 
 
 with kind regards
 Peter Reiner
 
 
 -
 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]



region-before not displayed

2004-09-02 Thread Valentina Benedetti

The default font size is 12pt or ~4.23mm. FOP allocates additional
~20% space above and below the glyph marks, for a total of 5.08mm.
This means the text wont fit into a region 5mm high, but will be
displayed in a region which is 5.1 mm high.

J.Pietschmann

You gave me the exact reason I was searching for.
I really thank you at all!

Valentina Benedetti



___
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Any views or opinions expressed
are solely those of the author and do not necessarily represent those of
Brainpower. Brainpower also reserves the right to monitor all e-mail
communications through its internal and external networks.






___
This message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Any views or opinions expressed 
are solely those of the author and do not necessarily represent those of 
Brainpower. Brainpower also reserves the right to monitor all e-mail 
communications through its internal and external networks.



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



Emulate keep-with-next.within-page

2004-09-02 Thread Sönke Ruempler
Hi,

As most of you know, the keep-directives only work with table workaround.

So my question is, if i can create a xslt template for this:

h1title/h1
pblah blub/p

So that h1 never breaks with the next element. I have working templates für
h1 and p.

I am no XSLT expert so maybe anyone did that before ...

Thx in advance.

--

Sönke


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



Re: use already existing PDF for XSL:FO

2004-09-02 Thread Chris Bowditch
Peter wrote:
Hello lists,
I know it's probably not the right list.
situation: on a client i have a C++ application that creates a pdf by list 
labels. the data from the client application ist transferd by webservice to
a server, the server make out of the object an xml file.
problem: Can I make a XSL:FO out of the PDF that already exists? otherwise I
have to recreate the layout, structure and design of the document.
This is a bit like asking if you can reverse engineer some assembly code into 
C++. Except its probably more complicated. The tool would have to examine PDF 
commands like rectangle (125, 60, 100, 100) and decide what XSL-FO element 
could have created that result! And for this reason, there are currently no 
tools available to do it.

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


Hi there!

2004-09-02 Thread Ionita Alexandru

Sorry for this newbie post..I'm new with FOP.

Here are my needs:
I have some HTML files and some TIFF file and I have to combine this
all files in a big PDF. 
HTML files are dinamically built by my application, and this html
files should alternate with the tiff files. I saw that for tiff files
support there is a special tool, tiffrender. Could I make this possible? And
another thing...the fianl PDF _MUST_ have page numbering.

Thanks for your advice!


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



FOP PDF with images from eXist database

2004-09-02 Thread eelke . toonstra
I'm having problems with creating PDF's that contain images from the eXist 
database. 

I use the FOP servlet from Cocoon 2.1.5.1 and I am able to create PDF's 
that contain images from different sources, i.e.
fo:external-graphic src=url(http://localhost:8080/logo.jpg)/  works fine. 

But when I want to access the image in my fo.xml file in order to create a 
PDF:
fo:external-graphic 
src=url(http://localhost:8080/exist/servlet/db/test.gif)/
The system doesn't respond. The memory usage for java.exe in the 
taskmanager gets bigger and bigger and I have to kill the process.

When I access the same image within a normal HTML file, it works fine: 
img src=http://localhost:8080/exist/servlet/db/test.gif;

What am I doing wrong? I couldn't find anything interesting in the log 
files. 



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



HTML + TIFF = PDF (was Re: Hi there!)

2004-09-02 Thread Clay Leeds
On Sep 2, 2004, at 2:51 AM, Ionita Alexandru wrote:
Sorry for this newbie post..I'm new with FOP.

Here are my needs:
I have some HTML files and some TIFF file and I have to combine this
all files in a big PDF.
This should be doable using an HTML-to-FO conversion tool[1], although 
I think you'll need to somehow get the TIFF files into the HTML 
(embedded in the HTML somehow?).

	HTML files are dinamically built by my application, and this html
files should alternate with the tiff files. I saw that for tiff files
support there is a special tool, tiffrender. Could I make this 
possible? And
another thing...the fianl PDF _MUST_ have page numbering.

	Thanks for your advice!
Page-numbering should not be a problem. Just read up on FOP to find out 
how (along with any issues involved). However, TiffRenderer is used for 
outputting XSL-FO files to TIFF--not for using TIFF as input[3].

[OT] It would be good for you to review How To Ask Questions The Smart 
Way to ensure the Subject is valuable (the description of your problem 
seemed OK, though ;-)).

http://www.catb.org/~esr/faqs/smart-questions.html
Web Maestro Clay
[1]
http://xml.apache.org/fop/resources.html#products-other
[2]
http://xml.apache.org/fop/resources.html#products-fop-add-ons
[3]
http://xml.apache.org/fop/graphics.html#tiff
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: FOP PDF with images from eXist database

2004-09-02 Thread Clay Leeds
On Sep 2, 2004, at 6:43 AM, [EMAIL PROTECTED] wrote:
But when I want to access the image in my fo.xml file in order to  
create a
PDF:
fo:external-graphic  
src=url(http://localhost:8080/exist/servlet/db/test.gif)/
The system doesn't respond. The memory usage for java.exe in the
taskmanager gets bigger and bigger and I have to kill the process.

When I access the same image within a normal HTML file, it works fine:
img  
RENAME_FILE_TO_USE_src=http://localhost:8080/exist/servlet/db/ 
test.gif

What am I doing wrong? I couldn't find anything interesting in the log
files.
Could this be a permissions issue? Perhaps the I_USR (or whoever) when  
accessing directly has the privilege to access, but java.exe process  
does not? Have you checked the images  graphics FAQ items? Here's a  
link[1] but don't stop there. There are plenty of other questions there  
dealing with images  graphics. TIP: Try searching for 'graphic' and  
also 'image' if you don't find what you were looking for?

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


Re: Emulate keep-with-next.within-page

2004-09-02 Thread J.Pietschmann
Sönke Ruempler wrote:
As most of you know, the keep-directives only work with table workaround.
So my question is, if i can create a xslt template for this:
h1title/h1
pblah blub/p
So that h1 never breaks with the next element. I have working templates für
h1 and p.
I am no XSLT expert so maybe anyone did that before ...
You have to create a blind table, enclosing the two elements:
  fo:table table-layout=fixed width=100%
fo:table-column column-width=proportional-column-width()/
fo:table-body
  fo:table-row keep-with-next=always
 fo:table-cell
   fo:blocktitle/fo:block
 /fo:table-cell
  /fo:table-row
  fo:table-row
 fo:table-cell
   fo:blockblah blub/fo:block
 /fo:table-cell
  /fo:table-row
/fo:table-body
  /fo:table
If you want to keep all h1 elements with the following element, you have
1. Process the following element from the template which processes the
  h1
2. Somehow arrange the elements following a h1 aren't processed twice.
How to do either depends on how you process the sourcce in general.
For the first, you can start with
 template match=h1
  fo:table table-layout=fixed width=100%
fo:table-column column-width=proportional-column-width()/
fo:table-body
  fo:table-row keep-with-next=always
 fo:table-cell
    whatever you need to process the h1 content here...
 /fo:table-cell
  /fo:table-row
  fo:table-row
 fo:table-cell
   xsl:apply-templates select=following-sibling::*/
 /fo:table-cell
  /fo:table-row
/fo:table-body
  /fo:table
The second point is trickier. The most easy way is to exclude
the elements following h1 elements in the apply-templates of
the parent element:
  xsl:apply-templates
select=*[not(preceding-sibling::*[1][self::h1])]/
There are various other possiblities, ranging from moded templates
to using control parameters. There is no universal best solution.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]