RE: Problems with embedded font

2005-07-27 Thread Dobri Kitipov
Thank you!
I found that this is my mistake =)

Have a nice day!

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 26, 2005 11:29 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Problems with embedded font

I think your problem simply is about not having a font-triplet for the
bold variant of the font (see error message). You will need to create an
additional XML font metric file from arialbd.ttf and register it
separately like this.

font metrics-file=ttfcyrillic-bold.xml kerning=yes 
embed-file=file:///C:/WINNT/Fonts/arialbd.ttf
   font-triplet name=Cyrillic style=normal weight=bold/
/font

On 26.07.2005 13:53:17 Dobri Kitipov wrote:
snip/
 font metrics-file=ttfcyrillic.xml kerning=yes 
 embed-file=file:///C:/WINNT/Fonts/arial.ttf
 
 font-triplet name=Cyrillic style=normal weight=normal/
 
  /font

snip/

 [ERROR] unknown font Cyrillic,normal,bold so defaulted font to any


Jeremias Maerki


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


-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.5/58 - Release Date: 25.07.2005
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.5/58 - Release Date: 25.07.2005
 

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



Re: getPageCount and FOP 1.0dev

2005-07-27 Thread Jeremias Maerki
No, but you're welcome to help improve the situation. :-)

On 27.07.2005 03:50:46 Manuel Mall wrote:
 Jeremias post on fop-dev suggesting to push for a release made me curious to
 check out if the new trunk code will work with our application. Downloading
 it with subversion and building it with ant was not a big problem (These
 things never seem to be 100% straightforward). Some of the interfaces have
 changed and what was ...apps.Driver is now sort of ...apps.Fop. Not such a
 big deal especially as examples exist, just a nuisance if you only want to
 see if the new trunk code works with what we have got as it means code
 changes to existing code. However I am stuck with how to replace the old
 driver.getResults().getPageCount(). Is there something equivalent in
 1.0dev?


Jeremias Maerki


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



RE: Resizing SVG

2005-07-27 Thread Pascal Sancho



Hi,

You cannot resize your picture directly if it is an 
external graphic (in FOP 0.20.5, scaling is not supported -- see 
[1])

However, you can try this (I have never experimented it 
-- take care with namespaces):

1. In your xslt, refer to your SVG document, using the 
document() XSLT function
2. make a fo:instream-foreign-object as the SVG 
container
3. transform your SVG xml as 
follows:
 - change width and height 
attribute ofthe svg:svg element.
 - if needed (that should be), add 
both viewbox and preserveAspectRatio attributes to your svg:svg 
element.
- copy the whole rest of 
xml

Good luck (if you try it, please feed 
back)

[1] http://xml.apache.org/fop/compliance.html#fo-property-scaling

Pascal


  
  
  
  De: Samuel Remacle [mailto:[EMAIL PROTECTED] 
  Envoyé: mardi 26 juillet 2005 22:57
  I'm not sure you understood my 
  problem, the SVG should be bigger in my application than in the PDF, so as it 
  will be first viexed in the application, I need to resize it in the XSL-FO 
  file, and I need to keep the proportions.
  
  
  So I'd like to no if there's a way to do that, does anyone know?
  From: "J.Pietschmann" [EMAIL PROTECTED]Samuel 
  Remacle wrote:application is ok. But after when I generate a PDF 
  file from my application the SVG image is too big for an A4 
  document. So I'd like to know if there's a way to resize my SVG 
  image keeping the proportions.Generate your SVG 
  with a width and heigth attribute on your to levelsvg:svg element, 
  both in either cm, in or pt but not in pixel (nomeasurement unit). The 
  height and width should represent the actualmeasurements in the PDF. 
  Use the same heigth and width on thefo:external-graphic or 
  fo:instream-foreign-object in the FO 
source.


AW: build dynamic tables with FOP

2005-07-27 Thread Jens-Christian . Pohl
Hi, 

thanks to everyone on the list helping me on this issue. In fact it worked out 
by changing the base XML to something like: 

table
 columns cols=3 number=0/
 columns cols=3 number=1/
 columns cols=3 number=2/
  tr
 

which enables me to react on it in the XSL:FO file: 

xsl:for-each select=columns
fo:table-column column-width=proportional-column-width(1) /  
  /xsl:for-each 

and: which is leading me to another question - how can i optimise the width of 
the column ? I cannot fetch the width since its written in some CSS elsewhere 
on the server. 

Reading about this function proportional-column-width(num) i found out, that 
it might be used together with the table-layout='fixed' attribute value. But 
how can i estimate how much percentage i.e. should be calculated for the column 
or is there any kind of link between these functions/attributes to receive a 
kind of automation ?!

Thanks + kind regards from Hamburg

Jens




-Ursprüngliche Nachricht-
Von: Andreas L Delmelle [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 26. Juli 2005 22:54
An: fop-users@xmlgraphics.apache.org
Betreff: Re: AW: build dynamic tables with FOP

On Jul 26, 2005, at 22:51, Jeff Stanley wrote:

 I use number-columns-repeated often and I use 0.20.5.

Sorry, must be an error on our compliance page then... It said no.

http://xml.apache.org/fop/compliance.html#fo-property-number-columns-
repeated


Greetz,

Andreas


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



fop 1.0dev

2005-07-27 Thread Bielik, Robert
I've managed to get fop1.0dev built with JDK1.3, however I want to user the
AWTRenderer. As the API has been reworked from scratch ;) I don't know how
to change my code, and as there is no example showing AWT rendering...

Anybody have an example?

TIA
/R

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



RE: Resizing SVG

2005-07-27 Thread Samuel Remacle

Hello
My picture isn't an external graphic, it's an instream foreign object so I have to usethe preserveAspectRatio attribute? And if I resize the whole svg document but I keep the same size for the differents elements (rectangles, circles, etc.) it doesn't matter? They will be resized?
Thanks for your answers
SamuelFrom: "Pascal Sancho" [EMAIL PROTECTED]Reply-To: fop-users@xmlgraphics.apache.orgTo: fop-users@xmlgraphics.apache.orgSubject: RE: Resizing SVGDate: Wed, 27 Jul 2005 09:54:20 +0200Hi,You cannot resize your picture directly if it is an external graphic (in FOP 0.20.5, scaling is not supported -- see [1])However, you can try this (I have never experimented it -- take care with namespaces):1. In your xslt, refer to your SVG document, using the document() XSLT function2. make a fo:instream-foreign-object as the SVG container3. transform your SVG xml as follows: - change width and height attribute of the svg:svg element. - if needed (that should be), add both viewbox and 
preserveAspectRatio attributes to your svg:svg element. - copy the whole rest of xmlGood luck (if you try it, please feed back)[1] http://xml.apache.org/fop/compliance.html#fo-property-scalingPascal _ De : Samuel Remacle [mailto:[EMAIL PROTECTED] Envoyé : mardi 26 juillet 2005 22:57 I'm not sure you understood my problem, the SVG should be bigger in my application than in the PDF, so as it will be first viexed in the application, I need to resize it in the XSL-FO file, and I need to keep the proportions. So I'd like to no if there's a way to do that, does anyone know? From: "J.Pietschmann" [EMAIL PROTECTED]  Samuel Remacle wrote: application is 
ok. But after when I generate a PDF file from my application the SVG image is too big for an A4 document. So I'd like to know if there's a way to resize my SVG image keeping the proportions.  Generate your SVG with a width and heigth attribute on your to level svg:svg element, both in either cm, in or pt but not in pixel (no measurement unit). The height and width should represent the actual measurements in the PDF. Use the same heigth and width on the fo:external-graphic or fo:instream-foreign-object in the FO source.


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



Re: fop 1.0dev

2005-07-27 Thread Jeremias Maerki
Give me an hour or so and I can put an example in the repository.

On 27.07.2005 10:45:11 Bielik, Robert wrote:
 I've managed to get fop1.0dev built with JDK1.3, however I want to user the
 AWTRenderer. As the API has been reworked from scratch ;) I don't know how
 to change my code, and as there is no example showing AWT rendering...
 
 Anybody have an example?


Jeremias Maerki


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



RE: fop 1.0dev

2005-07-27 Thread Bielik, Robert
Great! Thanks!

/R

 -Original Message-
 From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 27, 2005 11:00 AM
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: fop 1.0dev
 
 
 Give me an hour or so and I can put an example in the repository.
 
 On 27.07.2005 10:45:11 Bielik, Robert wrote:
  I've managed to get fop1.0dev built with JDK1.3, however I 
 want to user the
  AWTRenderer. As the API has been reworked from scratch ;) I 
 don't know how
  to change my code, and as there is no example showing AWT 
 rendering...
  
  Anybody have an example?
 
 
 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: fop 1.0dev

2005-07-27 Thread Jeremias Maerki
ExampleAWTViewer.java that was available in 0.20.5 is now available for
FOP Trunk. I'll add a printing example right after lunch.

http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleAWTViewer.java?view=markup

On 27.07.2005 10:45:11 Bielik, Robert wrote:
 I've managed to get fop1.0dev built with JDK1.3, however I want to user the
 AWTRenderer. As the API has been reworked from scratch ;) I don't know how
 to change my code, and as there is no example showing AWT rendering...
 
 Anybody have an example?


Jeremias Maerki


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



Re: fop 1.0dev

2005-07-27 Thread Jeremias Maerki
I've added the printing example to the repo:
http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleFO2OldStylePrint.java?view=markup

If you need anything else, just tell me.


On 27.07.2005 12:28:20 Jeremias Maerki wrote:
 ExampleAWTViewer.java that was available in 0.20.5 is now available for
 FOP Trunk. I'll add a printing example right after lunch.
 
 http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleAWTViewer.java?view=markup
 
 On 27.07.2005 10:45:11 Bielik, Robert wrote:
  I've managed to get fop1.0dev built with JDK1.3, however I want to user the
  AWTRenderer. As the API has been reworked from scratch ;) I don't know how
  to change my code, and as there is no example showing AWT rendering...
  
  Anybody have an example?



Jeremias Maerki


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



Re: MS Word RTF page numbering error

2005-07-27 Thread Jeremias Maerki
I've just run examples/fo/basic/readme.fo through FOP and Word prints
the page number just fine. The page numbers in RTF are fields, and maybe
they are not properly updated due to some obscure reason. There is a
setting accessible through the Options button in Word's print dialog
which enables automatic updating of fields for printing. Maybe enabling
this helps.

If it doesn't help send my the FO and the generated RTF file so I can
investigate if it's somehow FOP's fault, although I doubt it.

HTH

On 27.07.2005 18:09:30 Daniel Brown wrote:
 I have an interesting issue. When converting from FO to RTF, the
 resulting document's page number are correct when I view the RTF in MS
 Word. However, when printing the document the numbering is incorrect --
 Page 2 prints as Page 3. Page 2 appears as Page 2 when viewing the
 document.
 
 Has anyone else run into this? Is this a Word bug and if so, what is the way 
 around it?


Jeremias Maerki


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



Re: MS Word RTF page numbering error

2005-07-27 Thread Daniel Brown
Ok. I just printed with that option selected with the same result. However, someone else in the office with Word 2003 (I have 2002) printed the document with the correct page number results. I think it's a Word version error.D Jeremias Maerki [EMAIL PROTECTED]07/27/2005 18:36 ZE2Please respond [EMAIL PROTECTED] To  fop-users@xmlgraphics.apache.org cc   bcc   Subject  Re: MS Word RTF page numbering error I've just run examples/fo/basic/readme.fo through FOP and Word printsthe page number just fine. The page numbers in RTF are fields, and maybethey are not properly updated due to some obscure reason. There is asetting accessible through the Options button in Word's print dialogwhich enables automatic updating of fields for printing. Maybe enablingthis helps.If it doesn't help send my the FO and the generated RTF file so I caninvestigate if it's somehow FOP's fault, although I doubt it.HTHOn 27.07.2005 18:09:30 Daniel Brown wrote: I have an interesting issue. When converting from FO to RTF, the resulting document's page number are correct when I view the RTF in MS Word. However, when printing the document the numbering is incorrect -- Page 2 prints as Page 3. Page 2 appears as Page 2 when viewing the document. Has anyone else run into this? Is this a Word bug and if so, what is the way around it?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: MS Word RTF page numbering error

2005-07-27 Thread Jeremias Maerki
Argh. It really looks like a version problem. Just to be sure I checked
the RTF specs to find out if FOP really produces the right command for
printing the page number and it does (\chpgn).

On 27.07.2005 18:48:10 Daniel Brown wrote:
 Ok. I just printed with that option selected with the same result.
 However, someone else in the office with Word 2003 (I have 2002)
 printed the document with the correct page number results. I think it's a Word
 version error.


Jeremias Maerki


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



Setting PDF document properties

2005-07-27 Thread Johannes Stuermer
I am using FOP in a Java servlet to return the PDF directly in the
outputstream as content type 'application/pdf'.

My question:

Is it possible to change the PDF document property called File in addition
to the properties Title, Author, Subject and Keywords? Currently, the File
property (the first item on the PDF document property dialog - in Acrobat
Reader 7.0) shows the name of the Java servlet. I would like to give it
another name so when somebody saves the PDF the default filename shown in
the save dialog shows a more appropriate name.

Thank You

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



Re: [EMAIL PROTECTED] last week

2005-07-27 Thread Simon Pepping
And nice pictures. Now I can put a face to a few names.

Simon

On Tue, Jul 26, 2005 at 09:51:56PM +0200, Simon Pepping wrote:
 Jeremias,
 
 A fine presentation. Thanks.
 
 Simon
 
 On Mon, Jul 25, 2005 at 03:22:39PM +0200, Jeremias Maerki wrote:
  I would like to thank everyone from the FOP user community who attended
  ApacheCon last week and my session on FOP in particular. Also, thank you
  for the various feedback I got and the good talks I had with some of you.
  
  I think people are happy that they get a signal that FOP is not dead and
  the end of the tunnel is visible. Personally, I was quite surprised
  to see how many Apache projects are actually using (or have used) FOP
  (directly or indirectly) and how important it is for them to have FOP
  around. A similar picture from outside the ASF. I hope with some final
  effort we can prepare FOP to be attractive again to everyone, especially
  to new contributors.
  
  I especially enjoyed meeting Christian Geisert (a FOP committer) in
  person. He lives only 1 hour from Stuttgart so he decided to come in for
  a visit on Tuesday.
  
  If anyone wants to look up my slides for the FOP session, they are
  available from here:
  http://wiki.apache.org/apachecon/Eu2005OnlineSessionSlides
  
  FOP lives! :-)
  
  Jeremias Maerki
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 -- 
 Simon Pepping
 home page: http://www.leverkruid.nl
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
Simon Pepping
home page: http://www.leverkruid.nl


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



Re: Setting PDF document properties

2005-07-27 Thread Jeremias Maerki
There's no element in PDF to control that. Maybe you can simply attach a
?filename=MyDocument.pdf at the end of the URL to make Acrobat Reader
display that. I haven't tested it, though.

On 27.07.2005 21:48:48 Johannes Stuermer wrote:
 I am using FOP in a Java servlet to return the PDF directly in the
 outputstream as content type 'application/pdf'.
 
 My question:
 
 Is it possible to change the PDF document property called File in addition
 to the properties Title, Author, Subject and Keywords? Currently, the File
 property (the first item on the PDF document property dialog - in Acrobat
 Reader 7.0) shows the name of the Java servlet. I would like to give it
 another name so when somebody saves the PDF the default filename shown in
 the save dialog shows a more appropriate name.


Jeremias Maerki


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



Re: Setting PDF document properties

2005-07-27 Thread J.Pietschmann

Johannes Stuermer wrote:

I am using FOP in a Java servlet to return the PDF directly in the
outputstream as content type 'application/pdf'.

My question:

Is it possible to change the PDF document property called File in addition
to the properties Title, Author, Subject and Keywords? Currently, the File
property (the first item on the PDF document property dialog - in Acrobat
Reader 7.0) shows the name of the Java servlet. I would like to give it
another name so when somebody saves the PDF the default filename shown in
the save dialog shows a more appropriate name.


There is no such PDF property. The browser's save dialog just uses the
last component of the URL as default file name. A way to change this is
to use a HTTP header like
 Content-Disposition: attachment; filename=yourdefaultfilename.pdf
The mailing list archive should have enough code samples.

J.Pietschmann

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



embedding output escaping

2005-07-27 Thread Fabrizio Caldas

Hello everyone,

This question has probably come up before, but  couldn't find it in the 
archives

I want to disable output escaping.

Here's an example:
public static ObjXml createSampleObj() {
 ObjXml obj = new ObjXml();

 obj.setTitle(a href=\http://www.sample.com\;Sample Title/a);
}

public static void main(String[] args) {
 app.convertObj2XML(obj, C:\\xmlfile.xml);
 app.convertObj2PDF(obj, C:\\pdffile.pdf);
}

The xml output is 'lt';a href=http://www.sample.com;'gt';Sample 
Title'lt';/agt';

And on the PDF its just text not a link.

Does anyone know how to escape this?

Fabrizio.

_
Chegou o que faltava: MSN Acesso Grátis. Instale Já! 
http://www.msn.com.br/discador



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



Re: [EMAIL PROTECTED] last week

2005-07-27 Thread Christian Geisert

[EMAIL PROTECTED] schrieb:

I think we should start a FOP users/Success stories wiki page

I could contribute to that. I use FOP for all the document production 


Yes please!!

needs of a small software company. The documents are as large as 2000 
pages, with as many as 25,000 internal links, all fully bookmarked.


If you get such a thing going and post a link, I'll stop by and provide 
more depth about what I do with FOP here.


It's wiki so just add the links yourself at 
http://wiki.apache.org/xmlgraphics-fop/ and start writing ;-)

I think two pages would be a good idea, one FopUsers (or PowerdByFOP?)
for Companys/Projects using FOP and SuccessStories for more detailed
Stories.

Christian

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



Re: embedding output escaping

2005-07-27 Thread Andreas L Delmelle

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Jul 27, 2005, at 23:57, Fabrizio Caldas wrote:

Hi,

This question has probably come up before, but couldn't find it in the 
archives. I want to disable output escaping.


Here's an example:
public static ObjXml createSampleObj() {
 ObjXml obj = new ObjXml();

 obj.setTitle(a href=\http://www.sample.com\;Sample Title/a);
}

public static void main(String[] args) {
 app.convertObj2XML(obj, C:\\xmlfile.xml);
 app.convertObj2PDF(obj, C:\\pdffile.pdf);
}

The xml output is 'lt';a href=http://www.sample.com;'gt';Sample 
Title'lt';/agt'; And on the PDF its just text not a link.




First things first: Neither in PDF nor in XSL-FO can this be considered 
a link, since after all, it IS an HTML element.


The correct FO syntax that corresponds to this HTML :

a href=...Click here/a

is

fo:basic-link external-destination=...Click here/fo:basic-link


Does anyone know how to escape this?


Not exactly, nor do I believe you really need to. I think your problem 
is caused by the internals of the methods ObjXml.setTitle() and 
app.convertObj2XML().
Presumably, the first stores the text as a java.lang.String member 
variable of the object in question, while the second writes that String 
to the output XML file --as text, so escaping the usual markup 
characters and/or quotes.
(Analogous to our own embedding example: in ProjectTeam.java, the 
setProjectName() method is only used to store the name as a String. If 
you look at ProjectTeamXMLReader.java, you will see that ultimately a 
new projectname-element is created and the name is only used as its 
content.)


I have a feeling the setTitle() method is incorrectly being used. You 
expect it to magically transform character data containing markup 
- --HTML markup no less-- to a FO element in the output file.
If you just take a closer look at that embedding example, I think 
you'll be able to figure it out. If not, just yell.



HTH!

Greetz,

AD
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFC6CgFyHTbFO9b8aARAljVAKC7zzh2HdZoa3qC4ustw992bmAd1wCgvBYr
9CKrDkObMtStVVQPy+o34Uo=
=fU8S
-END PGP SIGNATURE-


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