Re: png differs from pdf output

2007-07-15 Thread Fabian Zeindl
Andreas L Delmelle schrieb:
 The first is a known 'issue', especially if you use one of the Base14
 fonts. Reason is that the PNG renderer is dependent upon Java AWT to get
 to its fonts, while the PDF renderer uses its own.
 
 The second issue is most likely caused by the first: because the font
 metrics differ slightly, there is a chance of linebreaks (even
 pagebreaks) ending up differently.
 
 I don't know exactly what the story is for custom fonts, but when you
 register no special fonts with FOP, the effects you get are considered
 normal, and there is little you can do.

Hm, is it possible to use exactly the same font that is used in the pdf
(Helvetica) for AWT? Will I get the same results then? And when not, why
not?

fabian


smime.p7s
Description: S/MIME Cryptographic Signature


png differs from pdf output

2007-07-14 Thread Fabian Zeindl
Hi,

 I wrote an xslt transformation which works perfectly for pdf output.
But I tested png-output then, and saw that

.) the fonts in the png differ slighty and
.) a linebreak is on different place in the png. this caused an overflow
warning.

I read through the FAQs and so on, but still don't understand this
issue. The pagemaster-size in the xslt/xml-fo is specified in
millimeters (210x297mm for A4). Does it have do to something with that?

greetings
fabian


smime.p7s
Description: S/MIME Cryptographic Signature


Re: fop and SWT

2007-07-14 Thread Fabian Zeindl
J.Pietschmann schrieb:
 It is certainly possible, but it would require writing a new renderer
 which uses the appropriate SWT graphics functions. Starting off with
 the AWT/Print renderer, it is probably not all that difficult, but
 there are still lots of minor and a few major differences between
 SWT and AWT.

I think the easiest way is to subclass Java2DRenderer just like
PNGRenderer does, and convert the BufferedImages that are returned by
getPageImage to SWT-Images. Here's a snippet for the latter operation:

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet156.java?revision=HEAD

I first intended to avoid AWT-dependency, but since it's packaged in
default-jvm that's nonsense ;).

fabian


smime.p7s
Description: S/MIME Cryptographic Signature


fop and SWT

2007-07-11 Thread Fabian Zeindl
hi,

 I'm developing an application using SWT and I chose fop for printing.
Is it possible to use SWT's Printer object directly with fop? A
workaround, that came into my mind, was to use fop to get png-output and
print the png using SWT's methods. Am I forced to use AWT in the latter
case? (I don't want an additional dependency in my application.)

thanks in advance
fabian


smime.p7s
Description: S/MIME Cryptographic Signature


Re: FOP does nothing

2006-08-07 Thread Fabian Zeindl
Christian Geisert schrieb:
   1. When I try to convert the attached rechnung.fo into a pdf by running
 
 There is no attachement ..

Sorry, I forgot that. I already figured out the error. Fop 0.20
displayed the wrong xml statements. Fop 0.92 didn't display anything.

greetings
fabian

-- 
träge wird man niemals weise



smime.p7s
Description: S/MIME Cryptographic Signature


FOP does nothing

2006-08-05 Thread Fabian Zeindl
Hi,

 I'm using FOP for automatic bill printing, and I ran into a few
 problems. I already readthe FAQ but didn't find anything.
 So:

  1. When I try to convert the attached rechnung.fo into a pdf by running
  ./fop rechnung.fo test.pdf nothing happens. No output, no
  output-file. When I try to compile the basic.fo from the example
  section this works. When I try more some of the advanced example
  directory it doesn't work.

  2. I download the 0.92beta binary version and extracted it. How do I
  know whether all dependencies are satisfied? I didn't install
  anything apart form the JavaVM, but maybe Ubuntu already installed
  something for me. So my question: When I want to bundle fop for
  windows, what do I have to install too?

  greetings and many thanks for the great work!
  fabian

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