How to render PDF in InfoPath whose source is a memory stream

I'm struggling to interface InfoPath calling a Web service that generates a PDF and rendering the PDF for the user.
The document workflow is:
Using InfoPath (using both the fat client and browser client), display a form for the user to complete.
Collect the entered information and call the Opus Web Service (Elixir) to render a PDF.
The PDF is sent back to InfoPath through the web service call.
Open the PDF for the user and provide them the ability to review and/or print the document.
It's this last step that's causing the problems -- It's no problem when this is all part of a web page. This work flow is used for thousands of PDF reviews via web pages daily.  However, because I have to use InfoPath, I'm struggling to find an easy solution.  I can't write the returned data to disk and open the document because the InfoPath Browser is really tied into SharePoint and I don't want to store temporary PDF files on the SharePoint server.
My issue is : How to render a PDF document that is sourced as a memory stream.
I'm down to a couple of possible solutions and have some questions:
1) I looked at writing a plug-in to support another ASFileSys interface which would be used to read from memory instead of from disk. But I don't see a way to invoke my plug-in through an API.  Is this possible?
2) I looked at the OLE interfaces, but didn't see a nice way to pass a document in through memory.  Is there an interface that accomplishes this task?
3) I did see that I could create a compound document in memory and then call the OLE interfaces.  Has anyone done this and is it maintainable ? 
4) The OLE format also lends itself to placing the PDF inside of an RTF to display. Seems like a lot of work to put a wrapper around the PDF, but I do think that also alleviates the need to register any components in SharePoint.  Again, has anyone seen this done?
In the end, none of these seem very straight forward. So I have to ask, am I missing something obvious here? 
Thanks for your help,
Chris Andrews

Infopath has a fat client interface and a browser version where the server is a sharepoint server.  So the web service executes on the local desktop or in the Sharepoint server depending upon which interface is used.  The best way to work on InfoPath solutions is to focus on the fat client solution with a couple of caveats.  Asume that you can't create temp files, and assume that you can't invoke a new application, and that you aren't in an HTTP request/response environment (since Sharepoint is a wrapper around the back end browser interface).  You can invoke code that is in DLLs, OCX, TLB, etc... (typical Active X, or library code).
Chris

Similar Messages

  • How to preserve original filename in Automator 'render pdf as images'?

    Using Automator's 'render pdf as images' will result in output of files in random names
    What are the correct workflow if the desired output files would be the original filename? Ex: manual.pdf ---> manual.jpg, manual.pdf ---> 0001bU.jpg
    PS: I have tried 'Rename Finder Items--->Make sequential' but it still doesnt produce the desired output, it only makes manual.pdf ---> 0001bU-01.jpg

    You convert the CMYK document to RGB using standard color management. The rest is beside the point. We know nothing about your experience in 3D nor your actual artwork, settings, system and so on. Just slapping on a texture on a 3D model doesn't make it look "real" or even photo-realistic. You have to understand lighting, shading and how to prepare textures properly, stuff for which you can find any number of tutorials on the web (though not specifically for PS 3D).
    Mylenium

  • How to publish XML document whose source is stored in clob column

    I have to create simple application:
    in one table are stored some information about XML documents (date of creation, etc.) and the document source itself in one (unfortunatelly clob type) column.
    The point is to anable users finding document(s) and viewing it.
    Using forms I can search and display information about documents. But I have no idea how to publish XML document whose source is stored in clob column.
    I am using Oracle Portal 3.0 on NT.
    Thanks in advance.

    Hi Sergio,
    This link might be helpful:
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r31/apex31nf/apex31blob.htm
    Also refer the BLOB Download Format Mask :
    {message:id=9716335}
    Here I have given the format mask for APEX 4.0, which will slightly differ for 3.2.1 and proposed changes
    in the format mask are:
    1) Format Mask: DOWNLOAD
    2) Content Disposition: Inline
    This will be achieved with it:
    >
    But now, my user would like to know if it´s possible that APEX application can OPEN some of these files stored on this BLOB column WITHOUT download it.
    My user would like to see a hiperlink (or button) that, if pressed/acessed, can open a new page (or a page inside application) with the document. He doesn´t need to edit this oppened file. He only wants to see it.
    >
    Hope it helps!
    Regards,
    Kiran

  • Automator - When using the Render PDF as Image action, the first file is out of order (naming).  How can I fix this?

    I am creating an Automator Action to render PDF files as Images.  When the PDF is multiple pages, the first page has no numbers, so it ends up at the end of the list.  Here's an example:
    When it is a single page, the result is:
    filename.png
    When it is multiple pages, the result is:
    filename 141.png
    filename 142.png
    filename 143.png
    filename 144.png
    filename.png
    First, it always seems to start at 141...not sure why.
    Second, I did try to add an action to rename and make sequential, however the resulting list was in the same order... except with additional numbers at the end.
    Any suggestions?

    I see. 
    This worked when I tested on 1 PDF:
    The Run Shell Script Action is:
    basename=${1##*/}
    echo ${basename%.*}
    If it's still out of order, add: Sort Finder Items [by creation date] after Render PDF Pages as Images

  • How to display pdf-files out of a blob

    Hello,
    we want to use pdf to publish our enterprise-informations (jobs, press release...) in the intranet.
    How can a display a pdf-file with Portal that was saved in blob?
    regards
    Ralf Schmitt

    Not entirely. At least we came to the conclusion it doesn't make (much) sense to block the save option of PDFs if you want to allow printing them
    Anyway; there is of course another possibilty: you could always write your own java bean PDF reader; there are plenty of java PDF libraries available:
    Open Source PDF Libraries in Java
    The easiest way would be to choose one which can open a PDF from a URL and render it; I would retrieve the image via mod_plsql using WPG_DOCLOAD and simply use the PDF library to render the PDF. No tempfiles anyway, and if you don't implement it there is also no save button.
    cheers

  • How to view PDF files strored in a BLOB column

    Hi all,
    I want to display a PDF file, stored in a BLOB column, in a form or through a JavaBean.
    But the problem is more complicated then that. I do not want to retrieve the PDF file in the application server that show it through a browser.
    Actually, I do not want users to get the entire file, I just want them to see it or print it.
    I want, in fact, to display a "stream" of bytes through Oracle Forms. Not a file.
    This one, sounded to be a good solution, but actually not. When the file was too big (multiple pages), the application was blocked until the entire file was loaded. And when you try to print it, it wasn't printed right. The advantage of this solution is that it is open-source so we can add methods to connect to the DB, retrieve the content of the BLOB column and displays it without downloading the file.
    Here is a good solution. Really good, files are loaded quickly, the rendering is really good and the file is printed perfectly (as it was printed from Adobe Acrobat). The disadvantage of this solution is that it is not open-source and is really expansive.
    As you can see, both solutions uses PJC.
    So any help, any idea to solve my problem will be highly appreciated.
    Thanks to all of you,
    Amine
    PS : I am using F&R 11gR2

    Not entirely. At least we came to the conclusion it doesn't make (much) sense to block the save option of PDFs if you want to allow printing them
    Anyway; there is of course another possibilty: you could always write your own java bean PDF reader; there are plenty of java PDF libraries available:
    Open Source PDF Libraries in Java
    The easiest way would be to choose one which can open a PDF from a URL and render it; I would retrieve the image via mod_plsql using WPG_DOCLOAD and simply use the PDF library to render the PDF. No tempfiles anyway, and if you don't implement it there is also no save button.
    cheers

  • How to generate PDF file through reports using forms 6i

    Hi all,
    I am using oracle 10g with forms 6i and reports 6i.I need to generate pdf file where clicking a button a report should be called and the report should be generated as a .pdf file in the source i have specified(ex. d:\...).Is this popssible with forms?.how can i achieve this.Kindly help me with suitable answers.Thanks :)
    Regards
    Vids

    hi,
    regarding report, there is a dedicated report forum. you should post there.
    but answer for your question is form is nothing to do with the pdf generation. you can call the report from the as usual.
    In the report you should set the properties like
    destype to 'file'
    desname to 'path with file name'
    desformat to 'pdf'

  • How to call PDF file in Web Dynpro Appl?

    How to call PDF file in Web Dynpro Appl?

    Hi Gobinath,
    1. Create a value attribute of type byte called pdfSource.
    2. Insert an UI element called Interactive Form in your layout
    3. Set the source property of this Interactive From UI element to the context pdfSource.
    4. Insert a button which would open your pdf file.
    public void onActionsubmit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionsubmit(ServerEvent)
       IPrivate<viewname>.IContextElement contextElement = wdContext.currentContextElement();
             byte[] bytes = contextElement.getPdfSource();
             try
                   File file = new File("C:
    temp
    example.pdf");
                   FileOutputStream os = new FileOutputStream(file);
                   os.write(bytes);
                   os.close();
                catch (IOException e)
                   // do something
                   e.printStackTrace();
        //@@end
    Warm Regards,
    Murtuza

  • How to change pdf file properties?

    Hi all,
    Preview works great at generating PDFs from Word files, but the metadata fields (e.g., author, title, etc.) don't come over accurately. In Preview, when I click "Get Info," the metadata fields have different values than the original Word document had.
    Anyone know how I can edit the info in the pdf file? Even if I open the properties window through the Finder instead of Preview, I can still only view them, not edit them.
    Thanks

    It isn't actually Preview's fault - at least, I doubt it. I expect you would see the same in any viewer. It could be Word's fault or it could be Apple's underlying PDF creation software. Apple's distiller respects this data when created in other ways, though.
    I didn't suggest the text editing option because it is a little hair-raising editing binary files in that way and I assumed you probably wanted a slightly more user-friendly option. I can see it working if your need is infrequent, though - especially since if anything does go wrong, you can always recreate the PDF from the Word source.
    Good luck with it, anyway.
    - cfr

  • Automator: render pdf to images

    I am taking a folder of pdf files all named numerically in the order they should be in and rendering them to images using the automator "render pdf to images."
    This outputs the images with completly random names. Even using the "Rename Finder Items" as suggested right after the Render pdf to images still does not produce images in the right order.
    This is really frustrating as I can't even see how this function could be useful for anyone if it can't produce images with some kind of logical file names.
    Does anyone have experience with this?
    Message was edited by: Jessek

    Not sure what the testers of some of these actions were thinking about, but you might try using the Dispense Item Incrementally action to step through your file list one at a time.

  • Automator: Render PDF as Images changes the filename.

    I have a PDF named "Bamboo Cutting Board Sales Sheet.pdf" that contains one image.
    When I run the PDF through the Automator action Render PDF As Images, the filename is saved and changed to "002ddf334.jpg.
    How do I keep the original file name?

    I see. 
    This worked when I tested on 1 PDF:
    The Run Shell Script Action is:
    basename=${1##*/}
    echo ${basename%.*}
    If it's still out of order, add: Sort Finder Items [by creation date] after Render PDF Pages as Images

  • Fastest Way to Render PDF from XML

    Hi
    I have used XSLTC(pre-compiled XSL files) to render PDFs.Parser i have used are the latest from XALAN.
    Using FOP 0.20.5
    Using JAXP 1.3 i am using the validate framework for validating XMLs against XSDs.
    This is the fastest approach which i could possibly come up with for rendering XMLs into PDFs
    I am just wondering..with so many API etc available is there any accepted fastest way of Rendering PDFs through XML.
    I mean this should also take into account the rendering capability of the transformers.
    Any insights would be welcome.
    Thanks.

    Logging and Capturing?  Or Logging and TRANSFERRING?  This being P2...I'll assume the latter.  It should take about a gig a min to transfer...the same time needed to back up a card. 
    But you are L&T right from the camera...so I assume that you are not backing up the footage...just importing?  Why not back up?  That's step #1.  Unless you are backing up later.  Connected to the computer via USB or Firewire?  And the drive is connected to the computer how?  USB or Firewire?

  • Is it possible to use a form variable (in memory) as input to render pdf?

    Hi,
    I understand that the render to PDF service takes URI as input, but what if I have a xdp form modified and stored in memory, and would like to use that to render PDF, how can this be done?
    Thakns in advance.

    Hi Jasmine,
    Thanks for the tip. So, is this what I need to do?
    I have an xdp form in the repository, and xml data I generate from a custom component.
    1. render the pdf form (merge xdp (no data) with xml data)
    2. convert pdf back to xdp (this xdp now includes data) and stored as a document variable in memory
    3. manipulate the xdp (via custom component)
    4. render the pdf form by passing the xdp (from step 3) in a document variable type as part of the data parameter, leaving URL blank.
    5. write pdf to disk
    This would work right? Is there another way?
    Thanks in advance.

  • How to make pdfs above 8MB open in browser?

    Pdfs whose size is below 8MB open in the browser while those above 8MB open in an Acrobat window. How to make pdfs irrespective of their size open in the browser window only?

    The setting you are looking for is located in Tools > Options > Applications. If setting it to using the in-browser plugin doesn't work, you will have to contact Adobe support at http://www.adobe.com/support/.
    '''Your Firefox version is several years old. It's no longer supported, and using it is a security risk.'''
    Please update to version 3.6.10 using '''Help''' > '''Check for updates''' menuitem, or by downloading the installer from http://getfirefox.com. Thank you.

  • How to remove pdf files inside ibooks on mavericks OS

    Hi, I tried to delete PDF files in iBooks on Macbook Pro Mavericks OS , but it is also deleting in source file.
    how to remove PDF's in ibooks without deleting source file. please help
    regards,
    bpk

    I've not long worked out how to do basic things on my iMac but have had some coaching on other forums, as it goes this happened to me this morning.
    Inadvertently, I managed to get all pdfs into ibooks and faced similar "delete" problem, couldn't drag the files out of ibooks either: Accidentally I found all ibooks info in a library through finder, took a while but right clicking "move to trash"  got rid of them but not from pages/documents!
    Re-opening ibooks initially showed the pdfs still in place, except after double clicking one a message appeared telling me the file could not be opened, then immediately the remaining books were shuffled and pdfs disappeared - still in documents though, and able to open.
    Hope this helps, there may well be an easier way...

Maybe you are looking for