Hi,

 I have the some problem that fop produces different outputs
 by writing a pdf-file, 'fop -print' or 'printing -pcl'

 My workaround is to let fop produce a pdf-file and then print 
 this file (The variable outfile contains the name of the pdf-file):

 Windows NT:
 Runtime.getRuntime().exec("cmd /C AcroRd32.exe /p /h "+outfile);

 Linux:
 Runtime.getRuntime().exec("lp -d printer1 "+outfile);

 If someone knows a better way (Windows or Linux) to print a pdf-file 
 from a Java-Application, please let me know. 
 Or knows someone a 'PDF Printer service' so the Java Print API 
 (javax.print.*) can be used?

 Ralf


>Date sent:             Thu, 13 Mar 2003 16:33:16 +0000
>From:                  andrew mercer <[EMAIL PROTECTED]>
>Subject:               Printing using Java
>To:                    [EMAIL PROTECTED]
>Send reply to:         [EMAIL PROTECTED]
>
> Hi,
> 
> I have only just started using fop and need to print the final output 
> automatically from within my java code.
> 
> I notice from the users mailing list that questions have been raised 
> before (eg: 'Printing from FOP Driver' dated 2002-06-02 and 'Printing 
> from Java-Application' 2002-04-16) but not answered.
> 
> I have the same questions, ie how to overcome the exception and are 
> there memory concerns.
> 
> I have tried printing from the command line using ...Fop -print ... and 
> have noticed that the positioning of the data is different to when I 
> output the same file to pdf and then print the pdf.
> 
> Does this suggest that the I have to set the layout differently for each style
> of output?
> 
> Thanks Andrew
> -- 
> 
> 
> Andrew Mercer, Sundayta Ltd. http://www.sundayta.com
> iDocSys for Document Management. VisibleResults for Fundraising.
> Development and Hosting of Web Applications and Sites.
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to