Re: One Page DOcument

2006-10-17 Thread mikevn123

I have a similar problem as to the one posted before.

I've setup two page masters, one to be used for page-position="any" and
another to be used for page-position="last".

When my document is rendered, and it is two or more pages, it works great.
When my document is rendered and it is only one page, it uses the "any"
page-master.

Since there is no "first" defined, I was hoping that the "last" would apply
to page 1.  

I am using FOP 0.92beta.

Is there a way to have a single page document take on the attributes of the
"last" page?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/One-Page-DOcument-tf2191362.html#a6864617
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: Embeded svg files

2006-10-17 Thread Louis . Masters

I do this in 0.20.3 for all of our images.
 Here is a sample code block that puts a basic shipping mark on a
report:

        
         
      
         
              
         
               
      
         
               
              
         
               
              
         
               
              
         
               
              
         
               
              See Instructions
         
               
      
         
              
         
      
        

This renders fine in PDF, but to see
something like this in IE 5/6, you will need a plugin (go to Adobe).

-Lou


~~
LOG-NET, Inc.
The Logistics Network Management System
~~
230 Half Mile Road
Third Floor
Red Bank, NJ 07701
PH: 732-758-6800
FAX: 732-747-7497
http://www.LOG-NET.com
~~
CONFIDENTIAL & PRIVILEGED
Unless otherwise indicated or if obvious from the nature of the content,
the information contained herein is privileged and confidential information/work
product. The communication is intended for the use of the individual or
entity named above.  If the reader of this transmission is not the
intended recipient, you are  hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.  If
you have received this communication in error, please notify the sender
immediately by telephone (732-758-6800) or by electronic mail ([EMAIL PROTECTED]),
and destroy any copies, electronic, paper or otherwise, which you may have
of this communication.  Thank you.
~~





"Barry Whiting"
<[EMAIL PROTECTED]> 
10/17/2006 11:31 AM



Please respond to
fop-users@xmlgraphics.apache.org





To



cc



Subject
Embeded svg files








Hi
 
I wondered if someone could help please.
 
I am able to embed jpg files with no problems
at all in my fo file using http://someserver.com/images/someimage.jpg
but when I try to embed a svg file it doesn’t work at all but I don’t
get any errors at all
 
Im using fop 0.20.5
 
Thanks for any help any one can give
 
Regards
 
Barry



Embeded svg files

2006-10-17 Thread Barry Whiting








Hi

 

I wondered if someone could help please.

 

I am able to embed jpg files with no problems at all in my
fo file using http://someserver.com/images/someimage.jpg
but when I try to embed a svg file it doesn’t work at all but I don’t
get any errors at all

 

Im using fop 0.20.5

 

Thanks for any help any one can give

 

Regards

 

Barry








pdf - large file size

2006-10-17 Thread Chris Markiewicz








Hello.  I am generating PDFs using FOP for a client
– and he is starting to complain about file size.  It’s a
fairly simple PDF – two pages, mostly text, a handful of small images,
and a few fonts.  Doc size is around 600k.  (Handmade is about 1/10th
that size.)  Anything I can do about this?  I searched the archives
but didn’t find anything too useful.  I’m looking into iText,
but it seems that this might just be an issue with dynamically generated PDFs
in general?  I’ve also researched commercial products to shrink the
PDFs – any experience with those?

 

Thanks

Chris

 








RE: large file size for PDF

2006-10-17 Thread Kai Mutz
Perhaps this will help:
http://marc.theaimsgroup.com/?l=fop-user&m=114700968631356&w=2



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Behalf Of Chris Markiewicz
Sent: Tuesday, October 17, 2006 2:46 PM
To: fop-users@xmlgraphics.apache.org
Subject: large file size for PDF


Hello.  I am generating PDFs using FOP for a client - and he is starting to
complain about file size.  It's a fairly simple PDF - two pages, mostly
text, a handful of small images, and a few fonts.  Doc size is around 600k.
(Handmade is about 1/10th that size.)  Anything I can do about this?  I
searched the archives but didn't find anything too useful.  I'm looking into
iText, but it seems that this might just be an issue with dynamically
generated PDFs in general?  I've also researched commercial products to
shrink the PDFs - any experience with those?

Thanks
Chris



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



RE: large file size for PDF

2006-10-17 Thread Rick Roen








Chris,

 

I had this problem some time ago and
Jeremias suggested that I upgrade to the latest trunk version.

 

There was a problem in the color table of
a PNG image which was fixed in 0.92 v?.

 

I as getting this type of file sizes, but
it went down to < 30K after I got the new version of FOP.

 

Rick

 









From: Chris Markiewicz
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 17, 2006
6:46 AM
To:
fop-users@xmlgraphics.apache.org
Subject: large file size for PDF



 

Hello.  I am generating PDFs using FOP for a client
– and he is starting to complain about file size.  It’s a fairly
simple PDF – two pages, mostly text, a handful of small images, and a few
fonts.  Doc size is around 600k.  (Handmade is about 1/10th
that size.)  Anything I can do about this?  I searched the archives
but didn’t find anything too useful.  I’m looking into iText,
but it seems that this might just be an issue with dynamically generated PDFs
in general?  I’ve also researched commercial products to shrink the
PDFs – any experience with those?

 

Thanks

Chris

 








Re: can't vertically align table cell content to "middle"

2006-10-17 Thread Rory Wales
that works perfectly, Pascal, thank you very much!
Rory
- Original Message From: Pascal Sancho <[EMAIL PROTECTED]>To: fop-users@xmlgraphics.apache.orgSent: Tuesday, 17 October, 2006 1:55:38 PMSubject: RE: can't vertically align table cell content to "middle"
> -Original Message-> From: Rory Wales [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 17, 2006 2:29 PM> > Hi there,>   I'm using FOP 0.92 beta and would like to use the > vertical-align="middle" attribute (or equivalent) to centre > all my table content to the middle of each cell. I can do it > horizontally (>  >   I've looked on the FOP compliance page and it says that > "percentages are not supported, yet" but I don't need > anything like that, I just want to vertically align to the > "middle". Does anyone know how to do this? Also which of the > , ,   > elements should it be placed in? I've tried them all and have > had no luck. I've trawled through the mailing lists and I
 > can't seem to find any answers, I have found something about > using a baseline-shift but I don't understand how to use that.>  > If vertical-align isn't supported in 0.92beta, can someone > suggest a workaround?>  > Thanks for any advice or suggestions> RoryRory,You should use display-align for that.Pascal-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
Send instant messages to your online friends http://uk.messenger.yahoo.com 

large file size for PDF

2006-10-17 Thread Chris Markiewicz








Hello.  I am generating PDFs using FOP for a client –
and he is starting to complain about file size.  It’s a fairly simple PDF
– two pages, mostly text, a handful of small images, and a few fonts. 
Doc size is around 600k.  (Handmade is about 1/10th that size.) 
Anything I can do about this?  I searched the archives but didn’t find
anything too useful.  I’m looking into iText, but it seems that this
might just be an issue with dynamically generated PDFs in general?  I’ve
also researched commercial products to shrink the PDFs – any experience
with those?

 

Thanks

Chris

 








RE: can't vertically align table cell content to "middle"

2006-10-17 Thread Pascal Sancho
> -Original Message-
> From: Rory Wales [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, October 17, 2006 2:29 PM
> 
> Hi there,
>   I'm using FOP 0.92 beta and would like to use the 
> vertical-align="middle" attribute (or equivalent) to centre 
> all my table content to the middle of each cell. I can do it 
> horizontally (  
>   I've looked on the FOP compliance page and it says that 
> "percentages are not supported, yet" but I don't need 
> anything like that, I just want to vertically align to the 
> "middle". Does anyone know how to do this? Also which of the 
> , ,   
> elements should it be placed in? I've tried them all and have 
> had no luck. I've trawled through the mailing lists and I 
> can't seem to find any answers, I have found something about 
> using a baseline-shift but I don't understand how to use that.
>  
> If vertical-align isn't supported in 0.92beta, can someone 
> suggest a workaround?
>  
> Thanks for any advice or suggestions
> Rory

Rory,
You should use display-align for that.

Pascal

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



can't vertically align table cell content to "middle"

2006-10-17 Thread Rory Wales
Hi there,
  I'm using FOP 0.92 beta and would like to use the vertical-align="middle" attribute (or equivalent) to centre all my table content to the middle of each cell. I can do it horizontally (
 
  I've looked on the FOP compliance page and it says that "percentages are not supported, yet" but I don't need anything like that, I just want to vertically align to the "middle". Does anyone know how to do this? Also which of the , ,   elements should it be placed in? I've tried them all and have had no luck. I've trawled through the mailing lists and I can't seem to find any answers, I have found something about using a baseline-shift but I don't understand how to use that.
 
If vertical-align isn't supported in 0.92beta, can someone suggest a workaround?
 
Thanks for any advice or suggestions
Rory
		 
Inbox full of spam? Get leading spam protection and 1GB storage with All New Yahoo! Mail.

RE: [Spam probable]: problem with copy text from pdf

2006-10-17 Thread Pascal Sancho
> -Original Message-
> From: Pavel Kuznetsov [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, October 17, 2006 9:51 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: [Spam probable]: problem with copy text from pdf
> 
> Please, help me!
> 
> I use FOP version 0.20.5
> for generate PDF reports.
> But is problem with copy text from PDF to clipboard.
> If I use font in FOP configuration, then view in PDF-file is 
> ok (see file ex1_view.jpg),
> but when copy text from PDF... I see this:
> (see file copy_text_from_ex1_pdf.txt)

> 

> If I don't use font, then I can't view russian characters in 
> PDF (see ex2_view.jpg),
> but if I copy text, then ok for latin characters only.
> (see file copy_text_from_ex2_pdf.txt)

> : ()

Hi Pavel,
This is a known issue until FOP v0.92beta (see [1])
This has just been fixed in latest TRUNK.

If you don't want to upgrade, as a workaround you can use a non TTF
font.

[1] http://xmlgraphics.apache.org/fop/relnotes.html#FOP+0.92+beta

Pascal

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



Re: NullPointerException while printing

2006-10-17 Thread koenig


High,
I had the same problem. It seems I have solved the problem.
Replace foUserAgent.setRendererOverride(p_renderer) with
renderer.setUserAgent(foUserAgent). I hope your printjob is 
directed to the right printer.

Andrea


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



Re: fo:inline with line-height, height, border or other block-like properties

2006-10-17 Thread Abel Braaksma

Pascal Sancho wrote:

You cannot have the FOP version in the XSL-FO file since at this stage,
FOP is not yet invoked.
  


Sorry for being unclear. I did not mean "in the XSLFO file", but "with 
the XSLFO file". Like, that there exists an instruction such as: 
 or something like that. Perhaps it just does not 
exist.



But you can check the "PDF producer" property of your PDF file, witch
gives engine+version used to make the PDF.
  


That will help. Thanks! Indeed, the document that I put online shows FOP 
0.20.5. That takes away my last uncertainty of what version was used here.


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



RE: fo:inline with line-height, height, border or other block-like properties

2006-10-17 Thread Pascal Sancho
> -Original Message-
> From: Abel Braaksma [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, October 17, 2006 10:39 AM
> 
> Pascal Sancho wrote:
> > commandLine: -v option
> > Java: org.apache.fop package, Class Version, getVersion() method. 
> >
> > Pascal
> >   
> 
> I am aware of those options, they are all at places hidden 
> for me, as a user. All I can do is provide an XSLT which 
> creates (from some source) XSLFO (which in turn is 
> automatically processed by the internal fop proc, which can 
> be different on different installations). As a user of our 
> system, I cannot access the fop.jar directly.
> 
> Hmm, perhaps I can create an extension function for XSLT. But 
> then, that will call the fop version available on the moment 
> that the XSLT is processing. Which is (in our case) not 
> necessarily the same (esp. in the aforementioned case, where 
> fop.jar was from a diff. location than I expected.
> 
> -- Abel

You cannot have the FOP version in the XSL-FO file since at this stage,
FOP is not yet invoked.
But you can check the "PDF producer" property of your PDF file, witch
gives engine+version used to make the PDF.
Awt viewer can help you too.

Pascal

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



Re: fo:inline with line-height, height, border or other block-like properties

2006-10-17 Thread Abel Braaksma

Pascal Sancho wrote:

commandLine: -v option
Java: org.apache.fop package, Class Version, getVersion() method. 


Pascal
  


I am aware of those options, they are all at places hidden for me, as a 
user. All I can do is provide an XSLT which creates (from some source) 
XSLFO (which in turn is automatically processed by the internal fop 
proc, which can be different on different installations). As a user of 
our system, I cannot access the fop.jar directly.


Hmm, perhaps I can create an extension function for XSLT. But then, that 
will call the fop version available on the moment that the XSLT is 
processing. Which is (in our case) not necessarily the same (esp. in the 
aforementioned case, where fop.jar was from a diff. location than I 
expected.


-- Abel

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



RE: fo:inline with line-height, height, border or other block-like properties

2006-10-17 Thread Pascal Sancho
> -Original Message-
> From: Abel Braaksma [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, October 17, 2006 10:17 AM
> 
> Abel,
> > 0.92a does not exists...
> >
> > Either 0.90alpha, 0.91beta, or 0.92beta
> >
> > Can you confirm what version do you use?
> >   
> 
> Pascal, Manuel,
> 
> I use 0.92beta, just checked.
> But you are right! It was a version problem! It was the 
> age-old 0.20.5 version I used, without knowing: The Eclipse 
> plugin of Oxygen was blinding my eyes. It uses a non-standard 
> way of installing (not in Eclipse plugin dir). So, I thought 
> I had upgraded fop.jar everywhere, but forgot about Oxygen.
> 
> Just tested with the correct 0.92beta. And you are both 
> right. My apologies for not checking deeper in the first 
> place (these darn java lib paths!).
> 
> This brings me to a little q.: in XSLT, I can get the vendor 
> version by using system-property("xsl:vendor"). Is there a 
> similar way for XSLFO? 
> It would prevent me for making the same mistake next time ;-)

commandLine: -v option
Java: org.apache.fop package, Class Version, getVersion() method. 

Pascal

> Cheers!
> -- Abel Braaksma
>http://www.nuntia.com


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



Re: fo:inline with line-height, height, border or other block-like properties

2006-10-17 Thread Abel Braaksma

Abel,

0.92a does not exists...

Either 0.90alpha, 0.91beta, or 0.92beta

Can you confirm what version do you use?
  


Pascal, Manuel,

I use 0.92beta, just checked.
But you are right! It was a version problem! It was the age-old 0.20.5 
version I used, without knowing: The Eclipse plugin of Oxygen was 
blinding my eyes. It uses a non-standard way of installing (not in 
Eclipse plugin dir). So, I thought I had upgraded fop.jar everywhere, 
but forgot about Oxygen.


Just tested with the correct 0.92beta. And you are both right. My 
apologies for not checking deeper in the first place (these darn java 
lib paths!).


This brings me to a little q.: in XSLT, I can get the vendor version by 
using system-property("xsl:vendor"). Is there a similar way for XSLFO? 
It would prevent me for making the same mistake next time ;-)


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

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



RE: fo:inline with line-height, height, border or other block-like properties

2006-10-17 Thread Pascal Sancho
> -Original Message-
> From: Abel Braaksma [mailto:[EMAIL PROTECTED] 
> Sent: Friday, October 13, 2006 4:27 PM
> 
> Jeremias Maerki wrote:
> > BTW, which version of FOP are you using?
> 
> version 0.92a (latest, I believe).

Abel,
0.92a does not exists...

Either 0.90alpha, 0.91beta, or 0.92beta

Can you confirm what version do you use?

(FYI, I've tried your XSL-FO both with FOP v0.92beta and FOP latest
TRUNK, and I get same result as Manual)

Pascal

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