RE: How do you switch between page-sequences?

2005-03-07 Thread Dennis Myrén
Patrick, 

Although next time you might consider posting a such question to a pure XSLT 
newsgroup/mailing list;

You can have to simple-page-master, one defining a portrait layout and the 
other defining the
landscape layout. Name one portrait and the other landscape.

Then you can have something like:
xsl:template match=XMLTABLE_PARENT_NODE
fo:page-sequence
xsl:attribute name=master-reference
xsl:choose
xsl:when test=0 = 
count(xmltable)portrait/xsl:when
xsl:otherwiselandscape/xsl:otherwise
/xsl:choose   
/xsl:attribute
!-- ... --
/fo:page-sequence
/xsl:template

Regards,
Dennis JD Myrén
Developer
Oslo Kodebureau
Tel:  (+47) 98 00 11 92
Mail:   [EMAIL PROTECTED]
Web:   www.oslokb.no
-Original Message-
From: Talken, Patrick (AGRE) [mailto:[EMAIL PROTECTED] 
Sent: 4. mars 2005 17:50
To: [EMAIL PROTECTED]
Subject: How do you switch between page-sequences?


Is it possible to switch between page-sequences based on an xml tag?


What I need to have is a document that starts with pages in portrait and
then at some point in the document switch to landscape for an unknown
number of pages and then back into portrait for an unknown number of
pages. The switching between portrait and landscape and then back to
portrait will be determined by the presence or absence of the tag
xmltable.

If xmltag present use page-sequence for landscape

If xmltag is not present use page-sequence for portrait


Thanks,

Patrick Talken



**
The information contained in, or attached to, this e-mail, may contain 
confidential information and is intended solely for the use of the individual 
or entity to whom they are addressed and may be subject to legal privilege.  If 
you have received this e-mail in error you should notify the sender immediately 
by reply e-mail, delete the message from your system and notify your system 
manager.  Please do not copy it for any purpose, or disclose its contents to 
any other person.  The views or opinions presented in this e-mail are solely 
those of the author and do not necessarily represent those of the company.  The 
recipient should check this e-mail and any attachments for the presence of 
viruses.  The company accepts no liability for any damage caused, directly or 
indirectly, by any virus transmitted in this email.
**

-
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: flow must contain block-level children

2005-03-01 Thread Dennis Myrén
Neeru,

You can test if there are any occurrences of CodeDecode, if not then just write 
out an empty block:
fo:page-sequence master-reference=page3
fo:flow flow-name=body3
xsl:choose
xsl:when test=0 lt; count(CodeDecode)
xsl:apply-templates select=CodeDecode /
/xsl:when
xsl:otherwise
fo:block /
/xsl:otherwise
  xsl:choose
   /fo:flow
/fo:page-sequence


Regards,
Dennis JD Myrén
Developer
Oslo Kodebureau
Tel:  (+47) 98 00 11 92
Mail:   [EMAIL PROTECTED]
Web:   www.oslokb.no
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 1. mars 2005 16:36
To: [EMAIL PROTECTED]
Subject: fo:flow must contain block-level children





I get the following error
  fo:flow must contain block-level children
when I don't have the matching elements in my xml by using the following
code generates the error.

fo:page-sequence master-reference=page3
fo:flow flow-name=body3
  xsl:apply-templates select=CodeDecode
  /xsl:apply-templates
   /fo:flow
/fo:page-sequence

If I replace the above code with the code below I get an extra blank page
and I want to suppress this blank page

fo:page-sequence master-reference=page3
fo:flow flow-name=body3
  fo:block
  xsl:apply-templates select=CodeDecode
  /xsl:apply-templates
  /fo:block
   /fo:flow
/fo:page-sequence

Thanks

-Neeru

--
Le présent message ainsi que ses éventuelles pièces jointes est
exclusivement destiné au(x) destinataire(s), personnes physiques ou
morales, qu'il désigne.
Il constitue de ce fait une correspondance à caractère privé et peut
contenir des informations confidentielles.
Si ce message vous est parvenu par erreur, nous vous remercions d'en aviser
immédiatement l'expéditeur par retour de courrier électronique puis de le
détruire, ainsi que ses éventuelles pièces jointes, sans en conserver de
copie.


This message, including any attachment, is intended for the use of the
individual or entity to which it is addressed.
It is therefore to be considered as a private correspondence which may
contain confidential information.
If you are not the intended recipient, please advise the sender immediately
by reply e.mail and delete this message and any attachment thereto without
retaining a copy.
--


-
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: flow must contain block-level children

2005-03-01 Thread Dennis Myrén
Yes, of course. Sorry.

Regards,
Dennis JD Myrén
Developer
Oslo Kodebureau
Tel:  (+47) 98 00 11 92
Mail:   [EMAIL PROTECTED]
Web:   www.oslokb.no

-Original Message-
From: Glen Mazza [mailto:[EMAIL PROTECTED] 
Sent: 1. mars 2005 17:14
To: [EMAIL PROTECTED]
Subject: RE: flow must contain block-level children

I don't think that helps, because he still gets the
empty fo:block and hence the blank page.  But by
rearranging your code, perhaps this will work instead:

xsl:choose
xsl:when test=0 lt; count(CodeDecode)
fo:page-sequence master-reference=page3
fo:flow flow-name=body3
xsl:apply-templates select=CodeDecode /
/fo:flow
 /fo:page-sequence
/xsl:when
xsl:otherwise
/xsl:otherwise
   xsl:choose

I think this will work.  No fo:page-sequence--and
hence no blank page--will be output if there is no
data.

Glen


--- Dennis Myrén [EMAIL PROTECTED] wrote:

 Neeru,
 
 You can test if there are any occurrences of
 CodeDecode, if not then just write out an empty
 block:
 fo:page-sequence master-reference=page3
 fo:flow flow-name=body3
   xsl:choose
   xsl:when test=0 lt; count(CodeDecode)
   xsl:apply-templates select=CodeDecode /
   /xsl:when
   xsl:otherwise
   fo:block /
   /xsl:otherwise
   xsl:choose
/fo:flow
 /fo:page-sequence
 
 
 Regards,
 Dennis JD Myrén
 Developer
 Oslo Kodebureau
 Tel:  (+47) 98 00 11 92
 Mail:   [EMAIL PROTECTED]
 Web:   www.oslokb.no
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] 
 Sent: 1. mars 2005 16:36
 To: [EMAIL PROTECTED]
 Subject: fo:flow must contain block-level children
 
 
 
 
 
 I get the following error
   fo:flow must contain block-level children
 when I don't have the matching elements in my xml by
 using the following
 code generates the error.
 
 fo:page-sequence master-reference=page3
 fo:flow flow-name=body3
   xsl:apply-templates select=CodeDecode
   /xsl:apply-templates
/fo:flow
 /fo:page-sequence
 
 If I replace the above code with the code below I
 get an extra blank page
 and I want to suppress this blank page
 
 fo:page-sequence master-reference=page3
 fo:flow flow-name=body3
   fo:block
   xsl:apply-templates select=CodeDecode
   /xsl:apply-templates
   /fo:block
/fo:flow
 /fo:page-sequence
 
 Thanks
 
 -Neeru
 

--
 Le présent message ainsi que ses éventuelles pièces
 jointes est
 exclusivement destiné au(x) destinataire(s),
 personnes physiques ou
 morales, qu'il désigne.
 Il constitue de ce fait une correspondance à
 caractère privé et peut
 contenir des informations confidentielles.
 Si ce message vous est parvenu par erreur, nous vous
 remercions d'en aviser
 immédiatement l'expéditeur par retour de courrier
 électronique puis de le
 détruire, ainsi que ses éventuelles pièces jointes,
 sans en conserver de
 copie.
 
 
 This message, including any attachment, is intended
 for the use of the
 individual or entity to which it is addressed.
 It is therefore to be considered as a private
 correspondence which may
 contain confidential information.
 If you are not the intended recipient, please advise
 the sender immediately
 by reply e.mail and delete this message and any
 attachment thereto without
 retaining a copy.

--
 
 

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


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



RE: RE : Contributing to FOP (Re: representative example needed)

2005-02-25 Thread Dennis Myrén








Hi there,





Sorry,

My goal is to post these files, however
there are some work I have to do on them in order to make them look nice and
clean,

I really want to do that before anyone
looks at them, to really get them representative, but I have had a
lot of other work lately,

so I havent been able to finish
them up yet.



For us it has really been what the
transform produces that was critical.

I never took the time to develop nice and
efficient XSLT transforms.

One example is the graphs in those
PDFs, I generate those graphs with an intermediate tool that I wrote
which generates SVG graphs from data and layout input in XML format. This SVG
graphs is first generated as separate files, then copied into the final FO
document at

FO compile time, using XSLT
document() function. This is a rather odd approach which I do not know how I
can best present to the FOP users/developers who might be interested in seeing
the solution, I am therefore thinking of moving these solutions to EXSLT
instead, and use _javascript_ to compute layout and render the graph to SVG.

XSLT itself is unfortunately not enough to
generate these graphs.



I was glad to see there where actually FOP
people that was a bit interested in the work I have done with FOP,

now i do not want to disappoint people by
sending these XSLT transforms that is just not clean enough as of today.







Regards,

Dennis JD Myrén

Developer

Oslo Kodebureau

Tel: (+47) 98
00 11 92

Mail: [EMAIL PROTECTED]

Web: www.oslokb.no











From: David Gagnon
[mailto:[EMAIL PROTECTED] 
Sent: 24. februar 2005 22:08
To: [EMAIL PROTECTED]
Subject: RE : Contributing to FOP
(Re: representative example needed)





Hi all,



 I was looking for
a good example as well those pdf are impressive. I was wondering if the
.fo and .xml regarding those examples have been posted somewhere? I
looked into the bug database and haven`t found them are they available?



Thanks for your help!!

/David







-Message d'origine-
De: Dennis
 Myrén [mailto:[EMAIL PROTECTED] 
Envoyé: February 9, 2005
03:48
À: [EMAIL PROTECTED]
Objet: RE: Contributing to
FOP (Re: representative example needed)



Unfortunately, I get
an error when I try to view those links: 

HTTP Error 403.6 - Forbidden:
IP address of the client has been rejected. 

Internet Information Services
(IIS) 



That was
really awkward, and not what I intended.

The URLs should work by now. Sorry about that.

Here
they are again:

http://dev.oslokb.no:8080/dennis/Sample1.pdf


http://dev.oslokb.no:8080/dennis/Sample2.pdf


http://dev.oslokb.no:8080/dennis/Sample3.pdf




BTW I have a couple
of questions: 

- if we like what we
see (I get an error--see below), can we post this example PDF? 

- if we like what we
see (I get an error--see below), can we post the input files (XSL-FO, XML,
XSLT, etc.)?

Of course you are free to
do that.





Perhaps after you've
participated in the FOP community for some time, and your name becomes familiar
to us (and hopefully made some contributions to the code! :-p) you may be
invited to become a committer for Apache FOP!

I will do my best to get
there!





Maybe I could implement
support for CMYK and Spot colors to get started, if this is of interest to you.

Wouldnt this be
cool?:

fo:block
color=spot(PANTONE 1205 C, 1.0)Hello
FOP/fo:block



Regards,

Dennis JD Myrén

Developer

Oslo Kodebureau

Tel:
(+47) 98 00 11 92

Mail:
[EMAIL PROTECTED]

Web:
www.oslokb.no















From: The Web
Maestro [mailto:[EMAIL PROTECTED] 
Sent: 8. februar 2005 17:18
To: [EMAIL PROTECTED]
Subject: Contributing to FOP (Re:
representative example needed)







Dennis, 







On Feb 8, 2005, at 7:54 AM,
Dennis Myrén wrote: 







I should say a few words
as well. 







I work as a computer
programmer for a small software firm. 







We have thought for a
long time that it is time to give something back to FOP, 





in form of development
contribution. 





I have been programming
PDF components for a long time and know the PDF file format, as well as XSL-FO.






Therefore, i think i
might be able to help out. 





However, we havent really
taken the time for that. Now i think we can do that, so i hereby also let you
know that i am interested in starting to contribute. 









Thanks for the kind
words, and we look forward to receiving PATCHes from you. Here's a link to help
you get started. 







http://xml.apache.org/fop/dev/#patches










3 examples of documents that
we have generated(targeting mass printing for broschure production) you can
find here: 





http://dev.oslokb.no:8080/dennis/Sample1.pdf








http://dev.oslokb.no:8080/dennis/Sample2.pdf








http://dev.oslokb.no:8080/dennis/Sample3.pdf










BTW I have a couple of
questions: 





- if we like what we see
(I get an error--see below), can we post this example PDF? 





- if we like what we see
(I get an error--see below), can we post the input files (XSL-FO, XML, XSLT,
etc

RE: Contributing to FOP (Re: representative example needed)

2005-02-10 Thread Dennis Myrén









Hi again and thank you for your response.



I will post the files as of our agreement as
soon as possible.

Just going to take the time to tidy the XSLT
transform up and translate comments and such to English.



I will let you know as I have posted the
files.





Regards,

Dennis JD Myrén

Developer

Oslo Kodebureau

Tel: (+47) 98
00 11 92

Mail: [EMAIL PROTECTED]

Web: www.oslokb.no











From: The Web Maestro
[mailto:[EMAIL PROTECTED] 
Sent: 9. februar 2005 17:20
To: [EMAIL PROTECTED]
Subject: Re: Contributing to FOP
(Re: representative example needed)







On Feb 9, 2005, at 12:47 AM, Dennis Myrén
wrote: 







Unfortunately, I get an error when I try to view those links:






HTTP Error 403.6 - Forbidden: IP address of the client
has been rejected. 





Internet Information Services (IIS) 







That was really awkward, and not what I
intended. 







The URLs should work
by now. Sorry about that. 







Here they are again: 







http://dev.oslokb.no:8080/dennis/Sample1.pdf 







http://dev.oslokb.no:8080/dennis/Sample2.pdf 







http://dev.oslokb.no:8080/dennis/Sample3.pdf 









I got them, and they downloaded and opened fine on my machine. 









BTW I have a couple of questions: 





- if we like what we see (I get an error--see below), can we post
this example PDF? 





- if we like what we see (I get an error--see below), can we post
the input files (XSL-FO, XML, XSLT, etc.)? 







Of course you are free to do that. 









Excellent, please do me/us a favor (I hope it's not too much to ask!): 





1. ZIP the input files*.xml, *.xsl, *.fo, *.jpg, *.tif, etc. (whatever
files used to create these) and Sample1.pdf, Sample2.pdf  Sample3.pdf
files. 





2. Create a new BUG in bugzilla and attach these the ZIP
file containing all of the files. 







Of course, it would help to have the information in there translated to
English, since (I suspect) that is the most 'common' language used for FOP
development. 









Perhaps after you've participated in the FOP community for some
time, and your name becomes familiar to us (and hopefully made some
contributions to the code! :-p) you may be invited to become a committer for
Apache FOP! 







I will do my best to get there! 









We look forward to 'seeing' you around... 









Maybe I could implement support for CMYK and Spot colors to get
started, if this is of interest to you. 







Wouldnt this be cool?: 







fo:block color=spot(PANTONE 1205 C, 1.0)Hello
FOP/fo:block 









That would be cool, and help many, many people! Thanks! 







Web Maestro Clay 





-- 





[EMAIL PROTECTED] -
http://homepage.mac.com/webmaestro/ 





My religion is simple. My religion is kindness. 





- HH The 14th Dalai Lama of Tibet 










RE: Contributing to FOP (Re: representative example needed)

2005-02-09 Thread Dennis Myrén








Unfortunately, I get an error when I try to view those links: 

HTTP Error 403.6 - Forbidden: IP address of the client
has been rejected. 

Internet Information Services (IIS) 



That was really awkward, and not what I intended.

The URLs should
work by now. Sorry about that.

Here they are again:

http://dev.oslokb.no:8080/dennis/Sample1.pdf


http://dev.oslokb.no:8080/dennis/Sample2.pdf


http://dev.oslokb.no:8080/dennis/Sample3.pdf




BTW I have a couple of questions: 

- if we like what we see (I get an error--see below), can we post
this example PDF? 

- if we like what we see (I get an error--see below), can we post
the input files (XSL-FO, XML, XSLT, etc.)?

Of course you are free to do that.





Perhaps after you've participated in the FOP community for some
time, and your name becomes familiar to us (and hopefully made some
contributions to the code! :-p) you may be invited to become a committer for
Apache FOP!

I will do my best to get there!





Maybe I could implement support for CMYK and Spot colors to get started,
if this is of interest to you.

Wouldnt this be cool?:

fo:block color=spot(PANTONE 1205 C, 1.0)Hello
FOP/fo:block



Regards,

Dennis JD Myrén

Developer

Oslo Kodebureau

Tel: (+47) 98
00 11 92

Mail: [EMAIL PROTECTED]

Web: www.oslokb.no











From: The Web Maestro
[mailto:[EMAIL PROTECTED] 
Sent: 8. februar 2005 17:18
To: [EMAIL PROTECTED]
Subject: Contributing to FOP (Re:
representative example needed)







Dennis, 







On Feb 8, 2005, at 7:54 AM, Dennis Myrén
wrote: 







I should say a few words as well. 







I work as a computer programmer for a small software firm. 







We have thought for a long time that it is time to give something back
to FOP, 





in form of development contribution. 





I have been programming PDF components for a long time and know the PDF
file format, as well as XSL-FO. 





Therefore, i think i might be able to help out. 





However, we havent really taken the time for that. Now i think we can
do that, so i hereby also let you know that i am interested in starting to
contribute. 









Thanks for the kind words, and we look forward to receiving PATCHes
from you. Here's a link to help you get started. 







http://xml.apache.org/fop/dev/#patches 









3 examples of documents that we have generated(targeting mass printing
for broschure production) you can find here: 





http://dev.oslokb.no:8080/dennis/Sample1.pdf 







http://dev.oslokb.no:8080/dennis/Sample2.pdf 







http://dev.oslokb.no:8080/dennis/Sample3.pdf 









BTW I have a couple of questions: 





- if we like what we see (I get an error--see below), can we post this
example PDF? 





- if we like what we see (I get an error--see below), can we post the
input files (XSL-FO, XML, XSLT, etc.)? 







Unfortunately, I get an error when I try to view those links: 







HTTP Error 403.6 - Forbidden: IP address of the client has
been rejected. 





Internet Information Services (IIS) 







Perhaps after you've participated in the FOP community for some time, and
your name becomes familiar to us (and hopefully made some contributions to the
code! :-p) you may be invited to become a committer for Apache FOP! 







Cheers! 







Web Maestro Clay 





-- 





[EMAIL PROTECTED] -
http://homepage.mac.com/webmaestro/ 





My religion is simple. My religion is kindness. 





- HH The 14th Dalai Lama of Tibet 










RE: representative example needed

2005-02-08 Thread Dennis Myrén
I should say a few words as well.

I work as a computer programmer for a small software firm.

We first started looking at FOP late 2001, because we had a potential bank as 
customer who liked to have their public yearly funds development reports
produced by us.

By Norwegian law, the development of a bank's funds must be reported to the 
public 2 times a year.
So there is loads of data that has to be processed and visually presented(both 
print and PDF for web), this would be almost impossible to do by hand.
We have two of Norway's biggest banks in our portfolio by now.
This has been a great success for us.

The only problems we have is, since we use PANTONE/CMYK colors for print 
documents, we need to carry out an automated color replace job since FOP only 
handles RGB.
We have had some minor layout problems due to the lack of support for the
space-before.conditionality/space-after.conditionality attributes(or whatever 
it is called),
that would have made it possible to insert spaces between objects in a flowing 
page only where appropriate.

FOP has really helped us here.

We have thought for a long time that it is time to give something back to FOP,
in form of development contribution.
I have been programming PDF components for a long time and know the PDF file 
format, as well as XSL-FO.
Therefore, i think i might be able to help out.
However, we havent really taken the time for that. Now i think we can do that, 
so i hereby also let you know that i am interested in starting to contribute.


3 examples of documents that we have generated(targeting mass printing for 
broschure production) you can find here:
http://dev.oslokb.no:8080/dennis/Sample1.pdf

http://dev.oslokb.no:8080/dennis/Sample2.pdf

http://dev.oslokb.no:8080/dennis/Sample3.pdf


Regards,
Dennis JD Myrén
Developer
Oslo Kodebureau
Tel:  (+47) 98 00 11 92
Mail:   [EMAIL PROTECTED]
Web:   www.oslokb.no

-Original Message-
From: Lawford, Mark : Enable [mailto:[EMAIL PROTECTED] 
Sent: 8. februar 2005 16:18
To: '[EMAIL PROTECTED]'
Subject: RE: representative example needed


I'm a relative newcomer to XSLT and FOP but I immediately saw the value it
could offer.

We have a layer of DB access objects which produce XML for reporting
purposes. Rather than plug in an expensive off the shelf reporting tool I
suggested and prototyped an XSLT/FOP reporting architecture. It works. The
largest report so far has been 3000 pages (why anyone would want a report
3000 pages long is beyond me) and it renders quite quickly for a report of
that scale.

I am also using it online to produce on-demand PDF versions of reports
originating in XML form.

I haven't done anything fancy with FOP yet but so far I haven't had to. I
want it to help me produce well-formatted tabular reports reliably and on
schedule. It works perfectly so I can't ask any more than that.

Okay, that is perhaps not entirely true. I wouldn't mind being able to
specify multiple output files for the larger reports, but that, frankly, can
be dealt with higher up the processing chain.


Mark Lawford
Analyst Programmer

Enable ISS - Hastings
Mid Range Services
Cavendish House,
Castle Street,
Hastings, East Sussex
TN34 3DY

* 01424 4533018/ (7) 4274 3018 
*  07957 280 811
* [EMAIL PROTECTED]
* Mail Van E


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 08 February 2005 15:03
To: [EMAIL PROTECTED]
Subject: Re: representative example needed


 Thanks!  Success stories ([1] is my favorite)--as well
 as failures (honesty of its limitations also being
 helpful in increasing confidence in FOP)--are always
 welcome on this list.

Oh, you want success stories. That I can do.

I use FOP to produce all the documentation for a small software firm. I am 
a consulting technical writer (though I have been programming at least 
part time since 1987). I am responsible for creating documents both for 
the company itself and for several customers (each of whom naturally wants 
their own logos, legal wording, and so on). I use two primary stylesheets 
with FOP: One to produce most of my conventional documents (user guides, 
API guides, etc.) and another specifically for data dictionaries. The firm 
specializes in data warehouses for the software industry, so each customer 
needs a customized data dictionary. So far, the largest has been over 1600 
pages in size, and FOP produces it in about 2 minutes.

By the way, I use Saxon to write the FO source, since I use a number of 
XSLT 2 features. I also use Saxon to write the HTML versions of our 
documents.

The only thing I really wish FOP had is better control over page breaks. I 
use small tables to keep headings with their trailing paragraphs and 
images with their captions. Other than that, I use an attribute in my five 
levels of heading elements to force a page break (with break-before), so I 
can make things look OK. Still, I wish it did better with keeps and breaks 
in general. I gather that's the big problem that 

RE: Page background color

2005-01-10 Thread Dennis Myrén
I finally achieved the layout I wanted.
Thank you for your help.

I just needed to know a bit more about how the regions work.

(I use PDF as the output format, and use points as units rather than pixels as 
I did in the example.)



-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED] 
Sent: 8. januar 2005 21:04
To: [EMAIL PROTECTED]
Subject: Re: Page background color

Dennis Myrén wrote:
 However, I started trying just to get the background color to be applied 
 across all regions, and I have not succeeded.
 
 Please tell me what I am doing wrong with this simple document.
 Only the region-body region gets blue background color.

Your region-before and -after have no extent, i.e. they get an
extent of zero. You'll have to defione a region-start and -end
as well.

Which output format are you using? Measurements in px should not
be used except for bitmapped output formats.

J.Pietschmann

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



Page background color

2005-01-07 Thread Dennis Myrén








Hi.



I have this page with objects, some of them are positioned
at strict and exact locations(they are placed in static-content), and one is a
flowing object(a table in flow).

Now i try to do a simple thing, just setting the background
color of the entire page.

I have only succeeded to color the background of the
region-body region, where the flowing table is located.

The static content i have not succeeded to
color(static-content is mapped to region-before).

Is there a way to set the background color of the entire
page, regardless of whether objects are placed

in static-content or flow? 



One more question; the flowing table is often flowing
through not only one but a sequence of pages.

The static content is repeated on every page where the table
is flowing.



I would like not to repeat that static content, but rather
have it rendered only at the first page.



I really appreciate help.



Regards,

Dennis JD Myrén

Developer

Oslo Kodebureau

Tel: (+47) 98
00 11 92

Mail: [EMAIL PROTECTED]

Web: www.oslokb.no










RE: Page background color

2005-01-07 Thread Dennis Myrén
[ATT. Chris]

Hi Chris and thank you very much for your efforts in helping me out.
However, I started trying just to get the background color to be applied across 
all regions, and I have not succeeded.

Please tell me what I am doing wrong with this simple document.
Only the region-body region gets blue background color.

fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  fo:layout-master-set
fo:simple-page-master master-name=master0 page-width=1191px 
page-height=842px margin-left=0px margin-right=0px margin-top=0px 
margin-bottom=0px
  fo:region-body margin-left=638px margin-right=100px 
margin-top=32px margin-bottom=100px background-color=blue /
  fo:region-before background-color=blue /
  fo:region-after background-color=blue /
/fo:simple-page-master
  /fo:layout-master-set
  fo:page-sequence master-reference=master0
fo:static-content flow-name=xsl-region-before
  fo:block-container position=absolute left=20px top=20px 
width=300px height=20px
fo:blockI hoped this area would be blue as well./fo:block
  /fo:block-container
/fo:static-content
fo:flow flow-name=xsl-region-bodyfo:block //fo:flow
  /fo:page-sequence
/fo:root


Regards,
Dennis JD Myrén
Developer
Oslo Kodebureau
Tel:  (+47) 98 00 11 92
Mail:   [EMAIL PROTECTED]
Web:   www.oslokb.no
-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED] 
Sent: 7. januar 2005 15:02
To: [EMAIL PROTECTED]
Subject: Re: Page background color

Dennis Myrén wrote:

snip/

 Is there a way to set the background color of the entire page, 
 regardless of whether objects are placed

No, you cant set background color on the entire page. But you can set it on 
region-*. So in your case, as well as setting background color on region-body 
you will need to set it on region-before too.

snip/

 I would like not to repeat that static content, but rather have it 
 rendered only at the first page.

This is straigt forward to achieve. You will need to create two 
fo:simple-page-master objects, one with a region-before defined and the other 
without. Then create a fo:page-sequence-master which uses defines which 
simple-page-master is used based on page-position. The fo:page-sequence then 
references the page-sequence-master. E.g.

fo:simple-page-master master-name=first page-width=210mm 
page-height=297mm
fo:region-body margin-top=20mm background-color=blue/
fo:region-before region-name=firstHeader extent=20mm 
background-color=blue/
/fo:simple-page-master

fo:simple-page-master master-name=rest page-width=210mm 
page-height=297mm
fo:region-body margin-top=20mm background-color=blue/
fo:region-before region-name=restHeader extent=20mm 
background-color=blue/
/fo:simple-page-master

fo:page-sequence-master name=all
fo:repeatable-page-master-alternatives
fo:conditional-page-master-reference master-reference=first 
page-position=first/
fo:conditional-page-master-reference master-reference=rest 
page-position=rest/
/fo:repeatable-page-master-alternatives
/fo:page-sequence-master

then the page-sequence element references the page-sequence-master, e.g.

fo:page-sequence master-reference=all
fo:static-content flow-name=firstHeader
fo:blockThis will only appear on page 1/fo:block
/fo:static-content
fo:flow
!-- your table as usual --
/fo:flow
/fo:page-sequence

HTH!

Chris


-
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: Error while trying to open PDF(created using FOP) in Adobe Illustrator

2004-09-22 Thread Dennis Myrén
This has always been a problem for me.
The only way as far as I know, is to first create a surface
and then place the PDF object using File-Place.


Regards,
Dennis JD Myrén
Developer
Oslo Kodebureau
Tel:  (+47) 98 00 11 92
Mail:   [EMAIL PROTECTED]
Web:   www.oslokb.no
-Original Message-
From: Saptarshi Sen [mailto:[EMAIL PROTECTED] 
Sent: 22. september 2004 10:55
To: [EMAIL PROTECTED]
Subject: Error while trying to open PDF(created using FOP) in Adobe Illustrator

Hi,
We tried to generate a pdf (an image) with embedded fonts and are
facing a problem. The process that we are following is outlined below.

Process
1.  We first generate a SVG image of the Chart using Corda PopChart
version 5.1.
- The reason for choosing SVG as an intermediate image format is that
it supports embedding of fonts (which reduces the file size). If we try to
generate a PDF directly using PopChart, the fonts are not embedded and the
image file turns out to be pretty bulky.
2.  Data from the generated SVG is extracted and fed to the Apache FOP
(Formatting Objects Processor).
3.  The FOP generates the PDF version of the SVG image.

Problem
The PDF generated does not open in Adobe Illustrator. In Illustrator version
9, it says that Missing Double-byte fonts have been substituted with the
default font. In version 11 CS, it says that Acrobat PDF File Format is
having difficulties. Could not create internal representation of XMP
metadata.

However, these images open up fine in Adobe Acrobat, Acrobat Reader as well
as Adobe PhotoShop. Also, if we open the image in Adobe Acrobat and save it
again, subsequently it opens up fine in Illustrator.

It is important that we be able to edit it using Illustrator as that is what
the users of the system will be using. We are looking for reasons as to why
it's not working; are we missing out any detail?

Attached alongwith are the following files:
1.  109...svg - This is the SVG image generated by PopChart. Opens up
fine in IE.
2.  109...fo - Intermediate file produced by FOP.
3.  109...pdf - Final PDF generated by FOP.


Thanks and Regards,
Saptarshi.



  1094899742704.fo  1094899742704.pdf  1094899742704.svg 



DISCLAIMER:
This message (including attachment if any) is confidential and may be 
privileged. Before opening attachments please check them for viruses and 
defects. MindTree Consulting Private Limited (MindTree) will not be responsible 
for any viruses or defects or any forwarded attachments emanating either from 
within MindTree or outside. If you have received this message by mistake please 
notify the sender by return  e-mail and delete this message from your system. 
Any unauthorized use or dissemination of this message in whole or in part is 
strictly prohibited.  Please note that e-mails are susceptible to change and 
MindTree shall not be liable for any improper, untimely or incomplete 
transmission.

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



RE: Checking for EMPTY tag

2004-09-16 Thread Dennis Myrén








You may do something like(not tested):

xslt:variable name=n2

    xslt:choose

    xslt:when
test=0 = string-length(age)NA/xslt:when

    xslt:otherwisexslt:value-of
select=age //xslt:otherwise

    /xslt:choose

xslt:variable



Note that n2 will contain a string rather
than an element reference.





Regards,

Dennis JD Myrén

Developer

Oslo Kodebureau

Tel: (+47) 98
00 11 92

Mail: [EMAIL PROTECTED]

Web: www.oslokb.no











From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 16. september 2004 08:55
To: [EMAIL PROTECTED]
Subject: Checking for EMPTY tag





Hi everybody,




I have the following tags.




stdudent


nameBhaskar/name


age25/age


collegeMSRIT/college


/student




stdudent


nameAppu/name


age/age


collegeRVCE/college


/student




Since age tag of second is empty. I want display the empty tag as NA.


Please help how to handle this.




Output what I need is:




Bhaskar:25:MSRIT


Appu:NA:RVCE





What it did is it put the content of name, age, college tags to variables n1,
n2, n3.


xsl:variable name=n1 select=name/


xsl:variable name=n2 select=age/


xsl:variable name=n3 select=college/




Tell me now how to check for empty. If empty I have replace it with NA. 








Thanks in advance.



Bye,

Bhaskar





DISCLAIMER:
This message contains privileged and confidential information and is intended
only for the individual named.If you are not the intended recipient you should
not disseminate,distribute,store,print, copy or deliver this message.Please notify
the sender immediately by e-mail if you have received this e-mail by mistake
and delete this e-mail from your system.E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain
viruses.The sender therefore does not accept liability for any errors or
omissions in the contents of this message which arise as a result of e-mail
transmission. If verification is required please request a hard-copy version. 








RE: Count with conditions

2004-08-30 Thread Dennis Myrén
and

Regards,
Dennis JD Myrén
Developer
Oslo Kodebureau
Tel:  (+47) 98 00 11 92
Mail:   [EMAIL PROTECTED]
Web:   www.oslokb.no
-Original Message-
From: Sven Waibel [mailto:[EMAIL PROTECTED] 
Sent: 30. august 2004 12:02
To: [EMAIL PROTECTED]
Subject: Count with conditions

Hello,

i'd like to do a query like this one here

count(something = run  something1 = ok)

How can i do this?

One condition is no simple: count(@activity[.='performed'])
But how can i append the second condition?

Thanks and regards
Sven


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



Where to find FOP 1.0 Dev

2004-08-19 Thread Dennis Myrén








Hi.

Where can I find and download the FOP 1.0 Dev sources?





Regards,

Dennis JD Myrén

Developer

Oslo Kodebureau

Tel: (+47) 98
00 11 92

Mail: [EMAIL PROTECTED]

Web: www.oslokb.no










RE: Hex values of FOP colours

2004-03-17 Thread Dennis Myrén
Have a look inside ColorType.java in the datatypes namespace.

Regards,
Dennis JD Myrén
Developer
Oslo Kodebureau
Tel:  (+47) 98 00 11 92
Mail:   [EMAIL PROTECTED]
Web:   www.oslokb.no
-Original Message-
From: Mike Brodbelt [mailto:[EMAIL PROTECTED] 
Sent: 17. mars 2004 11:30
To: [EMAIL PROTECTED]
Subject: Hex values of FOP colours

Hi,

Given an fo block like this:-

fo:block color=green text-align=center font-weight=bold

How do I detmermine the hex triplet for the green that FOP is using? Is
there a specific chart of standard colours somewhere?

TIA,

Mike.


-
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 generates cryptic font name

2004-03-04 Thread Dennis Myrén
As far as I know this is correct.
This ensures that the font embedded in the PDF document is always used,
With no risk for collision with eventual fonts with the same name installed on 
the system that runs the PDF.

Regards,
Dennis JD Myrén
Developer
Oslo Kodebureau
Tel:  (+47) 98 00 11 92
Mail:   [EMAIL PROTECTED]
Web:   www.oslokb.no
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Ulrich Mayring
Sent: 4. mars 2004 10:38
To: [EMAIL PROTECTED]
Subject: Fop generates cryptic font name

Hello everyone,

I'm using fop 0.20.5 to create PDFs with embedded fonts. I generated the 
metrics files with fop and they look like this:

font-metrics type=TYPE0
font-nameArialNarrow/font-name
embed/
...

However, fop generates this in my PDFs:

8 0 obj
 /Type /FontDescriptor
/FontName /2Ebbf7ArialNarrow

As you can see, there are a number of cryptic characters before the font 
name. Unfortunately, every time I re-run my program, these characters 
are different. This leads to a situation, where we have 1000 documents 
with (supposedly) 1000 different fonts, so the RIP continually 
re-generates the font, because it thinks it is a new one. This slows 
output down considerably.

So, where does that prefix come from and how can I avoid it?

Thanks in advance for any pointers,

Ulrich


-
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 generates cryptic font name

2004-03-04 Thread Dennis Myrén
I don't think so, at least not without hacking FOP.
And the PDF specification highly recommends doing these six characters in front 
of the font name.

Regards,
Dennis JD Myrén
Developer
Oslo Kodebureau
Tel:  (+47) 98 00 11 92
Mail:   [EMAIL PROTECTED]
Web:   www.oslokb.no

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Ulrich Mayring
Sent: 4. mars 2004 11:24
To: [EMAIL PROTECTED]
Subject: Re: Fop generates cryptic font name

Dennis Myrén wrote:
 As far as I know this is correct.
 This ensures that the font embedded in the PDF document is always used,
 With no risk for collision with eventual fonts with the same name installed 
 on the system that runs the PDF.

Ok, what you say makes sense. But is there a way to turn this behavior 
off in selected cases?

Ulrich


-
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 generates cryptic font name

2004-03-04 Thread Dennis Myrén
Chapter 5.5.3 - Font Subsets mentions this.

Regards,
Dennis JD Myrén
Developer
Oslo Kodebureau
Tel:  (+47) 98 00 11 92
Mail:   [EMAIL PROTECTED]
Web:   www.oslokb.no

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Ulrich Mayring
Sent: 4. mars 2004 11:46
To: [EMAIL PROTECTED]
Subject: Re: Fop generates cryptic font name

Dennis Myrén wrote:
 And the PDF specification highly recommends doing these six characters in 
 front of the font name.

It does? Do you have a reference where? I looked through it, but didn't 
find any mention of these six characters.

thanks again,

Ulrich


-
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 generates cryptic font name

2004-03-04 Thread Dennis Myrén
Tell them that's how Adobe Illustrator is doing it.


Regards,
Dennis JD Myrén
Developer
Oslo Kodebureau
Tel:  (+47) 98 00 11 92
Mail:   [EMAIL PROTECTED]
Web:   www.oslokb.no

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Ulrich Mayring
Sent: 4. mars 2004 12:09
To: [EMAIL PROTECTED]
Subject: Re: Fop generates cryptic font name

Dennis Myrén wrote:
 Chapter 5.5.3 - Font Subsets mentions this.

Yes, I saw that, but that only refers to font subsets, which have six 
character and a + sign. However, fop always generates the six 
characters, even for non-subsetted fonts:

/FontName /2Ebbf7ArialNarrow

As you can see, there's no + character.

Now, I do see the value in using the six characters in any situation, I 
just need some ammunition for management. If I can prove that it's part 
of the spec, they'll probably let it fly. As it is, our print shop 
claims that RIP times have increased significantly because of that.

Anyway, thanks a lot for the information,

Ulrich


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



Table columns with custom font incorrectly aligned

2003-12-17 Thread Dennis Myrén








Hi again.

I use FOP to generate PDF documents from XSL-FO documents.

The resulting PDF documents contains a big table, and it
uses a custom font (called Signa).

The font files needed are embedded in the document.

I used the PFMReader utility to generate XML metrics files
from these 3 different font metrics files (PFM files).

The table in the PDF document typically uses right aligned
cells.

My problem is, the columns are not properly aligned, a right
aligned column gets to look something like this:


12363474


43382 39


93


9393

 64484505


38483



I tested with a base 14 font, no problems.

Could it be that the generated font metrics is incorrect?





Regards,

Dennis JD Myrén

Developer

Oslo Kode Bureau

Tel: (+47) 98
00 11 92

Mail: [EMAIL PROTECTED]

Web: www.oslokb.no










RE: RE: Table columns with custom font incorrectly aligned

2003-12-17 Thread Dennis Myrén
 Could it be that the generated font metrics is incorrect?

 Yes, I believe the current PFMReader ignores the PFB file which has some 
 parts of the font metrics in them.

Ok.
Is there any workaround? Any advises?

Thank you.

Regards,
Dennis JD Myrén
Developer
Oslo Kode Bureau
Tel:  (+47) 98 00 11 92
Mail:   [EMAIL PROTECTED]
Web:   www.oslokb.no

-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED] 
Sent: 17. desember 2003 12:11
To: [EMAIL PROTECTED]
Subject: Re: Table columns with custom font incorrectly aligned

Dennis Myrén wrote:

snip/

 I used the PFMReader utility to generate XML metrics files from these 3 
 different font metrics files (PFM files).

snip/

 My problem is, the columns are not properly aligned, a right aligned 
 column gets to look something like this:

snip/

 I tested with a base 14 font, no problems.
 
 Could it be that the generated font metrics is incorrect?

Yes, I believe the current PFMReader ignores the PFB file which has some 
  parts of the font metrics in them.

Chris



-
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: Table columns with custom font incorrectly aligned

2003-12-17 Thread Dennis Myrén
I used to propose to manually remove the kerning elements in the generated 
XML font metric file. This disables kerning for this font but normally 
solves the alignment problem.

I like that proposal.
Works like a charm.

Thank you!


Regards,
Dennis JD Myrén
Developer
Oslo Kode Bureau
Tel:  (+47) 98 00 11 92
Mail:   [EMAIL PROTECTED]
Web:   www.oslokb.no

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: 17. desember 2003 13:09
To: [EMAIL PROTECTED]
Subject: Re: Table columns with custom font incorrectly aligned

Nope. You're confusing things, I'm afraid. It's correct that some metric
information needed by FOP is not present in PFM files, only in PFB (but
which are currently not parsed). The problem here is most probably
kerning. We've had that problem before. I just can't find the right
thread right now. I think Jörg had an explanation (but I don't remember
it). I used to propose to manually remove the kerning elements in the
generated XML font metric file. This disables kerning for this font but
normally solves the alignment problem.

On 17.12.2003 12:10:36 Chris Bowditch wrote:
  Could it be that the generated font metrics is incorrect?
 
 Yes, I believe the current PFMReader ignores the PFB file which has some 
   parts of the font metrics in them.

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: CMYK again

2003-11-21 Thread Dennis Myrén
Well, in FOP 0.20.5 it is possible to generate uncompressed PDF documents.
Although this may increase the file size, sometimes dramatically, it makes
the RGB-CMYK replace operation much simpler,
Because the PDF document wont need to be decompressed before performing
those tasks.
Then, what you will need is a regular expression, that finds any 'RG' or
'rg' color commands, to replace them with 'K' or 'k', respectively.
Of course, the expression needs to be smart enough only to replace
occurrences of 'RG' or 'rg' that is actually color commands.
Searching for occurrences of three space separated numbers followed by space
and then 'RG' or 'rg' is a hack, that might (but only might) be good enough.

Then, the XRef Table needs to be rebuilt.
This tasks should be possible to do with another regular expression,
That searches for any occurrences of '[anInteger] [anotherInteger] obj' and
adds the byte offset positions of these matches into a new XRef Table, that
in the end should replace the existing XRef Table.

Also, the number on the second last line of the document should be replaced
with the number of bytes written until the occurrence of the last 'endobj'
command.


There is a number of plug-ins, that can be used from within Adobe Reader to
convert the RGB colors of a PDF document into CMYK colors.
There is a tool named QuiteABoxOfTricks that can be found at
http://www.quite.com doing this.
I am sure it is possible to setup a batch processing solution as well, in
order to create a totally automated hack solution for this lack.
PitStop server is another solution.


Regards,
Dennis JD Myrén
Developer
Tel:  (+47) 98 00 11 92
Mail:   [EMAIL PROTECTED]
Web:   www.oslokb.no

-Original Message-
From: Timo Haberkern [mailto:[EMAIL PROTECTED] 
Sent: 21. november 2003 14:38
To: [EMAIL PROTECTED]
Subject: Re: CMYK again

Ben,

 The President of my employer is a lawyer.  Dunno if open-source will 
 happen anytime soon for that lib.  ;-)

 Have you checked if the open-source Multivalent lib supports this type 
 of operation?  I'll try and take a gander too, but you should check 
 and see.

I will check it next week.
Thanks for the tip.

I think it should be possible to create cmyk pdf from FOP directly. So 
if you can't open-source your solution, maybe you can talk a little 
bit about how to do such a replacement, so that i can maybe hack 
something similar into FOP?

Timo


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



CMYK Support

2003-11-13 Thread Dennis Myrén








Hi.



I am in a desperate need for generating PDF documents with
FOP that uses the CMYK color space.

Has anyone here developed a FOP extension that handles this?

Any other suggestions for a solution is also highly
appreciated.







Regards,

Dennis Myrén

Developer

Oslo Kode Bureau

Tel: (+47) 98 00 11 92

Mail: [EMAIL PROTECTED]

Web: www.oslokb.no










RE: Memory consumption

2003-09-16 Thread Dennis Myrén
I am not an expert in java memory handling either,
But I suggest you release all handles after each run in the loop,
And then perform a garbage collect.


Regards,
dennis.myren

-Original Message-
From: Timo Haberkern [mailto:[EMAIL PROTECTED] 
Sent: 16. september 2003 15:38
To: [EMAIL PROTECTED]


snip/

I'm not really the expert on JVM Memory Management, but AFAICT these
declarations belong outside the 'for'-loop. (Not sure whether this is
causing memory problems, but it just seems ... more elegant. If they really
do not depend on the variables changing in the loop, that is... If behaviour
would be what I'm guessing, then these would consume memory - the total of
which would only be released on completion of the loop...)

snip/

No :-( That doesn't help anything...

Any other ideas?

driver = null;



You won't be needing this. Just resetting the Driver should be ok.
  

mhmm, that was i try! I thought that it maybe helps a little bit but it 
doesn't. But it remains anyhow...

I also notice you have read this (?)
http://xml.apache.org/fop/running.html#memory

Have you tried the multiple page-sequences tip?

Every PDF File is only 2 pages long. And the memory is consumed for PDFs 
with big images...

My problem is that i can't get down the memory after rendering one PDF 
and before the next rendering...

regds

Timo


-
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: Memory consumption

2003-09-16 Thread Dennis Myrén
I mean by assigning null values to the instances and then to the System.gc()

Regards dennis

-Original Message-
From: Timo Haberkern [mailto:[EMAIL PROTECTED] 
Sent: 16. september 2003 15:49
To: [EMAIL PROTECTED]

Aha, and how to release the handles!?! I thought a driver.reset would be 
exactly the release of all resources?

rgds
Timo

Dennis Myrén wrote:

I am not an expert in java memory handling either,
But I suggest you release all handles after each run in the loop,
And then perform a garbage collect.


Regards,
dennis.myren

-Original Message-
From: Timo Haberkern [mailto:[EMAIL PROTECTED] 
Sent: 16. september 2003 15:38
To: [EMAIL PROTECTED]


  

snip/

I'm not really the expert on JVM Memory Management, but AFAICT these
declarations belong outside the 'for'-loop. (Not sure whether this is
causing memory problems, but it just seems ... more elegant. If they really
do not depend on the variables changing in the loop, that is... If behaviour
would be what I'm guessing, then these would consume memory - the total of
which would only be released on completion of the loop...)

snip/



No :-( That doesn't help anything...

Any other ideas?

  

   driver = null;
   

  

You won't be needing this. Just resetting the Driver should be ok.
 



mhmm, that was i try! I thought that it maybe helps a little bit but it 
doesn't. But it remains anyhow...

  

I also notice you have read this (?)
http://xml.apache.org/fop/running.html#memory

Have you tried the multiple page-sequences tip?



Every PDF File is only 2 pages long. And the memory is consumed for PDFs 
with big images...

My problem is that i can't get down the memory after rendering one PDF 
and before the next rendering...

regds

Timo


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




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



RE: Memory consumption

2003-09-16 Thread Dennis Myrén
Sorry.
I didnt see that.
In that case, I have no other advices, but maybe to use the command line tools 
instead.
I have myself setup a 256MB 1 GHZ CPU Windows computer to perform generation of 
50 PDF documents in one time using the command line tools that come with FOP, 
often with more than 10 000 lines in each file. Works great.

-Original Message-
From: Timo Haberkern [mailto:[EMAIL PROTECTED] 
Sent: 16. september 2003 16:20
To: [EMAIL PROTECTED]

But i have done that as you can see in my initial code snippet. Or am i 
wrong?

Timo

Dennis Myrén wrote:

I mean by assigning null values to the instances and then to the System.gc()

Regards dennis

-Original Message-
From: Timo Haberkern [mailto:[EMAIL PROTECTED] 
Sent: 16. september 2003 15:49
To: [EMAIL PROTECTED]

Aha, and how to release the handles!?! I thought a driver.reset would be 
exactly the release of all resources?

rgds
Timo

Dennis Myrén wrote:

  




-
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: Embedding fonts!

2003-03-17 Thread Dennis Myrén
That is the correct behavior.
I am not sure, but I think these six leading characters are placed in front of 
the font name to ensure the embedded font will be used in the document, and not 
the font installed on the machine with the same name.

Regards,
Dennis

-Original Message-
From: Uwe Klosa [mailto:[EMAIL PROTECTED] 
Sent: 17. mars 2003 11:33
To: fop-dev@xml.apache.org; [EMAIL PROTECTED]
Subject: Embedding fonts!

Hi,

I'm using embedded fonts in fop. That is working fine. But if I want to edit
the resulting pdf files with Acrobat, the font names aren't correct in the
file. I'm getting 1Eec24TimesNewRoman or 2Ef1d7TimesNewRoman where it should
be TimesNewRoman. Why creates fop theses font names? Has anyone tried do
edit the resulting pdf files?

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



RE: Embedding fonts!

2003-03-17 Thread Dennis Myrén
I think Acrobat itself stores embedded fonts in this way.
The document should already be fully editable in Acrobat.

MVH Dennis



-Original Message-
From: Uwe Klosa [mailto:[EMAIL PROTECTED] 
Sent: 17. mars 2003 12:10
To: [EMAIL PROTECTED]
Subject: SV: Embedding fonts!

But how to create pdf files that are editable with Acrobat then?

Regards,
Uwe

-Ursprungligt meddelande-
Från: Dennis Myrén [mailto:[EMAIL PROTECTED] 
Skickat: den 17 mars 2003 11:57
Till: [EMAIL PROTECTED]; Klosa Uwe
Ämne: RE: Embedding fonts!

That is the correct behavior.
I am not sure, but I think these six leading characters are placed in front
of the font name to ensure the embedded font will be used in the document,
and not the font installed on the machine with the same name.

Regards,
Dennis

-Original Message-
From: Uwe Klosa [mailto:[EMAIL PROTECTED] 
Sent: 17. mars 2003 11:33
To: fop-dev@xml.apache.org; [EMAIL PROTECTED]
Subject: Embedding fonts!

Hi,

I'm using embedded fonts in fop. That is working fine. But if I want to edit
the resulting pdf files with Acrobat, the font names aren't correct in the
file. I'm getting 1Eec24TimesNewRoman or 2Ef1d7TimesNewRoman where it should
be TimesNewRoman. Why creates fop theses font names? Has anyone tried do
edit the resulting pdf files?

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


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



RE: Question about Word character encoding.

2003-03-12 Thread Dennis Myrén
I am interested in your MS Word cleaner.

Actually, I would like to see it right away if it is possible.

Regards,
Dennis Myrén


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 11. mars 2003 19:20
To: [EMAIL PROTECTED]
Subject: Question about Word character encoding.

Hi,

I have a little query : I am looking for a table with the hexadecimal code 
for the MS Word specific characters (eg: ... or the ' character).

I am coding a java class that will clean the Word input to avoid FOP to 
render specific character as #.

eg :

if (c == 0x85) {
  stBuffer.append(...);
} else {
  stBuffer.append(c);
}

I looked over the web using google and didn't find it ... I began the work 
with an hexadecimal editor, but a such table would be really usefull ! =)

The best would be a existing class, but I don't think it exists yet. If 
someone need a such class, I'll send mine here once I will have finished 
to code it.

Thanks,

Simon

-
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: Question about Word character encoding.

2003-03-12 Thread Dennis Myrén
Thank you Simon!

I have got use for it!

Regards,
Dennis Myrén

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 12. mars 2003 15:16
To: [EMAIL PROTECTED]
Subject: RE: Question about Word character encoding.

 I am interested in your MS Word cleaner.

 Actually, I would like to see it right away if it is possible.

 Regards,
 Dennis Myrén

Hi Dennis,

Here is the function I just coded to resolve my issue with the Word's 
specific characters (appearing as # in the resulting PDF). As I said, I 
did'nt find any complete table of the M$ Word's specific characters, so 
this function is not complete at all, but it is enought for my problem ! 
And it's not optimised at all, but it didn't slow my process so much !

A stupid java question, should I make a first test like : 

if   ((source.indexOf(0x85)  0)  
(source.indexOf(0x91)  0)  
(source.indexOf(0x92)  0)  
(source.indexOf(0x93)  0)  
(source.indexOf(0x94)  0)  
(source.indexOf(0x20)  0)  
(source.indexOf(0x96)  0)  
(source.indexOf(0x9C)  0)) {
stBuffer.append(c);
}

Cheers,

Simon

//---
/**
 * Clean the MS Word characters in the codeString/code object given as 
parameter.
 *
 * @param   source The codeString/code object to format.
 * @return  A new formatted codeString/code object.
 */
 
public static String formatWord2K(String source) {
  String output = source;
  if ((source.indexOf(0x85)  0) || 
(source.indexOf(0x91)  0) || 
(source.indexOf(0x92)  0) || 
(source.indexOf(0x93)  0) || 
(source.indexOf(0x94)  0) || 
(source.indexOf(0x20)  0) || 
(source.indexOf(0x96)  0) || 
(source.indexOf(0x9C)  0)) {
StringBuffer stBuffer = new StringBuffer();
int len = source.length();
for (int i = 0; source != null  i  len; i++) {
  char c = source.charAt(i);
  // Replace the Word's (...) character (0x85).
  if (c == 0x85) {
stBuffer.append(...);
  }
  // Replace the Word's (' and ') characters (0x91 et 0x92).
  else if (c == 0x91 || c == 0x92) {
stBuffer.append(');
  } 
  // Replace the Word's ( et ) characters (0x93 et 0x94).
  else if (c == 0x93 || c == 0x94) {
stBuffer.append('');
  } 
  // Replace the Word's (?) character (0x96).
  else if (c == 0x96) {
stBuffer.append(-);
  } 
  // Replace the Word's hard space ( ) character (0x20).
  else if (c == 0x20) {
stBuffer.append( );
  } 
  // Replace the Word's (?) character (0x9C).
  else if (c == 0x9C) {
stBuffer.append(oe);
  } 
  else {
stBuffer.append(c);
  }
}
output = stBuffer.toString();
  }
  return output;
}

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



Color in Pantone format?

2003-01-28 Thread Dennis Myrén










Hi.

Is it possible to specify a
color in Pantone?












Specify height of fo:table-header

2002-12-12 Thread Dennis Myrén








Hi.



I have a simple table with a
heading.

I want to set the height of
this table heading to a specific height.



It seems to ignore the
'height' attribute placed on the fo:table-header
element.



Instead, it automatically
sets the height of the heading depending on the number of rows and the font,

and the amount of the text.



Is there anyway to manually
hard code a height value in the FO document, which wil be the height of this
table heading?



Regards

Dennis










RE: Font embending

2002-11-26 Thread Dennis Myrén
Try to embed the PFB file instead of the PFM file

Regards
Dennis

Unable to extract the embedded font 'ArialHU'. Some characters...



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



RE: German/French Special Characters in FOP

2002-11-26 Thread Dennis Myrén
Try saving your FO documents in UTF-8 and send to FOP.

Regards 
Dennis

-Original Message-
From: M.Weiss [mailto:[EMAIL PROTECTED] 
Sent: 26. november 2002 14:57
To: FOP-Mailinglist (engl)
Subject: German/French Special Characters in FOP
Hi everybody,
I got a serious problem with special characters, when doing the following:
I build up an XML-Document from given data-records. Theese records may
contain special characters, such as German umlaute ä,ö,ü,ß or french
accents à, û and so on.
The whole story runs fine with recors without those characters, but with one 
or mor such chars, I got an FOP-Exception:
An invalid XML character (Unicode: 0xfc) was found in the element content
of the document.
when rendering the XML-Document.
Does any one know how to deal with those characters ? Is there any kind of
conversion ?
Thanks and regards, Marcus


-
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: Producing Font Metrics

2002-11-18 Thread Dennis Myrén
Please post the path again.
I cant find a patch in the message:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14576

Regards
Dennis

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 18. november 2002 09:24
To: [EMAIL PROTECTED]
Subject: Re: Producing Font Metrics

It may be the same bug as Bug 14576.
I have already sent an attachment with a patch

see
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14576

Bernard

Selon Oleg Tkachenko [EMAIL PROTECTED]:

 Lucas, Allison wrote:
  I found a question from 7/11/2002 about the EOFException when trying to 
  generate a font metric xml from a true type font.  Mark Peterson said 
  that he was looking into the issue.  I have run into this issue with a 
  third party font.  Was there any resolution to the issue?
 You'd better open bugzilla entry for it - thta's a very convenient way 
 to track issues.
 
 -- 
 Oleg Tkachenko
 eXperanto team
 Multiconn Technologies, Israel
 
 




-
This mail was sent through webmail.wanadoo.be


RE: Embed font results in FontFormatException ?

2002-11-18 Thread Dennis Myrén
Hi.
Do you have any advice for me now, to get the text elements rendered correctly?
Did you try to use my font in a PDF?

Sorry if bothering you all the time.

Regards

Dennis

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: 18. november 2002 14:56
To: [EMAIL PROTECTED]
Subject: Re: Embed font results in FontFormatException ?

Hi Dennis

I was totally blind when I read your initial mail. Sorry, I was wasting
your time. See my comments below.

On 15.11.2002 11:33:20 Dennis Myrén wrote:
 Hi there.
  
 I am using the FOP tools to generate PDF output from FO documents.
 In the PDF document, i need to embed a PostScript Font named 
 StandardGroteskBSK.
 This is my userconfig.xml file:
 configuration
   fonts  
 font 
 metrics-file=C:\Inetpub\wwwroot\DVDebugger\bin\Debug\FontMetrics\SK021___.xml
  kerning=yes 
 embed-file=C:\Program Files\Adobe\Adobe Type 
 Manager\psfonts\SK021___.PFB
   font-triplet name=StandardGroteskBSK style=normal weight=normal 
 /
 /font
 font 
 metrics-file=C:\Inetpub\wwwroot\DVDebugger\bin\Debug\FontMetrics\SK051___.xml
  kerning=yes 
 embed-file=C:\Program Files\Adobe\Adobe Type 
 Manager\psfonts\SK051___.PFB
   font-triplet name=StandardGroteskBSK style=normal weight=bold /
 /font
   /fonts
 /configuration
  
 I get no errors during the FOP.bat batch job while generating the PDF.
 However, text in the PDF document(etc. cells in tables) are very bad aligned, 
 it looks awful.
  
 I read that sometimes one need to manually alter the PFMReader generated XML 
 font metrics file,
 to correct the approximated values.
 I followed an example to do that with my XML metrics file, but the result is 
 as bad as before.
  
 When placing the PDF object in an Illustrator 10 document, a messagebox pops 
 up:
 The document C:\Inetpub\wwwroot\DVDebugger\bin\Debug\output.PDF contains 
 objects that have been interpreted.
 Missing Type1 fonts have been substituted with the default font.
 As the PDF elements are no longer objects, i cant select a text element to 
 see if it is the correct font.

I think I know what causes this problem. I believe that the PFB file is
not embedded correctly into the PDF file. There are little segment
prefixes in the PFB file that are not directly described in the Type 1
specification, but only in the Download Fonts spec from Adobe. Adobe
Acrobat doesn't mind that, but maybe Illustrator doesn't like that. I'll
try to fix that. The only problem I have is that I don't have Adobe
Illustrator to test afterwards. I'll send you a PDF to check when I've
got it.

 I then tried the parameter -print with FOP.bat, 
 to print the document directly.
 First I embedded Verdana with this print job, that worked.
 Then i used this PostScript font StandardGroteskBSK, which raised a 
 FontFormatException.

This MUST fail. -print invokes the AWTRenderer. AWT does only support
TrueType font to be loaded from a file, but not Type 1 fonts. That's why
you get an error. So this means you can't use a Type 1 font if you want
to use the AWT/Print renderer. Try removing the embed-file attribute in
the userconfig.xml and check if the font is properly used if it's
installed on your system. Of course, you will have to reenable
embed-file if you generate a PDF with embedded fonts.

 This is the debug output:
  
 C:\Program Files\Batik\fop-0.20.4java -cp 
 build\fop.jar;lib\batik.jar;lib\xalan-2.3.1.jar;lib\xercesImpl-2.0.1.jar;lib\xm
 l-apis.jar;lib\avalon-framework-cvs-20020315.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar
  org.apache.fop.apps.Fop -d -c C:\Ine
 tpub\wwwroot\DVDebugger\bin\Debug\fopconfig.xml 
 C:\Inetpub\wwwroot\DVDebugger\bin\Debug\out.FO -print
 [DEBUG] Input mode:
 [DEBUG] FO
 [DEBUG] fo input file: C:\Inetpub\wwwroot\DVDebugger\bin\Debug\out.FO
 [DEBUG] Output mode:
 [DEBUG] print directly
 [DEBUG] OPTIONS
 [DEBUG] user configuration file: 
 C:\Inetpub\wwwroot\DVDebugger\bin\Debug\fopconfig.xml
 [DEBUG] debug mode on
 [DEBUG] dump configuration
 [DEBUG] quiet mode on
 [DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
 [DEBUG] reading user configuration file
 [DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
 [DEBUG] base directory: file:/C:/Inetpub/wwwroot/DVDebugger/bin/Debug/
 [ERROR] FOP 0.20.4
 [DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
 [ERROR] Logger not set
 [INFO] building formatting object tree
 [DEBUG] setting up fonts
 [INFO] [1]
 [DEBUG] create embedFont C:\Program Files\Adobe\Adobe Type 
 Manager\psfonts\SK021___.PFB
 [ERROR] Failed to create embedFont C:\Program Files\Adobe\Adobe Type 
 Manager\psfonts\SK021___.PFB : java.awt.FontFormatExc
 eption: Unable to create font - bad font data
 [WARNING] table-layout=auto is not supported, using fixed!
 [WARNING] table-layout=auto is not supported, using fixed!
 [WARNING] table-layout=auto is not supported, using fixed!
 [WARNING] table-layout=auto is not supported, using fixed!
 [WARNING] table-layout=auto

RE: PFM font embedding problems.

2002-11-13 Thread Dennis Myrén
Step-by-step instructions described at 
http://xml.apache.org/fop/fonts.html, but looks like you know it 
already. Show us the font definition in your userconfig.xml and check if 
FOP complains about anything in a debug trace.
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel

Hi all.

Thank You for all help so far, with my PFM font embedding problem.
I am very thankful.

My implementation in the userconfig.xml file looks like this (as childs of the 
fonts node):
These are two declarations, one for the normal weighted font, and one with bold:

font 
  
metrics-file=C:\Inetpub\wwwroot\DVDebugger\bin\Debug\FontMetrics\SK021___.xml 
  kerning=yes 
  embed-file=C:\program files\adobe\adobe type 
manager\psfonts\PFM\SK021___.PFM
font-triplet name=StandardGroteskBSK style=normal weight=normal 
/
/font
font 
  
metrics-file=C:\Inetpub\wwwroot\DVDebugger\bin\Debug\FontMetrics\SK051___.xml 
  kerning=yes 
  embed-file=C:\program files\adobe\adobe type 
manager\psfonts\PFM\SK051___.PFM
font-triplet name=StandardGroteskBSK style=normal weight=bold /
/font

The xml font metrics files are generated without errors.

Using the -d debug mode flag, this is the output the FOP renderer creates 
when generating my PDF:

C:\Program Files\Batik\fop-0.20.4java -cp build\fop.jar;lib\batik.jar;lib\xalan
-2.3.1.jar;lib\xercesImpl-2.0.1.jar;lib\xml-apis.jar;lib\avalon-framework-cvs-20
020315.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar org.apache.fop.apps.Fop -d -c con
f\userconfig.xml C:\Inetpub\wwwroot\DVDebugger\bin\Debug\output.FO C:\Inetpub
\wwwroot\DVDebugger\bin\Debug\output.PDF
[DEBUG] Input mode:
[DEBUG] FO
[DEBUG] fo input file: C:\Inetpub\wwwroot\DVDebugger\bin\Debug\output.FO
[DEBUG] Output mode:
[DEBUG] pdf
[DEBUG] output file: C:\Inetpub\wwwroot\DVDebugger\bin\Debug\output.PDF
[DEBUG] OPTIONS
[DEBUG] user configuration file: conf\userconfig.xml
[DEBUG] debug mode on
[DEBUG] dump configuration
[DEBUG] quiet mode on
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[DEBUG] reading user configuration file
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[DEBUG] base directory: file:/C:/Inetpub/wwwroot/DVDebugger/bin/Debug/
[INFO] FOP 0.20.4
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[DEBUG] setting up fonts
[INFO] [1]
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[WARNING] table-layout=auto is not supported, using fixed!
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[WARNING] table-layout=auto is not supported, using fixed!
[WARNING] table-layout=auto is not supported, using fixed!
[WARNING] table-layout=auto is not supported, using fixed!
[DEBUG] area contents overflows area
[WARNING] table-layout=auto is not supported, using fixed!
[DEBUG] Last page-sequence produced 1 pages.
[INFO] Parsing of document complete, stopping renderer
[DEBUG] Initial heap size: 646Kb
[DEBUG] Current heap size: 7823Kb
[DEBUG] Total memory used: 7177Kb
[DEBUG]   Memory use is indicative; no GC was performed
[DEBUG]   These figures should not be used comparatively
[DEBUG] Total time used: 7030ms
[DEBUG] Pages rendered: 1
[DEBUG] Avg render time: 7030ms/page

The error i get when opening the generated PDF from Adobe Acrobat Reader 5.0:
Unable to extract the embedded font StandardGroteskBSK-Bold. Some characters 
may not display or print correctly.

The names displayed in the XML metrics files are:
font-nameStandardGroteskBSK-Regular/font-name
and
font-nameStandardGroteskBSK-Bold/font-name

I have also tried to use these names without success.
But when using SVG, i succeed to use this font, using the name:
StandardGroteskBSK-Regular 
for example: text x=100 y=100 
style=font-family:StandardGroteskBSK-Regular;This is 
StandardGroteskBSK-Regular/text
or StandardGroteskBSK-Bold to get the bold one.

Which is the actual name here? I am a little bit confused about that.
Sure its me doing something wrong here.
If anyone has a clue, that's great, but I understand the complexity of my 
problems here. It is not very easy for you to recreate my problem and debug it.


Regards 
Dennis, developer, Grey Digital Oslo.



RE: PFM font embedding problems.

2002-11-13 Thread Dennis Myrén


Does Acrobat open the PDF without problems if you don't embed the font
(remove embed-file attribute)?
Jeremias Maerki

When removing the the embed-file attributes in the userconfig.xml file, i get 
this error:
(..)
[DEBUG] setting up fonts
[ERROR] Failed to read font metrics file C:\Inetpub\wwwroot\DVDebugger\bin\Debug
\FontMetrics\SK021___.xml : null
[ERROR] Failed to read font metrics file C:\Inetpub\wwwroot\DVDebugger\bin\Debug
\FontMetrics\SK051___.xml : null

And when opening the file, the same Unable to extract font message appears.


Regards
Dennis,
Grey Digital Oslo


RE: PFM font embedding problems.

2002-11-13 Thread Dennis Myrén
The following font information displays when choosing File-Document 
Properties-Fonts... in Adobe Actrobat Reader 5.0:

Original Font:  StandardGroteskBSK-Regular
Type:   Type 1
Encoding:   Windows
Actual Font:StandardGroteskBSK-Regular
Type:   Type 1

Just like it is there somewhere.