Client Side Signature of PDF in HTML Viewer returning the chnaged/signed PDF.

Hi,
I am generating a SFP PDF form which I then immediately save to a SAP PSRM Case.  I generate the PDF form 'fillable' and I have inserted a Signature Field in the form layout.
I have a requirement to save the signed form to the case once it has been signed.  This process should exclude saving the form to any application or presentation directories.
During the PSRM Case processing I can:
Successfully save the un-signed PDF to the Case
Successfully open the PDF via an HTML viewer
Successfully sign the PDF in the HTML viewer
The problem is when I return to the Case after the PDF has been signed I cannot save the signed PDF to the PSRM Case(SAP).
I am using the code below to display the un-signed PDF in the HTML Viewer
* Convert xstring to binary table to pass to the LOAD_DATA method
   CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
     EXPORTING
       buffer     = g_pdf_content_in
     TABLES
       binary_tab = gt_data.
* Load the HTML
   CALL METHOD g_html_control->load_data(
     EXPORTING
       type                 = 'application'
       subtype              = 'pdf'
     IMPORTING
       assigned_url         = lv_url
     CHANGING
       data_table           = gt_data
     EXCEPTIONS
       dp_invalid_parameter = 1
       dp_error_general     = 2
       cntl_error           = 3
       OTHERS               = 4 ).
* Show it
   CALL METHOD g_html_control->show_url( url = lv_url
     in_place = 'X' ).
I assume that 'gt_data' would now represent the signed PDF? How do I convert 'gt_data' back to a PDF xstring? I have tried:
  FM 'SCMS_BINARY_TO_XSTRING'
Various Methods in Class 'CL_BCS_CONVERT'
All with no success.  Either it saves the un-signed PDF to the PSRM Case or the PDF cannot be viewed as it is corrupt.
Please help.
Warm Regards
Waheeb

File is serializable but it is just a filename. When you pass or return it over RMI or Serialization, all you get is the filename. It doesn't take the file contents with it, or the ability to open it, unless it happens to also be the name of an existing file on the receiving system.

Similar Messages

  • When using the "Fill & Sign PDF" feature, is there a way to stretch to size the text box, for a specific area on the page...instead of it going on in one straight long line...?

    When using the "Fill & Sign PDF" feature, is there a way to stretch to size the text box on a specific area of the page...instead of the text box going on in one straight long line....? I'm not seeing there's an option or ability to do so, just wanting to confirm.

    Improving the handling of multiple line text fields is in our plans, but for now, you will have to add manual carriage returns (Enter).
    Thanks,
    Josh

  • BOBJ 6.5 - Infoview - Decimals Changing between PDF and HTML view

    HI,
    We have an issue with report generated in Webi 6.5.with figures shown to 2 decimal places. When viewed in HTML the figures are displayed correctly e,g, 7.8. When viewed in PDF format, the decimal point moves on random figures e.g. 8.7
    This is such an issue the customer wants to turn-off the ability to save to PDF!
    Thanks in advance
    Roy

    Hi Ted!
    Thanks for the reply and suggestions.  I don't know if there is a different version of the viewers folder that I should be using but I am using the ones from this folder:
    C:\Program Files\Business Objects\Common\4.0\crystalreportviewers12
    That said, I didn't see anything amiss in Fiddler and when I looked in Firebug at the script portion where it was constructing the FlexParameterUI panel, I could see where it was capturing the report parameter names and prompts.  I decided to rip out all the parameters out of my report and voila, it loaded up fine in the viewer.
    I then added a new string parameter giving it a simple short name (Test1) and, initially, I did not use this parameter in the report.  It loaded up in the viewer just fine too.
    I then added the parameter to the report header and I was back to the same problem - it would not load in the viewer and the error was the same as the subject line shows.
    For the record, I am using Crystal Reports 2008 v12.2.0.290
    So is there some other crystalreportviewers12 that I should be using?
    Kind regards,
    Evan

  • Dynamic pdf up to 200 images, the size of pdf is larger, cannot save data and images to the form

    Hi all,
    My client would like to dynamic images up to 200 pictures to my forms. It is working fine. However, when I add images up to 35 images. I could not add images to the form any more. Then, I save data on the form. All images and data typed on the form are disappeared. I don't know reason.
    If I only add 10 images - I can save data and images on the form. The size of pdf is 15456 kb.  I was unable to  add more pictures or data on the form.
    Maybe there are problem the size of pdf? How much size can an dynamic pdf  limited?
    Can we save the information and images as much as we want?
    I have spent 2 weeks to work and try to figure out this problem. However it is not successful.
    Please help,
    Cindy

    You should ensure, that your users do not import big images.
    Therefore you can use a script on the change event of an image field which checks the data size and warns the user if the file is too big.
    function formatNumber(number) {
        var num = number + '',
        x = num.split('.'),
        x1 = x[0],
        x2 = x.length > 1 ? '.' + x[1] : '',
        rgx = /(\d+)(\d{3})/;
        while (rgx.test(x1)) {
            x1 = x1.replace(rgx, '$1' + ',' + '$2');
        return x1 + x2 + "KB";
    var sizeLimit = 200, //allow upto 200KB images
      thisSize = Math.round((this.value.oneOfChild.value.length * 3 / 4) / 1024);
    if (sizeLimit > 0) {
      if (thisSize > sizeLimit) {
      xfa.host.messageBox("Note: With " + formatNumber(thisSize) + " the size of the imported image is greater that the recommended maximum of " + formatNumber(sizeLimit) + ".\nLarge images can cause a insufficent performance.\n\nIf possible, use images with the following recommended specs:\nFormat:\t\tPNG or JPG\nColor depth:\t8 Bit (higher is not supported)\nColor space:\tRGB (CMYK is not supported)\nFile Size:\t\t" + formatNumber(sizeLimit), "Recommended image size exceeded", 3, 0);

  • Import/Export pdf help - about to return the program :(

    I bought the program because I was told I can import a pdf and export it as a pdf/x-2002. I have read through threads and troubleshooting tutorials and I have not seen anything on how to do this. Please help! I'm about to return the program.

    You can place PDFs into InDesign, and InDesign can export PDF/X3-2002, but if converting the format (without any editing) is your only goal, you may want Acrobat Pro instead. If you do need to edit the files, you should get the native files; PDF is meant as an end product, not a working file.

  • Can I convert a ppt file to a PDF at two slides to the page with PDF Pack?

    I want to convert a ppt file to a pdf at two slides to the page, rather than one slide to the page. I can do this witha  printer. How do I do this with pdf pack?

    Hi sandyd,
    When you convert from PowerPoint to PDF via Adobe PDF Pack, it will convert each slide in the deck to a page in the PDF file. Unfortunately, there is no way to change that.
    Best,
    Sara

  • Acrobat 9- convert pdf to html, not retaining format as original pdf.

    I'm needing to upload a completed irs form to my website. I have the pdf, but when i export or save as an html file, the image looks different. It is not retaining the original look/format of the pdf form.
    Alternatively, is there a way to export multiple pages into one single jpg, png or tiff file? my document is 34 pages.
    Any help is appreciated.
    Thanks,
    Amy

    HTML by its very nature has a varying format to meet the needs of the browser and screen. It should never be expected to see the same format when converting to HTML. Actually I am surprised you could even convert it to HTML since most IRS forms are secure and do not allow such operations. If you want to post it to your site for some reason, just post the PDF file itself.

  • When i click on a pdf file to view from the internet, a new tab opens but there is no document to view.

    can't view any pdf files on line.

    Does your pdf reader plugin need updating, are you on version 7, whilst current version is v10
    * see [[opening pdf files within firefox]]
    * and [[using the adobe reader plugin with firefox]]

  • Want to upload PDF file in UI, read the content of PDF and Store in SAP DB

    Hi Experts,
    I have a new requirement in SAPUI5. I want to upload an PDF file using FileUploader component. Now how to validate this thing only for PDF file. User can only upload PDF file.
    Next I want to read the content of this PDF file and want to save data in SAP table. For this requirement, how to read the content of that file? After reading how to save the content in SAP table?
    To achieve this, how to design the ODATA service?
    Any kind of suggestion would be acceptable gratefully.
    Thanks in advance...
    Regards,
    Arindam Samanta.

    Hi Peter,
    Thanks once again for your kind response.
    I am getting the value in SLUG parameter and I can get the value in slug.
    Now I am getting errors from front end side, saying -
    1.   
    sResponse;
    "<pre style="word-wrap: break-word; white-space: pre-wrap;">CSRF token validation failed</pre>"
    2.POST http://------/CTC_MIBL_17072014/proxy/sap/opu/odata/sap/ZGW_CTC_VEHICLE_SRV/AS_CTC_MIBL_SET 403 (Forbidden)
    - Method 'AS_CTC_MIBL_SET_GET_ENTITYSET' not implemented in data provider class.
    Below is my code -
    // For File up-loader
    oFileUploader1 = new sap.ui.commons.FileUploader("upload",{
                    name : "test1",
                    uploadOnChange : false,
                    width : "250px",
                    uploadUrl : uploadURI,
                    uploadComplete: function (oEvent) {
                                     var sResponse = oEvent.getParameter("response");
                                     if (sResponse) {
                                       //  oUploadDialog.close();
                                         sap.ui.commons.MessageBox.show("Return Code: " + sResponse, "Response", "Response");
    // On Submit click
    oFileUploader1.insertParameter(new sap.ui.commons.FileUploaderParameter({name: "slug",
       value: oFileUploader1.getValue() }));
      oFileUploader1.insertParameter(new sap.ui.commons.FileUploaderParameter({name: "x-csrf-token",
       value: header_xcsrf_token }));
      oFileUploader1.upload();
    Could you please give some idea regarding my above mentioned issues?
    Thanks In advanced.
    Regards,
    Arindam Samanta.

  • When I open a pdf in Preview, why do the last several pdf's I've opened show up also?

    Using Preview v 5.5.3, Mac OS 10.7.5:  whenever I open a PDF, the program also opens 5-10 other PDF's I've opened in the past.  How can I stop this?

    You may have to use Disk Utility's 'repair disk permissions' to see if that helps.
    The only time I'd found a similar issue was when I'd only clicked on the red dot
    to close a window of an open application; so later, other windows opened.
    Could be a minor issue; also be sure you fully quit the application after use.
    Not sure the exact cause of this, in your circumstances. Sometimes odd
    behavior can be fixed by simply starting up in SafeBoot. (shift key held on
    startup, until desktop loads; takes awhile) This checks & does some repair
    during this process, and then later on, you simply restart normal, to get the
    Mac to be fully started and out of SafeBoot. I usually repair disk permissions
    when it is in safeboot. The OS X is running in a reduced form in safeboot.
    {some users note that there are times that you may have to enter your admin
    or user password while booting in Safeboot; then resume holding shift key
    until the process is completed. not sure why that would be}
    Perhaps others may have insight as to what causes this; there may be a few
    Console utility logs that may spew terminal lines of actions by time & date,
    but I don't know what they mean. Other Console reports can include normal
    underlying transactions between system software and other mysterious stuff.
    Hopefully a simple restart can help the file issues in Preview.
    Good luck & happy computing!

  • What is the best free PDF creator software, what is the best free PDF creator software

    I have just started using my new Imac and love it but I need to be able to print to PDF or at least create pdf's can you recommend good free software or if not free what would you recommend?

    pretty sure free
    LibreOffice
    can save to pdf
    same with the verious apps in iWorks
    would assume a google would bring a big pile of other free programs which can

  • Why does IE8 running on XP and Win7 Virtual Machine deletes the history while I'm still browsing the same site with client-side hashbang routing?

    Hello, 
    I have a asp.net mvc 5 web application running on .net 4.5 hosted on my local windows 8 machine on macbook pro using parallels. I'm running Internet Explorer 8 Version: 8.0.6001.18702 running on XP and Version: 8.0.7601.17514 running on Windows 7 Enterprise.
     I've got both of the virtual machine source from www.modern.ie 
    My web application is attempting to provide single page user experience by having some client-side routing by using '#!/xxx' hashbangs in the url so that I can get and post via ajax and change the hash in  the url without causing the page to reload. My
    code works fine in IE9+ and other modern browsers.
    However, I'm facing this strange issue in both of the IE8 versions. When running my demo app in IE8, I can login, view home page and can navigate from this home page to many details page. From the very first login page, all the pages are the result
    of form's post action via ajax which then expects html from server and loads in the DOM. The page structure of my app is like summary form => Details page (can also contain summary forms) => Details...so on.
    The above process works fine for few of the navigation steps. If I keep navigating from one page to another & go back, I have observed that the browser back button is removing the history items slowly. And a time comes when it totally forgets about
    all the history pages that I visited to reach this current page I'm viewing!! It treats like I have just started my browsing session and this current page is the first page I've landed on with no back option. Now if I again try to navigate, I have encountered
    problems like both the back and forward buttons gets disabled.
    Hope, my words above is clear enough to explain this problem. The same application works fine in IE9+ and other browsers. 
    Till now, I have tried following steps on both VMs: 
    Resetting IE8.
    Increasing disk space to 1024mb for temporary internet files storage.
    Setting 'Never' for Check for newer versions of stored pages.
    Disabling the automatic crash recovery feature didn't helped in this case. Found this on support website.
    Deleted temporary files, history, cache, etc many a times.
    Search many forums, posted question on StackOverflow, ASP.NET
    Forums - but didn't helped.
    Tried 'beforeunload' event of browser to see if any of the page is reloading because of submit or any other reason. But the page doesn't reload at all.
    The issue is browser forgets about the browsing history while I'm still browsing the same site. 
    Is there any possible fix for the issue above? Does IE8 have any issues as many ajax form post is happening on every page? 

    I have really tried many things to identify any possible reason of the issue above. Even rewrote all my javascript navigation code and checked server-side code.
    But the only place where I got the solution is at site: http://www.enhanceie.com/ie/bugs.asp which states that there is a bug in IE8 which reads like:
     IE0012: IE Travellog broken when navigating back/away from a page with
     a large POST form If there is a form input field with a value longer
     than 523,659 characters, when you navigate away from the page, IE may
     clear the current session's travellog (similar to history), disabling
     the back and forward buttons. Repros in IE6 & IE7.
    There are following solutions that you can go for:
    - Check for the input field that has lots of characters as mentioned above and solve your problem.
    - If you have control over the system where IE8 will be used, you can add the following registry key on that machine. There is no existing key, so, you need to add a new one:
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\TravelLog] "MaxSize"=dword:ffffffff
    I am really relaxed to find this information as I spent really long time to solve this issue. Hope this will help someone.

  • Chart Control printing at the client side

    Hi,
    I have multiple chart controls (in VS2010) on an aspx page, which also show their relevant detaild data in a table on the same page. I could not found yet an appropriate solution for printing such a page with chart control and other data.
    In fact I was able to print the chart alone at the client side, but only by sending it directly to the printer, this method is unable to show print preview dialog to the client.
    Then i started thinking in another direction, and came with the idea to export my desired controls into a pdf file which then can be shown in the browser (which resolves browser independance), for that i used nReco (the dll which comes with dot net) pdf converter
    which can convert the whole html page into the pdf file (by passing the url of the page) and then opens/saves in the browser to print.
    But when i pass it (to one of the the funtion in nreco) a container means a div or a panel control which holds the chart control and other normal controls then it gives me the error that unable to convert to pdf.
    Tis may be due to the relative path of the chart control image.
    I am stuck in this situtation, My original requirement is to show the the print preview to the user at client side with all printing options. It would be very convenient if the desired control can be exprted to pdf.
    And I don't want to use any ohter third party control (for print preview at client side) which needs to be installed on the client machine.
    Thanks.
    Code Sample:
    using NReco.PdfGenerator;
    on Load
    Chart1.Series[0].Points.DataBind(datatbl.Rows, "ColHeading", "colName", string.Empty);
    On Print
    HtmlToPdfConverter nRecohtmltoPdfObj = new HtmlToPdfConverter();
    nRecohtmltoPdfObj.Orientation = PageOrientation.Portrait;
    StringBuilder sb = new StringBuilder();
    StringWriter tw = new StringWriter(sb);
    HtmlTextWriter hw = new HtmlTextWriter(tw);
    ChartPanel1.RenderControl(hw);
    string temp =
     "<html><head><style>td,th{line-height:20px;} tr { page-break-inside: avoid }</style><script>function subst() {var vars={};var x=document.location.search.substring(1).split('&');for(var i in x) {var z=x[i].split('=',2);vars[z[0]]
    = unescape(z[1]);}" +
                "var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];for(var i in x) {var y = document.getElementsByClassName(x[i]);" +
                "for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];}}</script></head><body onload=\"subst()\">"
     + sb.ToString() 
     + "</body></html>";
    nRecohtmltoPdfObj.GeneratePdf(temp);
    Please suggest a batter way out.

    Is this question hard to answer? or I am going to the wrong direction since I am new about Java EE/EJB.
    Can anyone give me some answer?

  • Insert pdf into html document

    Hi there,
    I would like to import or insert a pdf file (acrobat) into an
    html document
    and be able to write above and below the document. I have
    copied the document
    into MS paint and saved it as a gif file and inserted it that
    way...Is there any more
    direct way to do this? I have not been able to copy and paste
    directly into DW from
    adobe acrobat....Please advise!!
    Thanks abunch!
    RC

    crash wrote:
    > Adobe Acrobat is a plugin, and as such it requires the
    plug-in to view. You
    > cannot "mix" a pdf and HTML AFAIK. The PDF must be view
    in the PDF
    > application.
    >
    > You can, of course, convert your PDF to any image format
    and place it within
    > your content as you've done.
    >
    > You might try using frames, but I don't know how
    successful that would be
    > (sounds a bit nightmarish to me).
    >
    > HTH,
    >
    > Jon
    >
    > "rcshell" <[email protected]> wrote in
    message
    > news:e48u6r$nmi$[email protected]..
    >> Hi there,
    >> I would like to import or insert a pdf file
    (acrobat) into an html
    >> document
    >> and be able to write above and below the document. I
    have copied the
    >> document
    >> into MS paint and saved it as a gif file and
    inserted it that way...Is
    >> there
    >> any more
    >> direct way to do this? I have not been able to copy
    and paste directly
    >> into
    >> DW from
    >> adobe acrobat....Please advise!!
    >> Thanks abunch!
    >> RC
    >>
    >
    >
    Or you could convert the pdf to FlashPaper, then insert as
    you would an
    image. You choose the size.

  • Client side cacheing!

    Hi,
    We have a Java Web Start application, which caches around 500MB of heavy weight objects in memory. These corresponds to different reports and it kind of grows over the time. I am looking for some kind of architecture framework or some work around to maintain this cache at the client side. It is bit late to change the architecture and it is important to cache all the objects.
    Could somebody suggest your views on this?
    Thank You,
    Vikram

    Cross post:
    http://forum.java.sun.com/thread.jspa?threadID=649133
    http://forum.java.sun.com/thread.jspa?threadID=649134
    http://forum.java.sun.com/thread.jspa?threadID=649135
    http://forum.java.sun.com/thread.jspa?threadID=649136
    http://forum.java.sun.com/thread.jspa?threadID=649137
    http://forum.java.sun.com/thread.jspa?threadID=649138

Maybe you are looking for