Re: SVG rendering without border?

2005-08-22 Thread Jeremias Maerki
If you get borders around SVG files, it's not FOP that's creating them.
But I don't know what DocBook does. If you have a small FO file that
demonstrates the problem we might be able to help.

On 19.08.2005 17:43:59 Martin Honermeyer wrote:
 I am creating a DocBook PDF using FOP. My SVG always have a black border
 around them. Is it possible to render without those, somehow?



Jeremias Maerki


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



Re: FO - Adding Filler Pages for page count multiple of 16

2005-08-22 Thread Jeremias Maerki
I don't think such a thing is directly possible with XSL-FO. Your best
chance is probably to do a two-pass approach, noting the number of
generated pages in the first run and then injecting additional blank
pages in the second run.

On 20.08.2005 06:32:59 Prakash R wrote:
 Hi,
 
 I'm new to FO. I'm developing a FO document to
 generate a catalog which has multiple sections. I have
 a constraint on the length of each of these sections.
 It has to be a multiple of 16 pages. If the data for a
 particular section is less than a multiple of 16 pages
 then the extra pages need to be blank pages or notes
 pages with rules. eg. a section is 14 pages of data
 then it should be followed by 2 blank pages to make it
 16 pages. another section is 25 pages of data then it
 should be followed by 7 blank pages to make it 32
 pages. This is almost like force-page-count=16*x.
 
 First of all I would like to know if this is possible.
 If so, I would appreciate any pointers to get it done.



Jeremias Maerki


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



Need Help : FO file converted to pdf gets corrupted with '#'

2005-08-22 Thread fdbt dbt
Hi,

I am trying to convert an xsl:fo (attached sample.xml)
file to a pdf file using Apache FOP. The ouput gets 
partially  corrupt displaying '#' instead of any 
character in the second half of the file. (output file
 sample.pdf attached). i'm trying to figure the reason

but not really getting it.

The same xsl:fo when converted to svg or awt looks ok.


additional information:
---
FOP version : fop-0.20.5

COMMAND LINE DUMP
--xxx---
D:\tmpfop -d -fo sample.xml -pdf sample.pdf
[DEBUG] Input mode:
[DEBUG] FO
[DEBUG] fo input file: sample.xml
[DEBUG] Output mode:
[DEBUG] pdf
[DEBUG] output file: sample.pdf
[DEBUG] OPTIONS
[DEBUG] no user configuration file is used [default]
[DEBUG] debug mode on
[DEBUG] dump configuration
[DEBUG] quiet mode on
[INFO] Using org.apache.xerces.parsers.SAXParser as
SAX2 Parser
[INFO] base directory: file:/D:/tmp/
[INFO] FOP 0.20.5
[INFO] Using org.apache.xerces.parsers.SAXParser as
SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] [1]
[DEBUG] Last page-sequence produced 1 pages.
[INFO] Parsing of document complete, stopping renderer
[DEBUG] Initial heap size: 793Kb
[DEBUG] Current heap size: 1010Kb
[DEBUG] Total memory used: 217Kb
[DEBUG]   Memory use is indicative; no GC was
performed
[DEBUG]   These figures should not be used
comparatively
[DEBUG] Total time used: 266ms
[DEBUG] Pages rendered: 1
[DEBUG] Avg render time: 266ms/page
--xxx---


It would be grate if someone can help me out with
this.

Thanks and Regards,
fd.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

sample.pdf
Description: 2946461046-sample.pdf
?xml version=1.0 encoding=ISO-8859-1?

fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;

fo:layout-master-set
  fo:simple-page-master master-name=A4 
	fo:region-body
	/fo:region-body
  /fo:simple-page-master
/fo:layout-master-set

fo:page-sequence master-reference=A4
  fo:flow flow-name=xsl-region-body
fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
	fo:blockHello World/fo:block
  /fo:flow
/fo:page-sequence
/fo:root

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

Re: FO - Adding Filler Pages for page count multiple of 16

2005-08-22 Thread Chris Bowditch

Jeremias Maerki wrote:


I don't think such a thing is directly possible with XSL-FO. Your best
chance is probably to do a two-pass approach, noting the number of
generated pages in the first run and then injecting additional blank
pages in the second run.


Jeremias is right, you can't do want you what with XSL-FO.
An alternative solution would be to post process the generated PDF using 
a tool like iText to insert the desired number of blank pages.


Chris


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



Re: Need Help : FO file converted to pdf gets corrupted with '#'

2005-08-22 Thread Jeremias Maerki
I'm afraid I can't reproduce it. The XML file looks fine.

On 22.08.2005 13:56:53 fdbt dbt wrote:
 Hi,
 
 I am trying to convert an xsl:fo (attached sample.xml)
 file to a pdf file using Apache FOP. The ouput gets 
 partially  corrupt displaying '#' instead of any 
 character in the second half of the file. (output file
  sample.pdf attached). i'm trying to figure the reason
 
 but not really getting it.
 
 The same xsl:fo when converted to svg or awt looks ok.
 
 
 additional information:
 ---
 FOP version : fop-0.20.5
 
 COMMAND LINE DUMP
 --xxx---
 D:\tmpfop -d -fo sample.xml -pdf sample.pdf
 [DEBUG] Input mode:
 [DEBUG] FO
 [DEBUG] fo input file: sample.xml
 [DEBUG] Output mode:
 [DEBUG] pdf
 [DEBUG] output file: sample.pdf
 [DEBUG] OPTIONS
 [DEBUG] no user configuration file is used [default]
 [DEBUG] debug mode on
 [DEBUG] dump configuration
 [DEBUG] quiet mode on
 [INFO] Using org.apache.xerces.parsers.SAXParser as
 SAX2 Parser
 [INFO] base directory: file:/D:/tmp/
 [INFO] FOP 0.20.5
 [INFO] Using org.apache.xerces.parsers.SAXParser as
 SAX2 Parser
 [INFO] building formatting object tree
 [INFO] setting up fonts
 [INFO] [1]
 [DEBUG] Last page-sequence produced 1 pages.
 [INFO] Parsing of document complete, stopping renderer
 [DEBUG] Initial heap size: 793Kb
 [DEBUG] Current heap size: 1010Kb
 [DEBUG] Total memory used: 217Kb
 [DEBUG]   Memory use is indicative; no GC was
 performed
 [DEBUG]   These figures should not be used
 comparatively
 [DEBUG] Total time used: 266ms
 [DEBUG] Pages rendered: 1
 [DEBUG] Avg render time: 266ms/page
 --xxx---
 
 
 It would be grate if someone can help me out with
 this.


Jeremias Maerki


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



Re: Specifying Fop 'fontBaseDir' property using command line parameters

2005-08-22 Thread Borut Hadžialić
On 8/22/05, Jeremias Maerki [EMAIL PROTECTED] wrote:
 Only if you implement it yourself by changing the source code.
 
 On 22.08.2005 14:46:42 Borut Hadžialiæ wrote:
  is there a way to specify the fontBaseDir property using a
  command-line option directly,
  instead of using -c and a configuration file, when executing
  org.apache.fop.apps.Fop?
 
  Something like -fontBaseDir somedir.
 
 
 Jeremias Maerki
 

Thanks, I will do that then.

-- 
Why?
Because YES!


RE: Need Help : FO file converted to pdf gets corrupted with '#'

2005-08-22 Thread Rymasz Jacky
I tried it with the 0.20.5RC and works fine with me.
I can't reproduce it. 

-Message d'origine-
De : Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 22 août 2005 14:52
À : fop-users@xmlgraphics.apache.org
Objet : Re: Need Help : FO file converted to pdf gets corrupted with '#' 

I'm afraid I can't reproduce it. The XML file looks fine.

On 22.08.2005 13:56:53 fdbt dbt wrote:
 Hi,
 
 I am trying to convert an xsl:fo (attached sample.xml) file to a pdf 
 file using Apache FOP. The ouput gets partially  corrupt displaying 
 '#' instead of any character in the second half of the file. (output 
 file  sample.pdf attached). i'm trying to figure the reason
 
 but not really getting it.
 
 The same xsl:fo when converted to svg or awt looks ok.
 
 
 additional information:
 ---
 FOP version : fop-0.20.5
 
 COMMAND LINE DUMP
 --xxx---
 D:\tmpfop -d -fo sample.xml -pdf sample.pdf [DEBUG] Input mode:
 [DEBUG] FO
 [DEBUG] fo input file: sample.xml
 [DEBUG] Output mode:
 [DEBUG] pdf
 [DEBUG] output file: sample.pdf
 [DEBUG] OPTIONS
 [DEBUG] no user configuration file is used [default] [DEBUG] debug 
 mode on [DEBUG] dump configuration [DEBUG] quiet mode on [INFO] Using 
 org.apache.xerces.parsers.SAXParser as
 SAX2 Parser
 [INFO] base directory: file:/D:/tmp/
 [INFO] FOP 0.20.5
 [INFO] Using org.apache.xerces.parsers.SAXParser as
 SAX2 Parser
 [INFO] building formatting object tree [INFO] setting up fonts [INFO] 
 [1] [DEBUG] Last page-sequence produced 1 pages.
 [INFO] Parsing of document complete, stopping renderer [DEBUG] Initial 
 heap size: 793Kb [DEBUG] Current heap size: 1010Kb [DEBUG] Total 
 memory used: 217Kb
 [DEBUG]   Memory use is indicative; no GC was
 performed
 [DEBUG]   These figures should not be used
 comparatively
 [DEBUG] Total time used: 266ms
 [DEBUG] Pages rendered: 1
 [DEBUG] Avg render time: 266ms/page
 --xxx---
 
 
 It would be grate if someone can help me out with this.


Jeremias Maerki


-
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: Need Help : FO file converted to pdf gets corrupted with '#'

2005-08-22 Thread David Delbecq
Tested with yuor attached sample.xml and  fop-0.20.5

Could not reproduce. Output is fine (see attachement)

Le Lundi 22 Août 2005 13:56, fdbt dbt a écrit :
 Hi,
 
 I am trying to convert an xsl:fo (attached sample.xml)
 file to a pdf file using Apache FOP. The ouput gets 
 partially  corrupt displaying '#' instead of any 
 character in the second half of the file. (output file
  sample.pdf attached). i'm trying to figure the reason
 
 but not really getting it.
 
 The same xsl:fo when converted to svg or awt looks ok.
 
 
 additional information:
 ---
 FOP version : fop-0.20.5
 
 COMMAND LINE DUMP
 --xxx---
 D:\tmpfop -d -fo sample.xml -pdf sample.pdf
 [DEBUG] Input mode:
 [DEBUG] FO
 [DEBUG] fo input file: sample.xml
 [DEBUG] Output mode:
 [DEBUG] pdf
 [DEBUG] output file: sample.pdf
 [DEBUG] OPTIONS
 [DEBUG] no user configuration file is used [default]
 [DEBUG] debug mode on
 [DEBUG] dump configuration
 [DEBUG] quiet mode on
 [INFO] Using org.apache.xerces.parsers.SAXParser as
 SAX2 Parser
 [INFO] base directory: file:/D:/tmp/
 [INFO] FOP 0.20.5
 [INFO] Using org.apache.xerces.parsers.SAXParser as
 SAX2 Parser
 [INFO] building formatting object tree
 [INFO] setting up fonts
 [INFO] [1]
 [DEBUG] Last page-sequence produced 1 pages.
 [INFO] Parsing of document complete, stopping renderer
 [DEBUG] Initial heap size: 793Kb
 [DEBUG] Current heap size: 1010Kb
 [DEBUG] Total memory used: 217Kb
 [DEBUG]   Memory use is indicative; no GC was
 performed
 [DEBUG]   These figures should not be used
 comparatively
 [DEBUG] Total time used: 266ms
 [DEBUG] Pages rendered: 1
 [DEBUG] Avg render time: 266ms/page
 --xxx---
 
 
 It would be grate if someone can help me out with
 this.
 
 Thanks and Regards,
 fd.
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?


sample.pdf
Description: Adobe PDF document
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Specifying Fop 'fontBaseDir' property using command line parameters

2005-08-22 Thread Jeremias Maerki
Only if you implement it yourself by changing the source code.

On 22.08.2005 14:46:42 Borut Hadžialiæ wrote:
 is there a way to specify the fontBaseDir property using a
 command-line option directly,
 instead of using -c and a configuration file, when executing
 org.apache.fop.apps.Fop?
 
 Something like -fontBaseDir somedir.


Jeremias Maerki


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



Re: FO - Force Pages on same spread

2005-08-22 Thread Prakash R
I meant putting the two pages on two different pages
but making sure they are side by side like when you
open the book you can see the pages side by side(i.e.
on the same spread).

Thank you.
Prakash

--- Jeremias Maerki [EMAIL PROTECTED] wrote:

 Are you talking about imposition (two-up)? Putting
 two pages besides
 each other on one piece of paper? FOP can't do that,
 yet. You'd have to
 use a third-party tool to do that.
 
 On 20.08.2005 06:44:20 Prakash R wrote:
  Hi,
  
  I'm preparing a FO document in order to generate a
  catalog book. I would like to have two pages
 together
  such that they are on the same spread i.e. if the
  first page is an even page(left) then the next
 would
  be the following odd pages(right) making it on the
  same spread. On the other hand if the first page
 falls
  on an odd page(right), I would like to force a
 blank
  page and start it as an even page(left) so that
 the
  second page is an odd page(right) making it on the
  same spread.
  
  How can I achieve this? Any ideas would be greatly
  appreciated.
 
 
 
 Jeremias Maerki
 
 

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





Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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



RE: FO - Force Pages on same spread

2005-08-22 Thread Rymasz Jacky
Do you mean using this property of fo:page-sequence:
 force-page-count=end-on-even

This will give you a blank page at the end of your page sequence if the last 
page is odd... Making you last page even and blank.

Is that what you're looking for?

Jack

-Message d'origine-
De : Prakash R [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 22 août 2005 15:34
À : fop-users@xmlgraphics.apache.org
Objet : Re: FO - Force Pages on same spread

I meant putting the two pages on two different pages but making sure they are 
side by side like when you open the book you can see the pages side by side(i.e.
on the same spread).

Thank you.
Prakash

--- Jeremias Maerki [EMAIL PROTECTED] wrote:

 Are you talking about imposition (two-up)? Putting two pages besides 
 each other on one piece of paper? FOP can't do that, yet. You'd have 
 to use a third-party tool to do that.
 
 On 20.08.2005 06:44:20 Prakash R wrote:
  Hi,
  
  I'm preparing a FO document in order to generate a catalog book. I 
  would like to have two pages
 together
  such that they are on the same spread i.e. if the first page is an 
  even page(left) then the next
 would
  be the following odd pages(right) making it on the same spread. On 
  the other hand if the first page
 falls
  on an odd page(right), I would like to force a
 blank
  page and start it as an even page(left) so that
 the
  second page is an odd page(right) making it on the same spread.
  
  How can I achieve this? Any ideas would be greatly appreciated.
 
 
 
 Jeremias Maerki
 
 

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





Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs 
 

-
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: Need Help : FO file converted to pdf gets corrupted with '#'

2005-08-22 Thread fdbt dbt
I had a J2SE 6.0 early access release installation on my machine. (http://download.java.net/download/jdk6/binaries/jdk-6_0-ea-bin-b48-windows-i586-18_aug_2005.exe). This had taken precedence and hence was getting the error.
The error is still reproducible by using this JRE.

I was able to resolve the issue after using jdk1.5.0_02.

Sorry for bothering and Thanks for all those quick responses.

Regards,
fd.

fdbt dbt [EMAIL PROTECTED] wrote:
Hi,I am trying to convert an xsl:fo (attached sample.xml)file to a pdf file using Apache FOP. The ouput gets partially corrupt displaying '#' instead of any character in the second half of the file. (output filesample.pdf attached). i'm trying to figure the reasonbut not really getting it.The same xsl:fo when converted to svg or awt looks ok.additional information:---FOP version : fop-0.20.5COMMAND LINE DUMP--xxx---D:\tmpfop -d -fo sample.xml -pdf sample.pdf[DEBUG] Input mode:[DEBUG] FO[DEBUG] fo input file: sample.xml[DEBUG] Output mode:[DEBUG] pdf[DEBUG] output file: sample.pdf[DEBUG] OPTIONS[DEBUG] no user configuration file is used [default][DEBUG] debug mode on[DEBUG] dump configuration[DEBUG] quiet mode on[INFO] U
 sing
 org.apache.xerces.parsers.SAXParser asSAX2 Parser[INFO] base directory: file:/D:/tmp/[INFO] FOP 0.20.5[INFO] Using org.apache.xerces.parsers.SAXParser asSAX2 Parser[INFO] building formatting object tree[INFO] setting up fonts[INFO] [1][DEBUG] Last page-sequence produced 1 pages.[INFO] Parsing of document complete, stopping renderer[DEBUG] Initial heap size: 793Kb[DEBUG] Current heap size: 1010Kb[DEBUG] Total memory used: 217Kb[DEBUG] Memory use is indicative; no GC wasperformed[DEBUG] These figures should not be usedcomparatively[DEBUG] Total time used: 266ms[DEBUG] Pages rendered: 1[DEBUG] Avg render time: 266ms/page--xxx---It would be grate if someone can help me out withthis.Thanks and Regards,fd.__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com Hello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello
 WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello World-<
 BR>To
 unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
		 Start your day with Yahoo! - make it your home page 

Re: FO - Adding Filler Pages for page count multiple of 16

2005-08-22 Thread Jeremias Maerki
No, you don't need an additional tool, only some custom Java code and
probably an extension to your stylesheet.

Step 1:
Use the Driver.getResults() method to determine the number of pages
generated during the first, normal run. See here for more info:
http://xml.apache.org/fop/embedding.html#render-info

Step 2:
You run FOP again with the same input file but now you set a parameter
to your XSLT stylesheet which generates the necessary number of blank
pages with normal XSL-FO means (page-sequences or page breaks or
whatever).

So you simply run FOP twice with the same input file and the same
stylesheet. You only need to extend your stylesheet so it can produce an
number of empty pages as specified through an XSLT parameter.

On 22.08.2005 15:39:11 Prakash R wrote:
 Jeremias,
 
 When you said a two-pass approach, would that be both
 through FO processor or would I have to do the second
 run with some other tool? At the end of the first run
 I would have a PDF. If I would be using FO Processor
 for the second run then how would I go about doing the
 second run? If not, what are some other tools which I
 can use to do the second run? 
 
 Thank you.
 Prakash
 
 --- Jeremias Maerki [EMAIL PROTECTED] wrote:
 
  I don't think such a thing is directly possible with
  XSL-FO. Your best
  chance is probably to do a two-pass approach, noting
  the number of
  generated pages in the first run and then injecting
  additional blank
  pages in the second run.
  
  On 20.08.2005 06:32:59 Prakash R wrote:
   Hi,
   
   I'm new to FO. I'm developing a FO document to
   generate a catalog which has multiple sections. I
  have
   a constraint on the length of each of these
  sections.
   It has to be a multiple of 16 pages. If the data
  for a
   particular section is less than a multiple of 16
  pages
   then the extra pages need to be blank pages or
  notes
   pages with rules. eg. a section is 14 pages of
  data
   then it should be followed by 2 blank pages to
  make it
   16 pages. another section is 25 pages of data then
  it
   should be followed by 7 blank pages to make it 32
   pages. This is almost like force-page-count=16*x.
   
   First of all I would like to know if this is
  possible.
   If so, I would appreciate any pointers to get it
  done.


Jeremias Maerki


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



Re: FO - Force Pages on same spread

2005-08-22 Thread Jeremias Maerki
I'm still not sure I understand you correctly, but then I think you need
to look at fo:conditional-page-master-reference which allows you to
specify separate simple-page-masters for odd and even pages.
http://www.w3.org/TR/xsl/slice6.html#fo_conditional-page-master-reference

http://www.dpawson.co.uk/xsl/sect3/evenodd.html

On 22.08.2005 15:34:24 Prakash R wrote:
 I meant putting the two pages on two different pages
 but making sure they are side by side like when you
 open the book you can see the pages side by side(i.e.
 on the same spread).
 
 Thank you.
 Prakash
 
 --- Jeremias Maerki [EMAIL PROTECTED] wrote:
 
  Are you talking about imposition (two-up)? Putting
  two pages besides
  each other on one piece of paper? FOP can't do that,
  yet. You'd have to
  use a third-party tool to do that.
  
  On 20.08.2005 06:44:20 Prakash R wrote:
   Hi,
   
   I'm preparing a FO document in order to generate a
   catalog book. I would like to have two pages
  together
   such that they are on the same spread i.e. if the
   first page is an even page(left) then the next
  would
   be the following odd pages(right) making it on the
   same spread. On the other hand if the first page
  falls
   on an odd page(right), I would like to force a
  blank
   page and start it as an even page(left) so that
  the
   second page is an odd page(right) making it on the
   same spread.
   
   How can I achieve this? Any ideas would be greatly
   appreciated.


Jeremias Maerki


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



RE: FO - Force Pages on same spread

2005-08-22 Thread Prakash R
No. I have two pages within my document(which has
pages preceding and following these pages) and I need
to make sure they end up side by side pages (as when
you open the book the two pages are next to each other
rather than having to turn pages). 

The first of these 2 pages needs to be on the left and
the second of these 2 pages on the right. In case the
first page ends up on the right then a blank page
needs to be inserted and the first page needs to be
forced to start on the left so that the second page
ends up on its side.

Hope that is clear.

Thank you.
Prakash

--- Rymasz Jacky [EMAIL PROTECTED] wrote:

 Do you mean using this property of fo:page-sequence:
  force-page-count=end-on-even
 
 This will give you a blank page at the end of your
 page sequence if the last page is odd... Making you
 last page even and blank.
 
 Is that what you're looking for?
 
 Jack
 
 -Message d'origine-
 De : Prakash R [mailto:[EMAIL PROTECTED] 
 Envoyé : lundi 22 août 2005 15:34
 À : fop-users@xmlgraphics.apache.org
 Objet : Re: FO - Force Pages on same spread
 
 I meant putting the two pages on two different pages
 but making sure they are side by side like when you
 open the book you can see the pages side by
 side(i.e.
 on the same spread).
 
 Thank you.
 Prakash
 
 --- Jeremias Maerki [EMAIL PROTECTED]
 wrote:
 
  Are you talking about imposition (two-up)? Putting
 two pages besides 
  each other on one piece of paper? FOP can't do
 that, yet. You'd have 
  to use a third-party tool to do that.
  
  On 20.08.2005 06:44:20 Prakash R wrote:
   Hi,
   
   I'm preparing a FO document in order to generate
 a catalog book. I 
   would like to have two pages
  together
   such that they are on the same spread i.e. if
 the first page is an 
   even page(left) then the next
  would
   be the following odd pages(right) making it on
 the same spread. On 
   the other hand if the first page
  falls
   on an odd page(right), I would like to force a
  blank
   page and start it as an even page(left) so that
  the
   second page is an odd page(right) making it on
 the same spread.
   
   How can I achieve this? Any ideas would be
 greatly appreciated.
  
  
  
  Jeremias Maerki
  
  
 

-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 
   
 
 Start your day with Yahoo! - make it your home page
 http://www.yahoo.com/r/hs 
  
 

-
 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]
 
 





Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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



Re: FO - Force Pages on same spread

2005-08-22 Thread Chris Bowditch

Prakash R wrote:


Let me try to explain this with an example.

I have a document which has say 10 pages. Within this
document somewhere in between I have 2 pages(page
number not known until the PDF is generated) which are
consecutive and are someway related. So I would like
for these two pages to be side-by-side (on 2 different
pages) as when you open a book i.e. first page is on
left and second page on right (even followed by odd)
in the generated PDF. 


If by virtue of the XML the first page ends up being
on the right, I want to force a blank page before so
that the first page comes on the left which will
automatically lay the second page on the right (making
these 2 pages side-by-side).

Hope this clarifies my requirement.


Yes. Put break-before=odd on the block that starts the content of the 
two pages.


Chris


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



Re: Specifying Fop 'fontBaseDir' property using command line parameters

2005-08-22 Thread Borut Hadžialić
On 8/22/05, Borut Hadžialić [EMAIL PROTECTED] wrote:
 On 8/22/05, Jeremias Maerki [EMAIL PROTECTED] wrote:
  Only if you implement it yourself by changing the source code.
 
  On 22.08.2005 14:46:42 Borut Hadžialiæ wrote:
   is there a way to specify the fontBaseDir property using a
   command-line option directly,
   instead of using -c and a configuration file, when executing
   org.apache.fop.apps.Fop?
  
   Something like -fontBaseDir somedir.
 
 
  Jeremias Maerki
 
 
 Thanks, I will do that then.
 
 --
 Why?
 Because YES!
 

I believe that adding this code:

else if (args[i].equals(-fontBaseDir)) {
if ((i + 1 == args.length)
|| (args[i + 1].charAt(0) == '-')) {
throw new FOPException(if you use '-fontBaseDir',
you must specify the path to the fonts directory);
} else {

org.apache.fop.configuration.Configuration.put(fontBaseDir,new
File(args[i + 1]));
i++;
}
}

at org/apache/fop/apps/CommandLineOptions.java, line 194, after first '{'

would enable that option.

Unfortunately I have some trouble compiling the Fop source
distribution (with and without the add).

I have set the source=1.5 in the javac task in Fop Ant BuildFile
(without it the compiler complains about 'enum' being used as an
identificator).

The compilation returns this error:

[javac] 
D:\borut\eclipse_workspace\FopCustomization\build\src\org\apache\fop\svg\PDFGraphics2D.java:1242:
org.apache.fop.svg.PDFGraphics2D.PDFGraphicsConfiguration is not
abstract and does not override abstract method
createCompatibleVolatileImage(int,int,int) in
java.awt.GraphicsConfiguration
[javac] static class PDFGraphicsConfiguration extends
GraphicsConfiguration {
[javac] ^

Software involved is:

apache-ant-1.6.1
jdk1.5.0_03
apache-ant-1.6.1

operating system  is Windows Xp, gonna try the same thing on Debian
when I get home ;p

-- 
Why?
Because YES!


Building fop trunk

2005-08-22 Thread Teus Benschop

Hi,

Http://xml.apache.org/fop/compiling.html describes how to build FOP from 
source code and it refers to a script called build.sh. When downloading 
all the source code using svn co 
http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk, it appears the 
script build.sh is not there. How to proceed?


Teus Benschop


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