pdf document info

2004-06-22 Thread nos...@mrietzler.de
does anybody knows a way to add the document info to a
pdf-file created with fop?
markus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Win-Ansi font embedding follow-up

2004-06-22 Thread nos...@mrietzler.de
i have played around a bit. when converting TTF fonts with "-enc ansi" i 
get correct font-names in pdf-document. without that, i always to 
something like "1E344MyFontName" no i get "MyFontName".
When i now run (linux) fop with "-nocopy -noedit -o secret" the pdf-file 
can be opened but my fonts are replaced by an adobe default font. not 
the result wanted, but much better than getting "..." in place of the 
characters...

i now use CryptoPDF a perl library, which encrypt the pdf document 
without any problem. it was the only tool i found, which will work as a 
command-line tool. ok, it's not opensource, but the price with 30$ is ok 
for me.

markus
Jeremias Maerki wrote:
The code has grown. At first, there was WinAnsi embedding only, after
that TrueType subset embedding was implemented. This should have fixed
the whole issue if it hadn't been for the nasty encryption bug (which is
a problem of the PDF library, fixed in CVS HEAD). So people need to
fall back to WinAnsi-style embedding where nobody cared to implement
subset embedding for, because WinAnsi embedding is extremely easy to
implement in comparison with Unicode subset embedding.
I hope this answers your question.
As I indicated in http://issues.apache.org/bugzilla/show_bug.cgi?id=21303
(thanks, Markus, for looking it up for me) there's a work-around
involving third-party PDF encryption tools.
it's me - markus
On 22.06.2004 18:08:23 Dave_S_White wrote:
I had asked a similar question before, but got no responses. Trying again
asking a better way (hopefully).
If I use CID encoding, the font is partially embededded, but win-ansi
encoding results in the entire font being embedded ( and very large PDF's).
I'm not an expert on encoding by any means, but I don't believe this is
inherently part of being win-ansi encoding is it? My assumption is that
whoever wrote that portion of FOP didn't/couldn't do a partial embedding
for some reason.
Can someone please confirm/correct this statement?

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: Difference PDF and PostScript: Special characters

2004-06-22 Thread Jeremias Maerki
The Euro sign is not so old. It was hacked in a few years ago. Whether
you can produce the Euro sign depends on the font having the Euro glyph
available. If you generate a PostScript file from fonts.fo in FOP
0.20.5's examples/fo/basic directory I get the Euro sign when I view it
inside a recent GhostView (no userconfig.xml used). But the same
PostScript file may not print correctly on an older PostScript printer
when using a Helvetica font, for example, and when you don't embed fonts.

On 22.06.2004 19:55:47 Geoffrey wrote:
> I use the same inputstream for a FOP configuration to PDF and one to
> PostScript.
> The inputstream contains a Euro sign (?).
> In the PDF it is shown, in the PostScript it isn't printed.
> Is this a known issue or did I configure something wrong?



Jeremias Maerki


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



Re: Win-Ansi font embedding follow-up

2004-06-22 Thread Jeremias Maerki
The code has grown. At first, there was WinAnsi embedding only, after
that TrueType subset embedding was implemented. This should have fixed
the whole issue if it hadn't been for the nasty encryption bug (which is
a problem of the PDF library, fixed in CVS HEAD). So people need to
fall back to WinAnsi-style embedding where nobody cared to implement
subset embedding for, because WinAnsi embedding is extremely easy to
implement in comparison with Unicode subset embedding.

I hope this answers your question.

As I indicated in http://issues.apache.org/bugzilla/show_bug.cgi?id=21303
(thanks, Markus, for looking it up for me) there's a work-around
involving third-party PDF encryption tools.

On 22.06.2004 18:08:23 Dave_S_White wrote:
> I had asked a similar question before, but got no responses. Trying again
> asking a better way (hopefully).
> 
> If I use CID encoding, the font is partially embededded, but win-ansi
> encoding results in the entire font being embedded ( and very large PDF's).
> I'm not an expert on encoding by any means, but I don't believe this is
> inherently part of being win-ansi encoding is it? My assumption is that
> whoever wrote that portion of FOP didn't/couldn't do a partial embedding
> for some reason.
> 
> Can someone please confirm/correct this statement?


Jeremias Maerki


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



Re: Error in output to PostScript

2004-06-22 Thread Jeremias Maerki

On 22.06.2004 11:18:27 Renzo Callant wrote:
> Problem solved. I removed the check from PSStream.java.
> 
> I do wonder why this check was in the code.

I've explained, haven't I?

> Can this be left out in a future release ?

Yes, I've just disabled it in CVS HEAD.

Jeremias Maerki


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



Re: Difference PDF and PostScript: Special characters

2004-06-22 Thread J.Pietschmann
Geoffrey wrote:
Hi,
I use the same inputstream for a FOP configuration to PDF and one to
PostScript.
The inputstream contains a Euro sign (?).
In the PDF it is shown, in the PostScript it isn't printed.
Is this a known issue or did I configure something wrong?
The most likely reason is that you use a built-in font, and
the PS printer is so old (or cheap) that it lacks a glyph for
the Euro sign.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Difference PDF and PostScript: Special characters

2004-06-22 Thread Geoffrey
Hi,

I use the same inputstream for a FOP configuration to PDF and one to
PostScript.
The inputstream contains a Euro sign (?).
In the PDF it is shown, in the PostScript it isn't printed.
Is this a known issue or did I configure something wrong?

-- 
Thanks for any and all help,
Geoffrey




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



Win-Ansi font embedding follow-up

2004-06-22 Thread Dave_S_White

Hi, 

I had asked a similar question before, but got no responses. Trying again asking a better way (hopefully). 

If I use CID encoding, the font is partially embededded, but win-ansi encoding results in the entire font being embedded ( and very large PDF's). I'm not an expert on encoding by any means, but I don't believe this is inherently part of being win-ansi encoding is it? My assumption is that whoever wrote that portion of FOP didn't/couldn't do a partial embedding for some reason. 

Can someone please confirm/correct this statement?

Thanks,
dave


This communication may contain privileged and/or confidential information. It is intended solely for the use of the addressee. If you are not the intended recipient, you are strictly prohibited from disclosing, copying, distributing or using any of this information. If you received this communication in error, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy.   This communication may contain nonpublic personal information about consumers subject to the restrictions of the Gramm-Leach-Bliley Act. You may not directly or indirectly reuse or redisclose such information for any purpose other than to provide the services for which you are receiving the information.127 Public Square, Cleveland, OH 44114If you prefer not to receive future e-mail offers for products or services from Key Click Here
 or send an e-mail to [EMAIL PROTECTED] with 'No Promotional E-mails' in the SUBJECT line.


Re: How to keep the table`s columns description on the next page?

2004-06-22 Thread Clay Leeds
On Jun 22, 2004, at 4:36 AM, Milen Dimitrov wrote:
   Hi,
can somebody help me with this issue:
I have a very long tables that spreads on more than 1 page, and I want 
to have the columns titles on every page. I cannot put the columns 
titles in fo:region-before because the tables are different.
Have you tried using the fo:table-header? I believe the purpose of this 
element (and similarly fo:table-footer) is to print the information on 
every page.

Hope this helps!
Web Maestro Clay
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to keep the table`s columns description on the next page?

2004-06-22 Thread Chris Bowditch
Milen Dimitrov wrote:
   Hi,
can somebody help me with this issue:
I have a very long tables that spreads on more than 1 page, and I want 
to have the columns titles on every page. I cannot put the columns 
titles in fo:region-before because the tables are different.
10x
This is straight forward. You just need to define a header row. This is done 
as follows:







Heading 1
Heading 2
Heading 3



..


Chris

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


Re: SV: Text problem

2004-06-22 Thread Clay Leeds
In my experience, for best results, you'll want the latest JVM 
available for your platform. At a minimum, Sun Java 1.4.0_b09 or IBM 
Java 1.3+ to help with the AWT font metrics problems, although problems 
still exist even with those.

Web Maestro Clay
On Jun 22, 2004, at 6:08 AM, Håkan Fransson wrote:
Hi again!
Yes, PDF works fine but i need to use AWT so i will try uppgrading JDK.
-Ursprungligt meddelande-
Från: Chris Bowditch [mailto:[EMAIL PROTECTED]
Skickat: den 22 juni 2004 10:25
Till: [EMAIL PROTECTED]
Ämne: Re: Text problem
Håkan Fransson wrote:
Hi!
I'm a newbie with FOP and XSL-FO and have a problem with text.
1. It seems that whitespaces differs in lenght between words in
a sentence.
2. I want to print out letters å, ä and ö from swedish language
but words
with
this letters doesn't follow the others words in a sentence. They are 
a
little below
the other words.
I'm using arial fonts on windows and the AWTRenderer.
The AWTRenderer uses Java's inbuilt font metrics, and depending on 
what
version of Java you have they can be a bit buggy. Try rendering to 
PDF, I
think the output will appear better. If so, and you absolutely
must have AWT,
then consider changing/upgrading your JDK.

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]

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


Re: What XSLT and XSL-FO editor do you use?

2004-06-22 Thread Clay Leeds
Thank you for this (IMHO) objective and good review of the style sheet 
designers currently available. I think this will be a good reference 
for people to see. If there are no objections (and time permitting!), I 
may even consider posting this and other reviews on the FOP web site 
(after fixing a couple of minor typos) in the appropriate Resources 
section--giving full credit to its author(s), of course!

Web Maestro Clay
On Jun 21, 2004, at 9:33 AM, Rob Stote wrote:
Hello all:
    I have tried the following editors:
1) Altova:
I found this editor the least user friendly of the bunch. It does not 
offer a true WYSIWYG environment. Once you get your head around how to 
actually works, you can develop stylesheet with it. Be prepared to 
work at it though. I was a little concerned with the use of the 
"for-each" in the stylesheet it produced. (please note: I have yet to 
try Altova latest release, stylevision. My comments are in reference 
to the stylesheet editor that came bundled with XMLSpy 2003 Enterprise 
Edition). I could create standards compliant XSL stylesheet and deploy 
them with out any issues. The stylesheet you produce does not contain 
any proprietary information/tags.

2)Inventive Designers Scriptura:
Nice WYSIWYG editor, written in java, so platform independent. Quite 
intuitive and easy to use. Currently (ver 3.0) Creates proprietary 
stylesheets that can only really be used in their formatting objects 
processor. The issue is they offer all kinds of bells and whistles 
within the editing which can prove to be extremely handy. The issues 
is you can not really use the designed stylesheet with FOP. They are 
about 2 versions behind on the xalan they use, consequently the name 
space references...especially when it comes to java get royally 
screwed up when you try and use the stylesheet in FOP. The motto here 
is you have to design...test... see what breaks, redesign...test...see 
what breaks, redesign...test...see what breaks... Then go in and 
manually change the name space declarations. Get the point.

3)Antenna House XSLTemplate Designer
Of the XSLFormatter fame, Antenna house has decided to offer it's 
clients a designer. One problem The "stylesheet" produced will 
only work with AH's XSLFormatter... You can not export the stylesheet 
to be used with other formatters. Try as I might, my conversation 
proved fruitless with them, I tried to point out that it might be 
important to developers to have the option to deploy the stylesheet on 
a machine running a formatter other than XSLFormatter... No dice 
So for the purposes of this forum.. They are out.

4)XSLFast
Nice WYSIWYG editor, written in java, so platform independent (sound 
familiar). XSLFast has fixed some of the annoyances they had in their 
earlier versions... They are the only editor on the market, as far as 
I can tell, that does not have an agenda of promoting a particular 
formatting engine (Scriptura, or antenna house). I liked using it. It 
is written in swing, so it can be a little sluggish in responding at 
times. I was able to develop a stylesheet and deploy it to my 
application using FOP with out any compatibility issues. It has some 
nice touches, such as offering a call out to an external stylesheet. 
The table tool is still a little counter intuitive, but over all a 
step forward for them.

5)by hand baby.
The reality is I use oXygen 4.0, my Ken Holman books, Zvon, and a 
whole lot of blood and sweat. I try an approach the stylesheet 
development the same way I approach my java programming. Creating 
reusable objects ( in this case templates) Importing and reusing where 
I can.

My two cents:
Rob
-Original Message-
From: Clay Leeds [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 10:16 AM
To: [EMAIL PROTECTED]
Subject: Re: What XSLT and XSL-FO editor do you use?
The only XSL-FO editors I'm aware of are listed on the FOP Resources 
page[1]. This discussion recently came up on this list, so if you 
check the archives, you might find something which leads to something.

Please report back what works best for you, so the FOP community can 
benefit from your experience.

Web Maestro Clay
[1]
http://xml.apache.org/fop/resources.html#products-editors
On Jun 16, 2004, at 5:56 AM, Roger wrote:
> I'm wondering what editors you use to create your XSD, XSLT and 
XSL-FO
> documents. At the moment I'm using a trial version of Altova XMLSPY
> and Stylevision. XMLSpy is meant to create the xsd, and sample
> xml-data-documents. Stylevision is meant for the FO and XSLT
> templates.
>
> XMLSpy is okay as far as I can see, but Stylevision has one big
> drawback: you can't edit the code in it. It only has a wysiwyg 
editor,
> which works quite okay, but not always like I want it. Now I merely
> use it to create a quick-start template, and then edit in jEdit.
>
> With the proper plugins installed, jEdit works really nice. My 
problem
> is that I cannot get the new code back into Stylevision. At the 
Al

How to keep the table`s columns description on the next page?

2004-06-22 Thread Milen Dimitrov
   Hi,
can somebody help me with this issue:
I have a very long tables that spreads on more than 1 page, and I want 
to have the columns titles on every page. I cannot put the columns 
titles in fo:region-before because the tables are different.
10x

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


RE: Error in output to PostScript

2004-06-22 Thread Renzo Callant
Thanks,

Problem solved. I removed the check from PSStream.java.

I do wonder why this check was in the code.
Can this be left out in a future release ?

Renzo Callant


-Oorspronkelijk bericht-
Van: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Verzonden: maandag 21 juni 2004 20:11
Aan: [EMAIL PROTECTED]
Onderwerp: Re: Error in output to PostScript

Uh oh. My fault. You hit a bug. This happens in
org.apache.fop.render.ps.PSStream.java. I think I read somewhere that a
single line of PostScript code shouldn't contain more than 256
characters. That's probably why I wrote that check. But unfortunately, I
can't find the reference anymore.

A work-around is to fetch the FOP 0.20.5 sources, remove the check from
PSStream.java and recompile the whole thing. If your PostScript RIP
doesn't choke on lines longer than 256 characters you've won.

If that doesn't work, we need to find out why this happened. In this
case you'd have to send an XSL-FO document that reproduces the bug. One
immediate way to narrow down the search: Use -d on the FOP command line
and send the stacktrace. But it probably won't be enough.

On 21.06.2004 16:04:19 Renzo Callant wrote:
> I'm trying to render a PostScript file with FOP. 
> But i get the following error :
>  
> ...
> [DEBUG] rendering areas to PostScript
> [INFO] [1]
> [DEBUG] Last page-sequence produced 1 pages.
> [INFO] [2]
> [ERROR] PostScript Command exceeded limit of 255 characters
> org.apacge.fop.apps.FOPException: PostScript command exceeded limit of
> 255 characters
> ...
>  
> I've used the same .fo to render a .pdf of 4 pages, no problem with
> that.
> Why do i get this error in generating a .ps ? 



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]



SV: Text problem

2004-06-22 Thread HÃ¥kan Fransson
Hi again!
Yes, PDF works fine but i need to use AWT so i will try uppgrading JDK.

> -Ursprungligt meddelande-
> Från: Chris Bowditch [mailto:[EMAIL PROTECTED]
> Skickat: den 22 juni 2004 10:25
> Till: [EMAIL PROTECTED]
> Ämne: Re: Text problem
>
>
> Håkan Fransson wrote:
>
> > Hi!
> > I'm a newbie with FOP and XSL-FO and have a problem with text.
> > 1. It seems that whitespaces differs in lenght between words in
> a sentence.
> > 2. I want to print out letters å, ä and ö from swedish language
> but words
> > with
> > this letters doesn't follow the others words in a sentence. They are a
> > little below
> > the other words.
> > I'm using arial fonts on windows and the AWTRenderer.
>
> The AWTRenderer uses Java's inbuilt font metrics, and depending on what
> version of Java you have they can be a bit buggy. Try rendering to PDF, I
> think the output will appear better. If so, and you absolutely
> must have AWT,
> then consider changing/upgrading your JDK.
>
> 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 in output to PostScript

2004-06-22 Thread Chris Bowditch
Jeremias Maerki wrote:
Uh oh. My fault. You hit a bug. This happens in
org.apache.fop.render.ps.PSStream.java. I think I read somewhere that a
single line of PostScript code shouldn't contain more than 256
characters. That's probably why I wrote that check. But unfortunately, I
can't find the reference anymore.
I'm no Postscript expert, but I know from my use of Ghostscript that DSC 
comments are limited to 255 characters.


Chris

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


Re: Text problem

2004-06-22 Thread Chris Bowditch
Håkan Fransson wrote:
Hi!
I'm a newbie with FOP and XSL-FO and have a problem with text.
1. It seems that whitespaces differs in lenght between words in a sentence.
2. I want to print out letters å, ä and ö from swedish language but words
with
this letters doesn't follow the others words in a sentence. They are a
little below
the other words.
I'm using arial fonts on windows and the AWTRenderer.
The AWTRenderer uses Java's inbuilt font metrics, and depending on what 
version of Java you have they can be a bit buggy. Try rendering to PDF, I 
think the output will appear better. If so, and you absolutely must have AWT, 
then consider changing/upgrading your JDK.

Chris

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


Text problem

2004-06-22 Thread HÃ¥kan Fransson
Hi!
I'm a newbie with FOP and XSL-FO and have a problem with text.
1. It seems that whitespaces differs in lenght between words in a sentence.
2. I want to print out letters å, ä and ö from swedish language but words
with
this letters doesn't follow the others words in a sentence. They are a
little below
the other words.
I'm using arial fonts on windows and the AWTRenderer.

Håkan Fransson


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