conditional-page-master-reference

2007-06-28 Thread Johan Johansson
Hi,

Thank you for your reply and sorry for the misstyprd subject.

I will try to arrange them in the right order but i do not think it will help 
me the way i want.

I want the following conditions:

first page (odd,first) =  "framsida-first"
second page (even,rest ??) =  "baksida"
rest odd pages (odd,rest)  =  "framsida-helkropp"
rest even pages (even,rest) =  "baksida-helkropp"

But the second page and rest of the even pages are the same conditions, i want 
to find out if there is anyway to have a condition for the second page.

best regards Johan


-Ursprungligt meddelande-
Från: Adrian Cumiskey [mailto:[EMAIL PROTECTED]
Skickat: den 28 juni 2007 15:59
Till: fop-users@xmlgraphics.apache.org
Ämne: Re: SV: Font Arial is not displayed on Linux


Hi Johan,

Sounds like you have an ordering problem.  Each conditional-page-master 
is evaluated in turn as each page is processed in the page sequence so 
you should generally order them page-position="first", followed by 
page-position="rest" and finally page-position="last".

If I understand you correctly I believe you are looking for the 
following page master selection behaviour :-

-

 








 




    
    




-

Hope this helps! :-)

Adrian.

Johan Johansson wrote:
> Hi
> 
> I have a problem, is there anyway with xsl:fo to set different 
> master-reference if i want for an example the page 2 to be different from the 
> rest of the even pages?
> 
> I want the even page 2 to be "baksida" and the rest even pages to be 
> "baksida-helkropp".
> 
> Do anyone have any idea how to do that?
> 
>
> 
>  master-reference="framsida-first"/>
>  master-reference="framsida-helkropp"/>
>  blank-or-not-blank="not-blank" master-reference="baksida"/>
>  blank-or-not-blank="not-blank" master-reference="baksida-last"/>
>  master-reference="framsida"/>
>  blank-or-not-blank="blank" master-reference="baksida-blank"/>
> 
> 
> //Johan
> 
> -
> 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]



SV: Font Arial is not displayed on Linux

2007-06-28 Thread Johan Johansson
Hi

I have a problem, is there anyway with xsl:fo to set different master-reference 
if i want for an example the page 2 to be different from the rest of the even 
pages?

I want the even page 2 to be "baksida" and the rest even pages to be 
"baksida-helkropp".

Do anyone have any idea how to do that?

 








//Johan

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



SV: Flow area content is propagating into page footer--- Need Help!!

2007-05-07 Thread Johan Johansson
Hi,
 
Can you submit the xsl/fo aswell, its hard to say what is wrong without having 
a look on it first.
 
 -Ursprungligt meddelande-
Från: Harshini Madurapperuma [mailto:[EMAIL PROTECTED]
Skickat: den 7 maj 2007 12:03
Till: fop-users@xmlgraphics.apache.org
Ämne: Flow area content is propagating into page footer--- Need Help!!



Hi All;
 
When rendering the PDF; some of the data in the page flow area is propagating 
into page footer. I think there is a small problem in the page height 
calculation; Which fop class do i have to look at inorder to resolve this 
problem? 
 
P.S :In the attached pdf, in the first page horizontal line in the bottom has 
moved to the footer area.
 
Regards
Harshini.
 
 



Creating multiple pdf files.

2007-04-03 Thread Johan Johansson
Hi!
 
Is it possible to create multiple pdf files?
 
I want to have one pdf file every time it starts over on page 1 
 
 
So for every faktura or samlingsfaktura i want to have one pdf, cause they can 
contain multiple pages.
I tried to figure out how to make multiple page coutings but with out luck.
 
Exampel code:
  
  
   
   

 faktura
 faktura-helkropp

   
   

 8
 17

   
   
   
 
 


Could not find function: replace

2007-04-02 Thread Johan Johansson
Hi,
 
I'm trying to use the XSL 2.0 function replace() but i just got this error:
 
javax.xml.transform.TransformerException: Could not find function: replace
 
the code:

 
Any suggestions?


Page counting in FOP

2007-03-28 Thread Johan Johansson
Sorry for my last mail, i hit the send short-key by misstake.
 
 
Is there any way to count pages with the fop except from the   
?
 
Because i do it like this: 
 
   
   
   

 faktura
 faktura-helkropp

   
   

 8
 17

   
   
   
   
 
So for each faktura it will start back on number 1 so i can present amount of 
pages for each 
 
But i also want to know how many pages the entire document is, so when i tried 
to put fo:page-number in a variable it ends up being empty all the time.
 
Do anyone know how to count pages that are being renderd in fop?


Page counting in FOP

2007-03-28 Thread Johan Johansson
Hi!
 
Is there any way to count pages with the fop except from the   
?
 
Because i do it like this:
 


SV: Trying to use saxon:while and saxon:assign tin FOP

2007-03-13 Thread Johan Johansson
Hi,

Thank you for your reply.

Didt do any difference for me when i added the trailing slash:

Mar 13, 2007 2:56:39 PM org.apache.fop.fo.ElementMappingRegistry findFOMaker
WARNING: Unknown formatting object http://saxon.sf.net/^while
Mar 13, 2007 2:56:39 PM org.apache.fop.fo.ElementMappingRegistry findFOMaker
WARNING: Unknown formatting object http://saxon.sf.net/^assign
Mar 13, 2007 2:56:39 PM org.apache.fop.layoutmgr.LayoutManagerMapping 
makeLayoutManagers
SEVERE: No LayoutManager maker for class class org.apache.fop.fo.UnknownXMLObj

best regards Johan

-Ursprungligt meddelande-
Från: Abel Braaksma [mailto:[EMAIL PROTECTED]
Skickat: den 13 mars 2007 14:33
Till: fop-users@xmlgraphics.apache.org
Ämne: Re: Trying to use saxon:while and saxon:assign tin FOP


Johan Johansson wrote:
> Hi!
>
> Trying to use saxon:assign and while in fop, but i recive this:
> (dont know if saxon extension works within the fop?)
>
> 
>
>  xmlns:saxon="http://saxon.sf.net";

Your namespace is incorrect, perhaps that has something to with it? 
Replace it with:

http://saxon.sf.net/

(I've had troubles before when not including the trailing slash. A 
namespace is not a path, remember, but a URI, and must be precisely and 
correctly set to the letter, which in this case does include the 
trailing slash)

-- Abel Braaksma

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



Trying to use saxon:while and saxon:assign tin FOP

2007-03-13 Thread Johan Johansson
Hi!

Trying to use saxon:assign and while in fop, but i recive this:
(dont know if saxon extension works within the fop?)

Mar 13, 2007 1:07:33 PM org.apache.fop.fo.ElementMappingRegistry findFOMaker
WARNING: Unknown formatting object http://saxon.sf.net^assign
Mar 13, 2007 1:07:33 PM org.apache.fop.fo.ElementMappingRegistry findFOMaker
WARNING: Unknown formatting object http://saxon.sf.net^while

SEVERE: No LayoutManager maker for class class org.apache.fop.fo.UnknownXMLObj
Mar 13, 2007 1:07:34 PM org.apache.fop.layoutmgr.LayoutManagerMapping 
makeLayoutManagers
SEVERE: No LayoutManager maker for class class org.apache.fop.fo.UnknownXMLObj
Mar 13, 2007 1:07:34 PM org.apache.fop.layoutmgr.LayoutManagerMapping 
makeLayoutManagers
SEVERE: No LayoutManager maker for class class org.apache.fop.fo.UnknownXMLObj
Mar 13, 2007 1:07:34 PM org.apache.fop.layoutmgr.LayoutManagerMapping 
makeLayoutManagers
SEVERE: No LayoutManager maker for class class org.apache.fop.fo.UnknownXMLObj
Mar 13, 2007 1:07:34 PM org.apache.fop.layoutmgr.LayoutManagerMapping 
makeLayoutManagers
SEVERE: No LayoutManager maker for class class org.apache.fop.fo.UnknownXMLObj
Mar 13, 2007 1:07:34 PM org.apache.fop.layoutmgr.LayoutManagerMapping 
makeLayoutManagers
SEVERE: No LayoutManager maker for class class org.apache.fop.fo.UnknownXMLObj
Mar 13, 2007 1:07:34 PM org.apache.fop.layoutmgr.LayoutManagerMapping 
makeLayoutManagers
SEVERE: No LayoutManager maker for class class org.apache.fop.fo.UnknownXMLObj
Mar 13, 2007 1:07:34 PM org.apache.fop.layoutmgr.LayoutManagerMapping 
makeLayoutManagers


the code:

http://www.w3.org/1999/XSL/Transform";
 xmlns:fo="http://www.w3.org/1999/XSL/Format";
 xmlns:saxon="http://saxon.sf.net";
 xmlns:redirect="http://xml.apache.org/xalan/redirect";
 extension-element-prefixes="redirect"
 version="1.0">



 
 
   px
   px
   px
   
   px
   px
   

 normal


  
  
   absolute
   absolute
   
   
   
   
   


black

 


   
  
 




  
The value of i is 

  


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



Writing to a file

2007-03-06 Thread Johan Johansson
Hi everyone,

Im trying to figure out if it is possible to write som variable/text to a file 
and append the file if needed.
Do anyone have a soloution for this? 

regards Johan

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



SV: Rescaling images to 300dpi

2007-02-07 Thread Johan Johansson
fop.xconf is used by default if no config is selected by the: fop -c 


-Ursprungligt meddelande-
Från: Uwe Kubosch [mailto:[EMAIL PROTECTED]
Skickat: den 7 februari 2007 13:23
Till: fop-users@xmlgraphics.apache.org
Ämne: Re: Rescaling images to 300dpi


Thanks for the answers!

On Wed, 2007-02-07 at 12:13 +, Chris Bowditch wrote:
> FOp Configuration in fop.xconf has parameters to control the source and 
> target resolutions:
> 
>   
>   72
>   
>   72

This entry is already there in the /conf/fop.xconf file.

Is this file used by default or do I have to specify it?


Uwe

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



SV: Rescaling images to 300dpi

2007-02-07 Thread Johan Johansson
In your fop config file add this after the root:

  
  300
  
  300



-Ursprungligt meddelande-
Från: Uwe Kubosch [mailto:[EMAIL PROTECTED]
Skickat: den 7 februari 2007 12:39
Till: fop-users@xmlgraphics.apache.org
Ämne: Rescaling images to 300dpi


Hi all!

I am using FOP 0.93 with JSE 6 to render PDFs with lots of images
containing high resolution images and I am scaling the images using only
one dimension in the external-graphics tags.

The result is a PDF of about 1.1GB.  Naturally my print-person complains
that the file is unnecessarily large and has asked me to reduce the
output resolution to 300dpi.

How do I do that?

Any help is greatly appreciated.


Uwe

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



render afp with images

2007-02-01 Thread Johan Johansson
Hi,

I'm not sure if it even is avaible yet in the current version (running 0.93). 
But if so, does any have any examples to look at?  does 
not do any good anyway :-)

Best regards
IDATA, Johan Johansson
Sweden

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