EJB api  (PDFGAPI7.submitJob())converting  pdf to  ps usage

I am using the PDFGAPI7.submitJob() method for PDF to PS conversion,following is the code ,as the 'jobConfiguration' parameter i have used 'PDFGAPI7.getPDFExportXML("PS", 0,null)' as mentioned by the api ,i am still not able to convert the 'pdf' to .ps, i get a 'The supplied post script has errors' even though i am passing a 'pdf' as the input and expecting a .ps as the output file.Is the api usage correct?
will appreciate ur comments
Hashtable propsJNDI = new Hashtable();
// Populate the Hashtable object with JNDI environment values
propsJNDI.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
propsJNDI.put("java.naming.provider.url","jnp://localhost:1099");
propsJNDI.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
InitialContext initialContextOb = new InitialContext(propsJNDI);
//Look up the default PDFGAPI7 home object using the default properties case,//and then create an EJBClient object for it.
Object homeObject = initialContextOb.lookup( PDFGAPI7Home.JNDI_NAME );
PDFGAPI7Home apiHome =( PDFGAPI7Home )PortableRemoteObject.narrow( homeObject,PDFGAPI7Home.class );
PDFGAPI7 apiBean=apiHome.create();
String pdfExportXML=apiBean.getPDFExportXML("PS", 0,null);//for pdf to other file conversions
AESAPIResults result= apiBean.submitJob("pdftoPsConversion",
new java.io.File("C:/Temp/test.pdf"),
"test.ps",
false,
pdfExportXML,
null,
9,
null,
null,
"en_US",
null);
This creates the directory C:\WINDOWS\Temp\pdfg-SYSTEM\20\fde3-fffbb5-dfab61-e655cd-10b4c4-fd76a1\destdir with 3 files
1)test.log,2)_error_( with the code '12011' as the content)
I was able to locate the code ('1009') in pdfg-all.ear >aes-common.jar>ErrorCodes.properties
"12011 = The supplied PostScript has errors.".This indicates the usage of api is wrong ,please do let me know the right usage .
3)_done_(has no content)

Hi Sujith
I'm encountering the same problem you have only trying to convert the PDF to JPEG.
1) was your issue resolved ? if so how?
2) the call I am making is as follows:
ht.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
ht.put(Context.PROVIDER_URL, "t3://grfnzts1srv:21968");
try {
initialContextOb = new InitialContext(ht);
if(initialContextOb == null){
System.out.println("null initial context");
//System.out.println("lookout start");
Object homeObject = initialContextOb.lookup( PDFGAPI7Home.JNDI_NAME );
//System.out.println("lookout complete");
PDFGAPI7Home apiHome =
( PDFGAPI7Home ) PortableRemoteObject.narrow( homeObject,
PDFGAPI7Home.class );
try {
PDFGAPI7 apiBean = apiHome.create();
i_xml = apiBean.getPDFExportXML("JPEG", 777, null);
//i_xml = jxml;
//System.out.println("\n\n\n"+i_xml);
File i_pdfFile = new File(a_sourceDir,a_fileName);
System.out.println("file name"+i_pdfFile.getPath()+"/"+i_pdfFile.getName());
AESAPIResults i_result = apiBean.submitJob(
"Convert JPEG",
i_pdfFile,
i_pdfFile.getName(),
false,
i_xml,
null,
APIConstants.DEFAULT_JOB_PRIORITY,
null,
null,
"Conversion DAEMON",
null);
I'm getting either:
The source file you submitted is not supported by this version of PDF Generator. (if I send the full path)
or
The system encountered an unexpected error while processing this request. Please contact the system administrator. C:\Documents and Settings\idank\My Documents\Tasks - code\YPG\ACL\pdf\InternalProofMask.pdf (The system cannot find the path specified) - if i give just the file name
your help on the matter would be great
Thank you
Idan Koch

Similar Messages

  • Converting PDF to Jpg file

    hi
    i am looking for an pure java api wich will convert pdf file into jpg.

    If it is going to State Legislators I would highly suggest doing the PDF in a DVD-ROM folder. (I am sort of assuming these are pages of material, and not a bullet point type list.) It also lets them print things out and read them.
    That being said, I find Motion does a nice job of making text. Export as self contained in a codec like Pro Res, then bring it into Compressor. Often CBR will give good results on text. even if you go that route, the PDfs in files may not be a bad idea....

  • Adobe livecycle 8.05 failed to convert pdf to postscript

    If I am posting this in the wrong forum, please move this to the correct place.
    I have been using Adobe Live cycle designer 8.05.2073.1.374024 for 6 months to a year.
    I have a working template that I am trying to modify. On this particular form if I move text or numeric fields around the form. I will get the following error. I am wondering if there is some way to see all suspected problem code in the .XDP template file (something like LINT).
    [8/12/08 12:36:38:279 EDT] 71714be SystemOut O DEBUG [Servlet.Engine.Transports : 3] (DeserializerImpl.java:251) - Set value Message: Failed to convert PDF to PostScript, IDL:com/adobe/document/pdf/PDFOperationFailure:1.0
    StackTrace:
    com.taliantsoftware.adobe.ejb.AdobeRenderingException: Failed to convert PDF to PostScript, IDL:com/adobe/document/pdf/PDFOperationFailure:1.0
    at com.taliantsoftware.adobe.ejb.AdobeRenderingServiceBean.createPostScriptFromPDF(AdobeRend eringServiceBean.java:501)
    at com.taliantsoftware.adobe.ejb.AdobeRenderingServiceBean.renderDocument(AdobeRenderingServ iceBean.java:267)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:683)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:185)
    at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:72)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:120)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
    at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331 )
    at org.jboss.ejb.Container.invoke(Container.java:723)
    at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:359)
    at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83)
    at $Proxy83.renderDocument(Unknown Source)
    at com.taliantsoftware.adobe.webservices.AdobeRenderingSoapBindingImpl.renderDocument(AdobeR enderingSoapBindingImpl.java:69)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:388)
    at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:283)
    at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
    at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
    at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.interna

    Hello EPcommute
    We aplogize for the inconvenience, it could be a temporary glitch. Request you to try after some time.
    ~Deepak

  • Do you have any API for converting PDF to Excel?

    Do you have any Adobe API or Adobe SDK for converting PDF files to Excel files?. If yes, can it be called through java code?

    If it exists you will find it documented here:  Adobe - Acrobat Developer Center | Adobe Developer Connection

  • How to convert PDF file into binary using APIs of Adobe Workflow server?

    I m using the Adobe Workflow Server 6.2. I want to write a web services to convert PDF file into binary and embed this binary data with XML.
    I want to use the APIs (or libraries) of Adobe Workflow server but dont know abt the APIs or Libraries that can convert the PDF file into binary format.
    I will be very thankful to u,if u can help me as i m n this prblm frm the last one week.I tried alot but could nt find the solution.
    waiting for a better response.

    check objectlibrary.pdf
    Dim o As New EPSDK.BinaryData
    o.LoadFromFile(sfilename)
    write o.Value to xml

  • API to convert PDF to RTF;  .jar files

    We need to use java API to convert PDF file to RTF format.
    I'm trying to use java example at:
    http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/wwhelp/wwhimpl/common/ht ml/wwhelp.htm?context=sdkHelp&f
    ile=000452.html
    I have 2 questions:
    1. I can't find .jar files for that example:
    adobe-generatepdf-client.jar
    adobe-livecycle-client.jar
    adobe-usermanager-client.jar
    adobe-utilities.jar
    jbossall-client.jar
    Any version of Livecycle I download do not have such files
    What I should download to get those files?
    2. Could I do conversion having Tomcat only, without JBoss or WebLogic?
    Thanks,
    Mikhail

    1. They should be under C:\Adobe\Adobe LiveCycle ES2\LiveCycle_ES_SDK\client-libs\common. This is the LiveCycle SDK.
    2. No can't do the conversion with TomCat only. You need an application server (JBoss, WebSphere, WebLogic).
    Jasmin

  • Would Doclet API helps while converting frame maker files to pdf files

    Through Doclet API, can we convert frame maker (.fm) files to the PDF files ?
    I have requirement that I need to convert bulk of frame maker files to the pdf files actually, while googling I came to know that Doclet may support.
    If anyone has worked on this type of project, please help me.
    Thanks a lot.

    Someswara wrote:
    Through Doclet API, can we convert frame maker (.fm) files to the PDF files ?No.
    Someswara wrote:
    I have requirement that I need to convert bulk of frame maker files to the pdf files actually, while googling I came to know that Doclet may support.There is a doclet (called [MIF doclet|http://java.sun.com/j2se/javadoc/mifdoclet/]) that can produce .fm files from Java source files, if a you have fmbatch installed. To produce PDF file using MIF doclet or from *fm files you still need Adobe FrameMaker.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Any way to convert PDF document in to Tiff format with inbuilt IBR features

    Is there any way to convert PDF document in to Tiff format with inbuilt IBR features?
    In our Webcenter Portal app, we create the PDF document with the content of ADF pages and check it in UCM using RIDC api.
    There will some batch job which will retrieve the documents from UCM and send them to client internal Document management system. The client / batch job will only process TIFF files. So we need a way to convert the PDF into TIFF. We are okie to have both PDF and TIFF stored in UCM.
    When i have done research, i could only see components like PDFexport or TIFFConverter which only converts the other formats into PDF. But i am expecting a reverse conversion. Is it possible ? Thanks

    949767 wrote:
    Is there any way to convert PDF document in to Tiff format with inbuilt IBR features?
    In our Webcenter Portal app, we create the PDF document with the content of ADF pages and check it in UCM using RIDC api.
    There will some batch job which will retrieve the documents from UCM and send them to client internal Document management system. The client / batch job will only process TIFF files. So we need a way to convert the PDF into TIFF. We are okie to have both PDF and TIFF stored in UCM.
    When i have done research, i could only see components like PDFexport or TIFFConverter which only converts the other formats into PDF. But i am expecting a reverse conversion. Is it possible ? ThanksYa actually I got a tool that could [convert pdf | http://www.allbestapp.com/products/pdf-converter.html] to other formats, including jpg and tiff. that may fit your need.
    You could take a shot through the link above.
    Edited by: user13548958 on 2012-8-23 上午10:49
    Edited by: user13548958 on 2012-8-23 上午10:52

  • Convert PDF in Firefox disappared

    Firefox no longer has a "Convert" PDF function. Can anyone tell me what happened to it and how I can get it back? There is nothing listed in plug-ins or extensions related to Acrobat. (I can view PDFs online - this isn't about that, so please don't respond with answers about that.)
    Windows 8.1 and Windows 7, Firefox 33 on both. Installed version of AA: X Standard.

    assuming windows:
    1) open the pdf in acrobat reader and make sure that window is selected
    2) press alt + print screen to make a screenshot of the window
    3) paste in your favorite image editor
    It's not possible from Java, and I've never found an API to do this.

  • Converting PDF to CCITT Tiff files

    Hello,
    I have been given a programming task to convert PDFs into CCITT format Tiff files.
    I an new to using Acrobat and have looked at the example code and see the following code.
    JSObj.SaveAs(fullPathTIF, "com.adobe.acrobat.tiff")
    This does the conversion fine, but if greyscale or colour PDFs are converted they use a different compression type.
    Is there a way to convert the PDFs to black and white before the conversion, or forcing the conversion to the desired compression type?
    thanks
    John

    That is correct, because CCITT is only for black & white/monochrome images.
    If you wish to convert the PDF to B&W, you can do that as well via other JavaScript APIs (as documented in the SDK).
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Tue, 11 Oct 2011 13:32:31 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Converting PDF to CCITT Tiff files
    Converting PDF to CCITT Tiff files
    created by john_price56<http://forums.adobe.com/people/john_price56> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/3965901#3965901

  • Knows somebody any Java library to convert PDF to Tiff?

    I have problem to find some library in Java, which will be support converting files to TIFF format.
    Have you some tips?
    Thank you.
    Andrea

    949767 wrote:
    Is there any way to convert PDF document in to Tiff format with inbuilt IBR features?
    In our Webcenter Portal app, we create the PDF document with the content of ADF pages and check it in UCM using RIDC api.
    There will some batch job which will retrieve the documents from UCM and send them to client internal Document management system. The client / batch job will only process TIFF files. So we need a way to convert the PDF into TIFF. We are okie to have both PDF and TIFF stored in UCM.
    When i have done research, i could only see components like PDFexport or TIFFConverter which only converts the other formats into PDF. But i am expecting a reverse conversion. Is it possible ? ThanksYa actually I got a tool that could [convert pdf | http://www.allbestapp.com/products/pdf-converter.html] to other formats, including jpg and tiff. that may fit your need.
    You could take a shot through the link above.
    Edited by: user13548958 on 2012-8-23 上午10:49
    Edited by: user13548958 on 2012-8-23 上午10:52

  • Converting PDF Files to Html or Xml

    how can i tranfrom the pdf file to html or xml using Acrobat's API? The software already have the function(http://tv.adobe.com/watch/learn-acrobat-x/converting-pdf-files-to-other-file-formats/). In C# ,I can use the acrobat's dll open the pdf file  and  can invoke the  MenuItem SaveAs;
    like this:
                AcroApp.Show();
                AcroAVDoc.Open(@"D:\xpdf\a.pdf","aaaa");
                AcroApp.MenuItemExecute("SaveAs");
                AcroApp.CloseAllDocs();
                AcroApp.Exit();
    But this is not automatic.

    Try the forum for Acrobat SDK.

  • I need to convert PDF file to Word Document, so it can be edited. But the recognizing text options do not have the language that I need. How I can convert the file in the desired of me language?

    I need to convert PDF file to Word Document, so it can be edited. But the recognizing text options do not have the language that I need. How I can convert the file in the desired of me language?

    The application Acrobat provides no language translation capability.
    If you localize the language for OS, MS Office applications, Acrobat, etc to the desired language try again.
    Alternative: transfer a copy of content into a web based translation service (Bing or Google provides a free service).
    Transfer the output into a word processing program that is localized to the appropriate language.
    Do cleanup.
    Be well...

  • Need to convert pdf to word

    need to convert pdf to word

    Hi gurpreetkhalsa,
    To convert a PDF file to Word format, you need ExportPDF, Adobe PDF Pack, or Acrobat. Which option you choose depends on whether you need additional features--ExportPDF is the most basic option, and offers the ability to convert to Word, Excel, or RTF.
    Best,
    Sara

  • Need to Convert PDF to doc in Russian, why programm do not recognice it?

    Need to Convert PDF to doc in Russian, why programm do not recognice it?

    Hi alsu22,
    The OCR system that converts documents does not recognize any cyrillic languages, such as Russian.  If the text is already renderable (selectable), you may want to try converting your document without the OCR function enabled. You can find steps here: http://forums.adobe.com/docs/DOC-3062
    -David

Maybe you are looking for

  • Can't play audio cd in totem

    hello! the subject says all. when i insert an audio cd into my drive i can't play it with totem (totem-xine). the option "play audio cd" is greyed out. any ideas? mfg iggy

  • Upload file with additional comments column

    Hi Experts, When we upload data into the system using the import option of the data manager, we first upload the csv file into the system and then import the same using a transformation file. Now we have a requirement of inserting an additional colum

  • In CS3 can I export my audio and save it to a CD?

    Does anyone have experience exporting audio only to some file format and burning to CD? Is it as simple as exporting AUDIO only as wav and burning the wave file thru WMP? Message was edited by: Wes Cox

  • Why is Firefox Nightly always doing the same Update 10.0a1 (2011-10-30) every two days???

    you nightly version is always doing a repeat of the following Update: (Version 10.0a1 (2011-10-30) almost every two days. The update is applied correct and status has been given.

  • Unity PDL?

    Unity 7 MS Exchange 2007 Question: Is it possible using a PDL that when a message is read and/or deleted in one mail box (either via the TUI or e-mail client) to have the message maked read and/or deleted in the other mail boxes?  I have a requiremen