Direct printing with JIPSI [Was : Re: printing]
Direct printing with JIPSI [Was : Re: printing]
- Subject: Direct printing with JIPSI [Was : Re: printing]
- From: Jean-François Veillette <email@hidden>
- Date: Thu, 15 Dec 2005 14:18:50 -0500
Hi Melissa,
I'm trying to use JIPSI, and have moderate success.
I generate my pdf with fop, then use jipsi to send it to my postscript
printer.
Unfortunately it pass through a filter and the output is smaller as if
it tried to make it fit inside the page margin. But the pdf already
account for margin.
Printing directly from 'Preview.app' is ok, no problem with the pdf.
using "lpr file.pdf" give me the same filter problem !
using "lpr -l file.pdf" (which ask for 'raw' data stream) is ok,
perfect print (as with Preview.app).
I also tried LEIPPPrintJob, and I have the same problem.
Do you know how we can indicate 'raw data source' and bypass filters.
Thanks,
- jfv
Le 04-11-29, à 09:28, Kimball, Melissa L - Raleigh, NC - Contractor a
écrit :
I had asked a similar question to the list not to long ago (reference
"remotely print PDF from WO app" for responses).
What I ended up using is com.lowagie.text.pdf.PdfWriter to
programmatically generate my PDF document (there are more packages out
there - check SourceForge.com). There is a nice document to help you
get started:
http://bartneck.de/work/id/designByNumbers/creatingPDF.html
As for sending your PDF print job to the printer, I'm using Jipsi. A
CUPS (Common Unix Printing System) implementation of the Java Print
Service API (javax.print). It can get tricky, but just start out by
looking at the "example" program that is in the .jar.
http://lohndirekt.de/software/jipsi.html
There is another package that looks like the API is easier to use but
I didn't look into extensively.
http://www.lindesay.co.nz/downloads/
lewostuff_distrib_2nov2004.gnutar.bz2 LEIPPPrintJob class.
I don't want to post this as a SOLUTION to the problem because I'm
having to deal with some system administration issues that is
hindering my development, and proper testing of the app - Plus, the
app that I'm creating is just a mock that will be integrated into a
larger production app - this is the real test. I'll let everyone know
my discoveries, as soon as I get through the dense fog of politics.
I hope this will help you,
Melissa
-----Original Message-----
From: webobjects-dev-bounces+melissa.l.kimball=email@hidden
[mailto:webobjects-dev-
bounces+melissa.l.kimball=email@hidden
m]On Behalf Of Sean Cunneen
Sent: Friday, November 26, 2004 6:45 PM
To: email@hidden
Subject: printing
Hi all,
Sorry if this is bit of newbie question, but I could not find any docs
on the ADC site, or much info in the archives.
I am researching the feasibility of converting an existing POS solution
to a WebObjects java client. The java client delivers the richer
interface and user responsiveness required. However I can't determine
the best way to print information. We need to be able to print tax
invoices for each sale, as well an assortment of other forms such as
stock transfer sheets etc. Each store will operate on OS X with a
network laser printer, although I would like to keep the solution as
generic as possible.
I can find a number of options for producing reports to PDF (jasper
reports etc.) but this does not seem streamlined enough, or robust
enough for a retail situation. In the current solution, the tax invoice
is produced automatically, as soon as the user commits a sale. I don't
want to involve other apps, buttons etc if possible.
Thanks for any guidance on this topic.
Regards
Sean
--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
http://www.freeiPods.com/?r=21419063
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden