Error IPP printing - can someone help me out?

Environment - WinXP
Code:
package xmlp;
import java.io.*;
import oracle.apps.xdo.delivery.*;
public class xpdeltest {
public static void main(String[] args) {
try {
DeliveryManager deliverymanager1 = new DeliveryManager();
System.out.println("done new delivery manager");
DeliveryRequest deliveryrequest1 =
deliverymanager1.createRequest(DeliveryManager.TYPE_IPP_PRINTER);
System.out.println("done set output type");
deliveryrequest1.addProperty("HOST:String", "http://lrappdev1/printers/");
System.out.println("done set host");
deliveryrequest1.addProperty("IPP_PRINTER_NAME:String",
"IBMInfoP/.printer");
System.out.println("done printer name");
deliveryrequest1.addProperty(DeliveryPropertyDefinitions.IPP_DOCUMENT_FORMAT,DeliveryPropertyDefinitions.IPP_DOCUMENT_FORMAT_PLAINTEXT);
System.out.println("done doc format");
//deliveryrequest1.addProperty("IPP_USE_FULL_URL:String", "true");
//deliveryrequest1.addProperty("IPP_USE_CHUNKED_BODY:String", "true");
deliveryrequest1.setDocument("test.txt");
System.out.println("done getting file");
deliveryrequest1.submit();
System.out.println("done submitting");
int i = deliveryrequest1.getStatus();
String s12 = deliveryrequest1.getStatusMessage();
System.out.println("Status is " + i + "Status Message is " + s12);
deliveryrequest1.close();
} catch (Exception e) {
e.printStackTrace();
Error
done new delivery manager
done set output type
done set host
done printer name
done doc format
oracle.apps.xdo.delivery.DeliveryException: File does not exist : test.txt
     at oracle.apps.xdo.delivery.AbstractDeliveryRequest.setDocument(AbstractDeliveryRequest.java:315)
     at xmlp.xpdeltest.main(xpdeltest.java:26)

Hi Shaun
Thanks for quick reply.Reason why i was referring code snippets is "we are not using XML publisher enterprise edition,we are using Oracle XML Publisher plain version which is without enterprise enhancement. So we can not apply PDF filter in configuration page".
Steps which u r refering is applicable to enterprise edition.I will insert snippet of code first which i get it from Oracle® XML Publisher 5.6.1 Guide.
// create delivery manager instance
DeliveryManager dm = new DeliveryManager();
// create a delivery request
DeliveryRequest req = dm.createRequest(DeliveryManager.TYPE_I
PP_PRINTER);
// set IPP printer host
req.addProperty(DeliveryPropertyDefinitions.IPP_HOST, "myhost
// set IPP printer port
req.addProperty(DeliveryPropertyDefinitions.IPP_PORT, "631");
// set IPP printer name
req.addProperty(DeliveryPropertyDefinitions.IPP_PRINTER_NAME,
"/printers/myprinter");
// set the document format
req.addProperty(DeliveryPropertyDefinitions.IPP_DOCUMENT_FORM
AT,
DeliveryPropertyDefinitions.IPP_DOCUMENT_FORMAT_POSTSCRIPT)
// set the document
req.setDocument("/document/invoice.ps");
// submit the request
req.submit();
// close the request
req.close();
-- Now here Printer can only understand .ps file ,it will not understand .pdf file,so i have to convert PDF into .ps first ,Before following line in above code
req.setDocument("/document/invoice.ps");
So do u know ,how i can convert PDF to PS in Java Program ,any utility or any Java API ,which will convert PDF to PS
Thanks
Darshan

Similar Messages

Maybe you are looking for

  • 3 times in a 4 hr period iTunes has stopped working.

    I was listening 2 some of my music when in a period of 4 hrs iTunes stops working 3 times. I get the message the app has stopped working.

  • Recovering information from OST files

    Hi, I did a Exchange server change and before I did an copy of each mailbox to an pst file. As it turned out one off the out pst files is correupted. I found the original outlook.ost file. Is there any tool for revering the information to an pst file

  • Error in LabView.exe after each start

    I installed LabView 7.0 in an older computer (Pentium III, 500 MHz, 512M RAM, Windows 2k sp4) along with GPIB and E-series PCI cards. Each time I open LabView it crashes and says "LabView.exe has generated errors and will be closed by Windows. An err

  • Glossy screen vs. standard screen

    I've read the pros and cons on both but wondering what the consensus is out there about which is preferable, especially for editing video? Any help is appreciated. I'm about to purchase a Macbook Pro.

  • Pc suite 7 and N82

    Hi. i have a troble with my computer, a virus called "bagle". then i hope to resolve it, but now my pc suite doesn't work.... when i connect my mobile it said to me that no connection are available..(not Irda, not bluetooth, not USB)...i try to didin