Flatten PDF using OutputServiceClient

Hi,
I am trying to flatten the PDF using the below code.
   OutputServiceClient outputClient = new OutputServiceClient();
                   outputClient.Endpoint.Address = new System.ServiceModel.EndpointAddress("http://172.20.148.143:8080/soap/services/OutputService?blob=mtom");
                   //Enable BASIC HTTP authentication
                   BasicHttpBinding b = (BasicHttpBinding)outputClient.Endpoint.Binding;
                   b.MessageEncoding = WSMessageEncoding.Mtom;
                   outputClient.ClientCredentials.UserName.UserName = "administrator";
                   outputClient.ClientCredentials.UserName.Password = "password";
                   b.Security.Transport.ClientCredentialType = HttpClientCredentialType.Basic;
                   b.Security.Mode = BasicHttpSecurityMode.TransportCredentialOnly;
                   b.MaxReceivedMessageSize = 2000000;
                   b.MaxBufferSize = 2000000;
                   b.ReaderQuotas.MaxArrayLength = 2000000;
                   //Create a BLOB object
                   ConsoleApplication1.ServiceReference1.BLOB inData = new ConsoleApplication1.ServiceReference1.BLOB();
                   //Reference an interactive PDF document
                   string inputFileName = "C:\\ab\\xfa_movies.pdf";
                   FileStream fs = new FileStream(inputFileName, FileMode.Open);
                   //Get the length of the file stream and create a byte array 
                   int len = (int)fs.Length;
                   byte[] byteArray = new byte[len];
                   //Populate the byte array with the contents of the file stream
                   fs.Read(byteArray, 0, len);
                   //Populate the BLOB object
                   inData.binaryData = byteArray;
                   //Set rendering run-time options 
                   RenderOptionsSpec renderOptions = new RenderOptionsSpec();
                   renderOptions.cacheEnabled = true;
                   //Create a non-interactive PDF document
                   ConsoleApplication1.ServiceReference1.BLOB results = outputClient.transformPDF(
                       inData,
                       TransformationFormat.PDF,
                       PDFARevisionNumber.Revision_1,
                       null,
                       PDFAConformance.A);
                   //Populate a byte array with a BLOB data
                   byte[] outByteArray = results.binaryData;
                   //Create a new file that represents the non-interactive PDF document
                   string FILE_NAME = "C:\\ab\\NonInteractiveLoan.pdf";
                   FileStream fs2 = new FileStream(FILE_NAME, FileMode.OpenOrCreate);
                   //Create a BinaryWriter object
                   BinaryWriter w = new BinaryWriter(fs2);
                   w.Write(outByteArray);
                   w.Close();
                   fs2.Close();
But it is not working. I referred the help where it talks about the usage of  BLOB.MTOM but is dont see this property when i added the webReference.
REgards
Pushpendra

Hi,
Well it did not work, we have updated the version from the ES 8.2.1 to 8.2.1.3 and still IS running incorrectly.
We used two different mechanisms to place XML data in PDF:
  - Forms
  - FormDataIntegration
None works, the imported data do not appear in the final flatten PDF.
Where it works properly is with LC ES2, we have to update, because we rush to deliver this development.
While we understand that should work with the ES version 8.2.x, all documentation is in your website says this, but the reality is that (at least to us) does not work, the static PDF preloaded (with DataIntegration or Forms) and then flattened with Assembler NOT show the latest data preloaded.
Thx.

Similar Messages

  • Is it possible to flatten transparency in a pdf using Adobe Reader or do I have to buy Acrobat?

    I'm trying to create a book cover PDF using publisher and then saving as a pdf. But, that isn't flattening the transparencies. I only have Adobe Reader and am hoping that program will allow me to flatten the transparency in the native document. If I can't do this, odd lines show up on my printed books. Any ideas?

    Modifying an existing PDF file is several magnitues more complicated than creating one from scratch. The PDF standard is VERY complicated and contains a myriad of features with their specific syntax elements. In order to modify an existing PDF you have to be able to understand every syntax element that occures in the PDF, or you may end up corrupting the file.
    When you create a new PDF you can pick out the syntax elements that your tool supports and forget about the 95 other procent.
    There are many PDF Toolkits than can create PDF files, a few that can open PDF files and present them, and almost none that can edit them. The Adobe PDF Editor being one of the few that can do that, but nobody is going to give away such a Toolkit for free.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • After Preflighting a PDF, using Convert to CMYK, Flatten Transparency and Prepress Profile Convert to CMYK only the resultant PDF has a grubby halo along the edge of some white type sitting on an image. The type is part of the image.

    I am using a 27" iMac 3.2 GHz Intel Core 5, 8 GB Memory, running Yosemite 10.10.1. 
    The version of Acrobat that I am using is: Acrobat XI Version 11.0.10
    After Preflighting a PDF, using Convert to CMYK, Flatten Transparency (high resolution) and Prepress Profile "Convert to CMYK only" the resultant PDF has a grubby halo along the edge of some white type sitting on an image. The type is part of the image which is 300 dpi.
    It is like the image isn't really 300 dpi but has been artificially boosted to that to avoid being tagged by Preflighting, but when Preflighting the file it knows the original resolution.
    I have screen grabs which illustrate the problem perfectly but do not know how to post them, if indeed they can be.
    Any help or comments gratefully received.

    Without the files and possibly screen prints, it is virtually impossible to assist you.
              - Dov

  • Print to PDF - using Snow Leopard (Saving a PDF file when printing is not supported. Instead, choose

    i have a PDF form that i created that is used as a custom proposal that my company sends out to potential clients. the form in its editable state is only used internally. we recently upgraded to snow leopard, but prior to the upgrade, we were able to fill the custom proposal form out using adobe reader, and, as you well know, we weren't able to save that edited document as a PDF with the custom form fields filled out. our work around using adobe reader was to print to a pdf using the adobe pdf printer in the printer dialog. with the addition of snow leopard, however, instead of choosing the adobe pdf printer, we were to choose PDF from the bottom left corner, then Save As PDF, and it would spit out an uneditable pdf that then allowed us to email it to the potential client without them being able to edit it as well as have an internal, digital copy for our records instead of having lots of paper floating around (i know this is also doable using security that disallows the client certain editing privileges, but printing to a pdf is much quicker and more efficient, and the pdf security isn't really that secure at its best).
    in any case, i came across this gem of a post here on the support forums that installs another option from the PDF drop down on the bottom left of the print dialog menu that reads Save As Adobe PDF and is supposed to do exactly what i am trying to get it to do...print to a pdf file from adobe reader.
    http://kb2.adobe.com/cps/509/cpsid_50981.html    
    once i updated to acrobat 9.2 (as the link above suggests 9.1), however, the Save As Adobe PDF does appear in the print dialog menu, but it still gives me the same error that acrobat 8 - 9 gave me while using Snow Leopard — Saving a PDF file when printing is not supported. Instead, choose File > Save — and as i've already explained, you can't save an edited pdf form in reader (as i am the only one in the office with acrobat) and still keep the fields as you've entered them in. the only work around is to print to a pdf but is apparently having some recent problems.
    using acrobat, however, i know that i can save the editable pdf as a new file with the fields customized as i have left them, but it still saves it as an editable pdf and the print to a pdf option still remains the best option...that way we have digital copies internally that are uneditable that can be printed at any time or emailed to the client.
    how can i do print to a pdf, based on what i've written above, using snow leopard and acrobat and reader?

    A simple way is to flatten the form fields, which converts the field appearances to regular page contents. You can do this with JavaScript or PDF Optimizer (Advanced > PDF Optimizer > Discard Objects > Flatten form fields). A very nice script that adds a custom menu item can be found here: http://www.uvsar.com/projects/acrobat/flattener/

  • When I print to PDF using Acrobat 11 Pro from any application the acrobat Reader does not launch automatically. Associations are correct. Thx for your help,  Bruce

    When I print to PDF using Acrobat 11 Pro from any application the acrobat Reader does not launch automatically. Associations are correct. Happens from Chrome, IE, Word, Excel, Powerpoint. Previously had deskPDF installed but uninstalled correctly. Can't find a preference setting for the auto launch. Thx for your help,  Bruce

    A simple way is to flatten the form fields, which converts the field appearances to regular page contents. You can do this with JavaScript or PDF Optimizer (Advanced > PDF Optimizer > Discard Objects > Flatten form fields). A very nice script that adds a custom menu item can be found here: http://www.uvsar.com/projects/acrobat/flattener/

  • Flatten PDF whit Assembler have NO form data ¿lose?

    Hello
    I using LC ES 8.2.1, and have licence for Forms ES and ReaderExtensions ES Services.
    I need flatten XFA based form generated with Adobe Designer, and saved as "Static PDF Form" (we no have Output Service).
    1) Have Static PDF Form + XML data.
    2) Forms ES: Load XML data on the form.
    3) Assembler: Form with data (generated on 2 point) flatten using <NoXFA /> or <NoForms />
    PROBLEM:
    The problem is in the flatten PDF generated by Assembler have NO DATA, if the Assembler DDX happened to get <NoXFA /> or <NoForms />, the resulting PDF does NOT show the form data that had previously preloaded with Forms ES.
    ¿Why PDF LOSE data? ...have any way to flatten PDF with data (without using OUTPUT Service)????
    Thx

    Hi,
    Well it did not work, we have updated the version from the ES 8.2.1 to 8.2.1.3 and still IS running incorrectly.
    We used two different mechanisms to place XML data in PDF:
      - Forms
      - FormDataIntegration
    None works, the imported data do not appear in the final flatten PDF.
    Where it works properly is with LC ES2, we have to update, because we rush to deliver this development.
    While we understand that should work with the ES version 8.2.x, all documentation is in your website says this, but the reality is that (at least to us) does not work, the static PDF preloaded (with DataIntegration or Forms) and then flattened with Assembler NOT show the latest data preloaded.
    Thx.

  • How to create in InDesign with "Helios Server" a flattened pdf file?

    Hi,
    anybody know about how to use Helios server to create flattened pdf file?
    some details:
    software: InDesign CS4
    Operating System: Macintosh

    I hope you meant it when you said any and all suggestions would be appreciated. This is kind of for listed bullets, but you seemm well versed that you could play with this to make it work.
    First, you want to set your text and apply some general bullets. You can make a new paragraph style if you’d like to set your indents for personal preference. Off to the side, place your graphic you want to use for the bullet.
    Next, select your bullet text and convert the bullets to text. Now it gets bouncy, but follow slowly and it may work for you.
    Copy one of the general Bullets to the pasteboard. Then, Find/Change, pasting the bullet text character in the Find what. Go back to your document and copy the logo or graphic to your clipboard. Make sure it is formatted to your bullet size and colors, etc...
    Go back to your open Find/Change dialog and select the Change to (special characters for replace) to clipboard contents, formatted. From there, you can select and tweak things such as text wrap.
    Just one FYI - When you try to select all in your text box, the graphics used for the bullets will NOT be selected in the links pallette.

  • Writing flattened PDF on disk !!

    Hi,
    Please help me on this.
    I have a livecycle process which uses a template PDF Form and a process variable ( XML Form Data ). In this long lived process there are multiple steps (users, operations etc.). At the LAST Step I need to write a flattened PDF file (Template Form with final XML Data) on disk.
    The way I tried:
    Step: 1 -
    Placed a generatePDFOutput service, Here I merge template with xml form data,
    Output stored in another process variable 'outDoc' of document type.
    Step: 2 -
    Place a Write Document service next to above step. Input document - outDoc (output doc of previous step)
    Set others parameters, In Pathname Patterns I have just set the directory path.
    But when I am running this, it is giving an error.
    Error-
    com.adobe.workflow.datatype.InvalidCoercionException: Cannot coerce object: <document state="passive" senderVersion="3" persistent="true" senderPersistent="false" passivated="true" senderPassivated="true" deserialized="true" senderHostId="127.0.0.1//////////192.168.1.200///////" callbackId="0" senderCallbackId="0" callbackRef="null" isLocalizable="true" isTransactionBound="false" defaultDisposalTimeout="600" disposalTimeout="600" maxInlineSize="65536" defaultMaxInlineSize="65536" inlineSize="28332" contentType="application/pdf" length="-1"><cacheId/><localBackendId/><globalBackendId/><senderLocalBackendId/><senderGlobalBackendId/><inline>%PDF-1.7
    %����
    32 0 obj
    <</Filter/FlateDecode/First 15/Length 220/N 3/Type/ObjStm>>stream
    h޼O�
    �@...</inline><senderPullServantJndiName>adobe/idp/DocumentPullServant/adobejb_server1</senderPullServantJndiName><attributes CONTENT_TYPE="OUTPUT_DATA" RESULT_REPORT="[B@1aeb36f" basename="052263c11ee0a2f8b0a688d8926726f6" file="C:\Windows\Temp\AdobeDocumentStorage\local\docm1294992843250\052263c11ee0a2f8b0a688d8926726f6" wsfilename="C:\Windows\Temp\AdobeDocumentStorage\local\docm1294992843250\052263c11ee0a2f8b0a688d8926726f6"/></document> of type: com.adobe.idp.Document to type: java.lang.Integer
         at com.adobe.workflow.dom.VariableAttr.setBoundValue(VariableAttr.java:69)
         at com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataValue(PATExecutionContextImpl.java:796)
         at com.adobe.workflow.engine.PEUtil.invokeAction(PEUtil.java:926)
         at com.adobe.workflow.engine.SynchronousBranch.handleInvokeAction(SynchronousBranch.java:510)
         at com.adobe.workflow.engine.SynchronousBranch.execute(SynchronousBranch.java:888)
         at com.adobe.workflow.engine.ProcessEngineBMTBean.continueBranchAtAction(ProcessEngineBMTBean.java:2797)
         at com.adobe.workflow.engine.ProcessEngineBMTBean.asyncContinueBranchCommand(ProcessEngineBMTBean.java:2551)
         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:597)
         at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
         at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
         at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
         at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
         at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
         at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:173)
         at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:77)
         at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
         at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
         at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
         at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
         at org.jboss.ejb.Container.invoke(Container.java:960)
         at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
         at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
         at $Proxy410.asyncContinueBranchCommand(Unknown Source)
         at com.adobe.idp.workflow.dsc.service.ProcessCommandExecutorService.continueBranch(ProcessCommandExecutorService.java:39)
         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:597)
         at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.java:118)
         at com.adobe.idp.workflow.dsc.invoker.WorkflowDSCInvoker.invoke(WorkflowDSCInvoker.java:154)
         at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor.java:140)
         at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
         at com.adobe.idp.dsc.interceptor.impl.DocumentPassivationInterceptor.intercept(DocumentPassivationInterceptor.java:53)
         at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
         at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(TransactionInterceptor.java:74)
         at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTransactionCMTAdapterBean.java:357)
         at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doSupports(EjbTransactionCMTAdapterBean.java:227)
         at sun.reflect.GeneratedMethodAccessor696.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
         at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
         at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
         at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
         at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
         at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
         at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:378)
         at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
         at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
         at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
         at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
         at org.jboss.ejb.Container.invoke(Container.java:960)
         at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
         at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
         at $Proxy378.doSupports(Unknown Source)
         at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvider.java:104)
         at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInterceptor.java:72)
         at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
         at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStrategyInterceptor.java:55)
         at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
         at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateInterceptor.java:37)
         at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
         at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterceptor.java:165)
         at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
         at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)
         at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
         at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:121)
         at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:129)
         at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:93)
         at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:225)
         at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:66)
         at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
         at com.adobe.workflow.engine.PEContinueBranchCommand.execute(PEContinueBranchCommand.java:91)
         at com.adobe.workflow.workadapter.WorkflowCommandExecutionUnit.execute(WorkflowCommandExecutionUnit.java:22)
         at com.adobe.idp.dsc.workmanager.adapter.ManagedAsynchronousWorkAdapter.run(ManagedAsynchronousWorkAdapter.java:70)
         at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
         at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
         at java.lang.Thread.run(Thread.java:619)
    Please help me on this.
    Thanks in advance.
    Abhinav

    Make sure to set the "PDF Output" from the Output section and not the "Output Result" from the Additional Result to your document variable.
    PDF Output uses a document variable where Output Result takes a OutputResult data type.
    Somehow the error is saying you're trying to put document variable into an integer.
    What are you settings for the Write Document operation?
    Jasmin

  • Can we assemble XFA and Flatten pdfs?

    Hi,
    I am not sure if assembler can create a XFA + Flatten pdf to a XFA form.
    I want to assemble a pdf1 (xfa)  with pdf2 (flatten) to produce a pdf3.
    Pdf3 should not be completely xfa or flatten, so that i can submit pdf3 on hit of button and extract out xml out of it.
    PDF1 is an application form
    PDF2 is just instruction page, so i want to keep it as flatten to reduce size of this pdf.
    PD3 should be XFA cum flatten, so when it is rendered to user and user clicks on submit button. It will submit the entire pdf.
    Please let me know how do i do using assembler.
    Regards
    Sunil

    I got the solution in assembler Service and DDX reference documentation.
    Example: Assembling an interactive XFA-based form with other documents
    <PDF result="intermediate_result.pdf" return="false">
    <XDP>
    <XDP source="doc1.xdp"/>
    <XDP source="doc1.xdp"/>
    </XDP>
    </PDF>
    <PDF result="final_result.pdf">
    <PDF source="intermediate_result.pdf" baseDocument="true"/>
    <PDF source="nonXFAForm.pdf"/>
    <PDF source="other_nonXFAForm.pdf"/>
    </PDF>
    Regards
    Sunil

  • How to email flattened pdf

    How come with new update I can no longer send flattened copies of pdf's?
    Also when I email a fillable pdf there is no information in email copy?
    Thanks for any help.

    Hi Steve,
    I just tried emailing a fillable pdf using Adobe Reader 11.2.0 on an iPad and everything is working fine. It might be possible that the issue which you are reporting is specific to pdf you are using. Are you facing this issue with all set of pdf files?
    Could you please send any such pdf file to us at [email protected] to hepl us investigate the issue.
    Thanks,
    Ankit
    Adobe Reader Team

  • Convert smartform output in to PDF using CONVERT_OTF function  how to do it

    Hi Anil , and  Hi All
             I am trying to display smartforms output in java webdynpro
             for that i have got the following code in sdn.
               can anybody please clarify these doubts in the  below code
               1) What are the mandatory input and output parameters
                   I have to pass here in this code to my application
               2) please check my previous post also in this regards please
       . Please reply at the very earliest. Check the below code
    Convert smartform output in to PDF using CONVERT_OTF function module and you can write pdf using parameter 'binfile' of this function in WebDynpro using the following code:
    It is copied from my prg. I hope you understand it.
    public void onActionGetQuote(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionGetQuote(ServerEvent)
    wdThis.wdGetOppt_QwriterCustController().executeZquote_Writer_Input();
    String fileName = wdContext.currentZquote_Writer_InputElement().getOrder().toString().trim() + System.currentTimeMillis() + ".pdf";
    String pdfOutput = new String(wdContext.currentOutputElement().getBinfile());
    if (pdfOutput != null)
    try
    String pdfResoucePath = WDURLGenerator.getResourcePath(wdComponentAPI.getDeployableObjectPart(), fileName);
    FileOutputStream fileOutputStream = new FileOutputStream(new File(pdfResoucePath));
    PrintStream ps = new PrintStream(fileOutputStream);
    ps.print(pdfOutput);
    ps.close();
    //Display the PDF to the browser
    String fileURL = WDURLGenerator.getAbsoluteWebResourceURL(wdComponentAPI.getDeployableObjectPart(), fileName);
    IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(fileURL, "Pdf Browser", false);
    window.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
    window.removeWindowFeature(WDWindowFeature.MENU_BAR);
    window.removeWindowFeature(WDWindowFeature.STATUS_BAR);
    window.removeWindowFeature(WDWindowFeature.TOOL_BAR);
    window.open();
    // To collect all the file created in the server by user
    quoteFiles.add(quoteFiles.size(), pdfResoucePath);
    } catch (Exception e)
    throw new WDRuntimeException(e);
    //@@end

    Hi
        ABAPers prepared a BAPI function module which calls Smart form , how can i execute it from java Webdynpro, so that I can display the smart form in Webdynpro. Pleas reply at the very earliest.  Every answer will be rewarded.
    regards
    jalandhar

  • How to get page number from the PDF using Javascript

    Hi,
    We are having list of Single page PDF. The pdf are named in the order,
    ISBN_Author_01.PDF  (with real page number as i)
    ISBN_Author_02.PDF  (with real page number as ii)
    ISBN_Author_03.PDF  (with real page number as iii)
    ISBN_Author_04.PDF  (with real page number as 1)
    ISBN_Author_05.PDF  (with real page number as 2)
    ISBN_Author_06.PDF  (with real page number as 3)
    ISBN_Author_nn.PDF  (with real page number as 500)
    Here each pdf has a page number and in sequential order.
    The task is to check whether all the pdfs are in sequential order (i.e i, ii, iii, 1, 2, 3). If any page is missing, the script should throw an error report.
    To do this task, I am writing a Javascript to get the real page number from the PDF.
    Can anybody help me how to get the page number from the PDF using Javascript.
    Thanks,
    Gopal

    The "real" page number within a PDF is the count of the physical page starting at 0, zero.
    pageNum numPages
    The number printed on each page is the page label.
    setPageLabels  getPageLabel
    You will have to open each PDF and your script would need to know the page label for that file. I would expect you would need to build a 2 dimensional  array of the file names and the page label for the page within that array.

  • What happens to attachment in a PO when it is converted to PDF using SPOOL.

    Hi Experts,
    While converting a PO to PDF using a spool number, it works fine but i have a question as If the PO has an attachment, does the spool take care of that also?
    If not how to download the attachment as well.
    Thanks & Regards,
    K

    Hi Shan,
    No in ME21N there is a tab called Attachment, by which we can attach a note or something(I am thou not sure why this is done), yes a script is generated into a PDF but this attachment which is part of PO does it get attached or we need to do somthing to attach it to PDF was my question?
    Cheers,
    K
    Edited by: Ken Thompson on Sep 29, 2008 5:58 AM

  • How to repeat table header on each page of PDF using Coldfusion

    Hi all,
    Can anybody help me in resolving this issue. The details are mentioned below.
    I am generating PDF using <cfdocument> tag of Cold Fusion.
    I have a header and footer to be displayed on each page. I am rendering data in a table.
    If rows in the table exceed a page , and continue on the next page , I want the table headers to be repeated on each of the page.
    Example :
    Currently this is happening:
    Page Header
    Sr No
    Name
    Occupation
    1
    A
    A
    2
    B
    B
    3
    C
    C
    Page Footer : Page No 1
    Page Header
    4
    A
    A
    5
    B
    B
    6
    C
    C
    Page Footer : Page No 2
    What I want is :
    Page Header
    Sr No
    Name
    Occupation
    1
    A
    A
    2
    B
    B
    3
    C
    C
    Page Footer : Page No 1
    Page header
    Sr No
    Name
    Occupation
    4
    A
    A
    5
    B
    B
    6
    C
    C
    Page Footer : Page No 2

    Hi Dan ,
    Thanks for your inputs.
    This way wont work beacause , am displaying other text and table both, and the table will be diplayed based on some conditions. If the conditions are true , table will be diplayed , else not.
    I missed to illustrate text in the example. The scenario is something like this :
    Page Header
    Text .........
    Table [Displayed conditionaly]
    Page Footer
    Please suggest me some way to do this.

  • When i try to open a pdf using int exp i get a message that it has encountered a problem and will cl

    when i try to open a pdf using int exp i get a message that it has encountered a problem and will close

    Internet explorer.  I have adobe reader and flash player which I uninstalled and reinstalled.  I tried another browser and the pdf's open so it is a problem with IE .Thanks for your comments.
    [private data removed]

Maybe you are looking for