Re: Select Printer with Print-Renderer

2003-10-07 Thread Benjamin Wischek
Hi !

Thank you for the reply.

But this does not really help me. I am looking for a solution where I can
choose one of several installed printers (on a windows-system; by its name
perhaps, not via dialog) from within my java program and then send the generated
pdf (or ps as alternative) to the printer. Seems like the jdk itself does
not have some solution like that...

Sorry for being some kind of off-topic.

Greetings, Ben


Digitale Urlaubsfotos online speichern und Abzüge bestellen bei  
http://www.epost.de



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



Re: Select Printer with Print-Renderer

2003-10-07 Thread Benjamin Wischek
Ah, ok. But how did you realize the print output with 1.3 ? I have to use
the windows-spooler in order to have some kind of error-management.

Greetings, Ben

-- Original Nachricht --
Reply-To: [EMAIL PROTECTED]
From: Chris Bowditch [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Select Printer with Print-Renderer
Date: Tue, 07 Oct 2003 10:26:45 +


From: Benjamin Wischek [EMAIL PROTECTED]

Hi !

Thank you for the reply.

But this does not really help me. I am looking for a solution where I
can
choose one of several installed printers (on a windows-system; by its
name
perhaps, not via dialog) from within my java program and then send the

generated
pdf (or ps as alternative) to the printer. Seems like the jdk itself does
not have some solution like that...


JDK 1.4 does provide classes for interogating the O/S for a list of
installed printers. So you may be able to write some classes that do what

you want. Its a bit fiddly though.

FOP doesnt make use of the Java Print API because it needs to work on JDK

1.3, which I'm glad about because upgrading for my company would be a
nightmare.

Chris

_
Stay in touch with absent friends - get MSN Messenger
http://www.msn.co.uk/messenger


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








Digitale Urlaubsfotos online speichern und Abzüge bestellen bei  
http://www.epost.de



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



Re: Select Printer with Print-Renderer

2003-10-07 Thread Benjamin Wischek
Ok, thank you very much. Using 1.4 should be no problem, I'll give it a
try then.
I already thought of something like your TCP/IP-solution, but the problem
is that I do not have any control whether the document has been printed
after sending it to the printer or not.

Greetings, Ben

-- Original Nachricht --
Reply-To: [EMAIL PROTECTED]
From: Chris Bowditch [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Select Printer with Print-Renderer
Date: Tue, 07 Oct 2003 12:54:35 +


From: Benjamin Wischek [EMAIL PROTECTED]

Ah, ok. But how did you realize the print output with 1.3 ? I have to
use
the windows-spooler in order to have some kind of error-management.


I just open a Byte stream to our printer via TCP/IP. I didnt need to worry

about using windows or even unix print/error management. If you want to

present a list of printers installed on the O/S to the user you are going
to
have to use Java 1.4. If you cant use Java 1.4 then you are stuck with
using

the default printer or use TCP/IP, where the user specifies either a UNC

name or TCP/IP address and Port.

Chris

_
Tired of 56k? Get a FREE BT Broadband connection
http://www.msn.co.uk/specials/btbroadband


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








Digitale Urlaubsfotos online speichern und Abzüge bestellen bei  
http://www.epost.de



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



Select Printer with Print-Renderer

2003-10-06 Thread Benjamin Wischek
Dear List,

I try to use the Print-Renderer of FOP on a W2K System. The Renderer works
with the standard printer, but is there a possibility to choose another
printer ? I do not mean by printer dialog, but by giving the printer name
for example. There should be no user input necessary.

Greetings,

Benjamin


Digitale Urlaubsfotos online speichern und Abzüge bestellen bei  
http://www.epost.de



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



Re: Select printer fonts from FOP

2003-09-11 Thread Benjamin Wischek
Hello Jeremias !

 You have to get the PFM file for each font and create the XML font
 metric files as shown in [1]. Also add them to the userconfig.xml and
 you should be able to reference these printer fonts. I hope that helps.

Ok, I get the idea, but where can I get the PFM-files ?

Greetings,

Ben


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



Select printer fonts from FOP

2003-09-10 Thread Benjamin Wischek
Dear list,

I am using the PS output of FOP now. One limitation is that it does not
support font-embedding.

But is it possible to select the printer internal fonts that come with
postscript from within the XSL-FO? If yes, how can I do that ?

Greetings,

Ben


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



Re: Printing PDF ?!?

2003-09-05 Thread Benjamin Wischek
Hi Chris!

Sorry, I got your mail when I was at home, so I couldn't mail you back with
the wanted information.

So here it is. I added the svg from Krysalis and a text-file with the
exception as attachment.

BTW: I started FOP from the command line...

Greetings, Ben[ERROR] java.lang.NullPointerException
org.apache.fop.apps.FOPException: java.lang.NullPointerException
at 
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:111)
at org.apache.fop.apps.Fop.main(Fop.java:62)

-

java.lang.RuntimeException: java.lang.NullPointerException
at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3170)
at 
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:433)
at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown 
Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown 
Source)
at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(Unknown 
Source)
at 
org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown
 Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:134)
at org.apache.fop.apps.Driver.render(Driver.java:498)
at 
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:106)
at org.apache.fop.apps.Fop.main(Fop.java:62)

-

java.lang.RuntimeException: java.lang.NullPointerException
at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3170)
at 
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:433)
at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown 
Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown 
Source)
at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(Unknown 
Source)
at 
org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown
 Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:134)
at org.apache.fop.apps.Driver.render(Driver.java:498)
at 
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:106)
at org.apache.fop.apps.Fop.main(Fop.java:62)?xml version=1.0?
svg:svg xmlns:svg=http://www.w3.org/2000/svg; height=15mm width=36.67mm
  svg:g style=fill:black; stroke:none
svg:rect height=12.1781mm width=0.19mm x=1.9mm y=0mm/
svg:rect height=12.1781mm width=0.19mm x=2.565mm y=0mm/
svg:rect height=12.1781mm width=0.475mm x=2.945mm y=0mm/
svg:rect height=12.1781mm width=0.475mm x=3.61mm y=0mm/
svg:rect height=12.1781mm width=0.19mm x=4.275mm y=0mm/
svg:rect height=12.1781mm width=0.19mm x=4.655mm y=0mm/
svg:rect height=12.1781mm width=0.19mm x=5.035mm y=0mm/
svg:rect height=12.1781mm width=0.475mm x=5.7mm y=0mm/
svg:rect height=12.1781mm width=0.475mm x=6.365mm y=0mm/
svg:rect height=12.1781mm width=0.19mm x=7.03mm y=0mm/
svg:rect height=12.1781mm width=0.475mm x=7.41mm y=0mm/
svg:rect height=12.1781mm width=0.19mm x=8.075mm y=0mm/
svg:rect height=12.1781mm width=0.19mm x=8.74mm y=0mm/
svg:rect height=12.1781mm width=0.19mm x=9.12mm y=0mm/
svg:rect height=12.1781mm width=0.475mm x=9.5mm y=0mm/
svg:rect height=12.1781mm width=0.19mm x=10.165mm y=0mm/
svg:rect height=12.1781mm width=0.475mm x=10.545mm y=0mm/
svg:rect height=12.1781mm width=0.19mm x=11.495mm y=0mm/
svg:rect height=12.1781mm width=0.19mm x=11.875mm y=0mm/
svg:rect height=12.1781mm width=0.475mm x=12.255mm y=0mm/
svg:rect height=12.1781mm width=0.475mm x=12.92mm y=0mm/
svg:rect height=12.1781mm width=0.475mm x=13.585mm y=0mm/
svg:rect height=12.1781mm width=0.19mm x=14.535mm y=0mm/
svg:rect height=12.1781mm 

Re: Printing PDF ?!?

2003-09-05 Thread Benjamin Wischek
Hi Chris !

 I'm a bit puzzled by the first exception.txt you sent. Cant explain it. 
 Anyway, the second exception you sent is what I expected, the PCL Renderer
 falling over because it cant cope with SVG. 

Sad to hear this...

 I checked the SVG you sent and
 its just got simple rectangles. So it looks like the website is wrong.
 Sorry that you've wasted time trying to get it working

No problem, I had to expect something like this as fop is still in
development...

Perhaps you could take care of it that the homepage might at least be
updated with a note that there are doubts about svg-support for the pcl
renderer...might be I just made another mistake but don't get it at the moment.

Of course I want to thank you very much for spending your time and knowledge
to help me.

Greetings, Ben


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



Re: Printing PDF ?!?

2003-09-05 Thread Benjamin Wischek
Hi there !

@Matthias: Thanks for your advice, but I already had it formated this way...

I am not giving up *g*

I looked around for a while on the Batik-Homepage because of this method
not found message in the batik.jar.

There is a FAQ and it says about problems with fop  batik used together
(http://xml.apache.org/batik/faqs.html#faq-28). It advices to remove the w3c.jar
of fop from the classpath. But I don't find this file. Is it the
xml-apis.jar in the fop\lib directory ? I played around with the included jar's 
in the
JBuilder Classpath and especially with the order of the files. I also used the
complete batik package from xml.apache.org/batik. And if I use this in
classpath before the rest of the jar's from FOP I get another Exception. But I
think this confirms only what Chris pointed out, that FOP's CPL-Renderer does
not support SVGs.

Here is the new exception, perhaps someone has an idea...

java.lang.AbstractMethodError:
org/apache/fop/svg/SVGElementMapping.addToBuilder
at org.apache.fop.apps.Driver.addElementMapping(Driver.java:439)
at org.apache.fop.apps.Driver.addElementMapping(Driver.java:450)
at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java:314)
at org.apache.fop.apps.Driver.init(Driver.java:222)
at xml2pdf.ExampleXML2PDF.convertXML2PDF(ExampleXML2PDF.java:95)
at xml2pdf.ExampleXML2PDF.main(ExampleXML2PDF.java:155)
Exception in thread main 

However, I am off for the weekend now... *g* Have a good time.

Greets, Ben


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



Printing PDF ?!?

2003-09-04 Thread Benjamin Wischek
Hello there !

So, as I found out here
(http://marc.theaimsgroup.com/?l=fop-userm=102460147622314w=2) FOP does not 
support SVGs when converting to PCL. That is very
sad as the next possibility for using dynamic generated barcodes with fop
(Krysalis), is no solution for me...

I'm now working on a solution where I convert the SVG (created with Krysalis
Barcode) to JPG (using Batik Rasterizer) and then import it via
fo:external-graphic into the xsl. This is a lot more complex and I think it 
will affect
performance in a way that it will be useless for me...

Another possibility would be to print the pdf-files directly or convert them
to pcl or postscript, as the pdf-files look the way I want them to be... But
the problem is that I have to print the pdf's directly from java. And as the
final system will run on Linux as well as AS/400 it has to be without the
printer driver. So far the idea was to send the pcl directly per tcp/ip to a
network-printer. But with pdf this won't be possible of course...

Perhaps someone here has another idea... ?!?

Greetings,

Ben


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



Re: Printing PDF ?!?

2003-09-04 Thread Benjamin Wischek
Thank you for the quick reply. I am indeed using the 0.20.5.

Well, as soon as I have SVG-data in my xsl-file and render to pcl, I get a
NullPointerException.

Rendering to PDF with the same files works perfectly. Conversion to
Postscript works too (at least for the Test-Files I am using) but the numbers 
under
the barcode are not readable.

I don't really know if there is something wrong with the svg's which
Krysalis Barcode generates, but as it works with pdf's it should do with pcl, 
too.
Perhaps someone here has worked with svg's and pcl already and has an svg
which is working for him and can send it to me.

Greetings,

Ben


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



Error when placing svg into xsl with fo:external-graphic

2003-09-03 Thread Benjamin Wischek
Hello !

I'm trying to put a svg-file into my xsl-file and then let it run through
FOP. The svg is a barcode example from krysalis barcode homepage.

I used the fo:external-graphic command:

fo:block
fo:external-graphic src=example-code39.svg/
/fo:block

I also included the svg namespace at the begining in xsl-stylesheet:

xmlns:svg=http://www.w3.org/2000/svg;

But each time i run FOP with my xsl i get the following error:

[ERROR] Could not load external SVG: null
[ERROR] Error while creating area : No ImageReader for this type of image
(file:
example-code39.svg)
[INFO] Parsing of document complete, stopping renderer

The error does not depend on the output file.

I'm new to this stuff, so thank you in advance for helping me out.

Greets,

Ben


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



Re: Error when placing svg into xsl with fo:external-graphic

2003-09-03 Thread Benjamin Wischek
Ok, I'm so sorry...

I tried the whole thing at home now, and everything works fine.

Seems like I have some old JDK on my system at work. Thought it is
1.3.1 which should be sufficient. Looks like I have to reinstall it or
upgrade to a newer one.

Sorry again for my mistake.

Greets,

Ben


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



Convert to PCL with barcodes ?

2003-09-02 Thread Benjamin Wischek
Dear list,

I am trying to convert XML/XSL to PCL using FOP. I need to embed a
barcode-font to print barcodes. Unfortunately font-embedding is not supported by
current release of FOP (0.20.5).

Will there be a new version of FOP soon supporting font-embedding in PCL ? 
Or does anyone know an alternative for barcodes in PCL ? It is important
that it gets not too complex as I have to manage a lot of printing-jobs in a
short time.

Greets,

Ben


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



Re: Convert to PCL with barcodes ?

2003-09-02 Thread Benjamin Wischek
Thank you Chris for the fast answer...

I'll give the Krysalis stuff a try. Sounds not bad.

Greetings, Ben


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