Extracting/Setting PDF Table contents using javascript

Hello,
Can you experts please let me know the following?
1. Is there a way to extract PDF table contents?
2. Can I set the row value via java script?
Bottom line is I need to implement editable table in PDF. What are the ways I can achieve this feat?
Thanking you in advance!
Best Regards

Hi PDL,
I am actually writing a piece (C++) of code that generates Acroform currently. It is still in the primitive stage, just provided support only for text fields, choice fields and buttons.
As I mentioned above, I have a requirement to generate a editable table...
Sure I can provide the PDF(acroform) that is generated by the code.
But how can I send the file to you? Can you share your email-Id? Or can I paste the content of the output here ?
%PDF-1.5
%%âãÏÓ
1 0 obj
<<
/Pages 2 0 R
/AcroForm 6 0 R
/Type /Catalog
>>
endobj
6 0 obj
<<
/CO []
/Fields [ 7 0 R 9 0 R 10 0 R 11 0 R ]
/NeedAppearances true
>>
endobj
2 0 obj
<<
/Type /Pages
/Count 1
/Resources
<<
/ProcSet 3 0 R
>>
/Rotate 0
/Kids [4 0 R ]
>>
endobj
7 0 obj
<<
/A 8 0 R
/BS <</W 1 /S /S>>
/DA (/Helv 12.00 Tf 0.00 0.00 0.00 rg 0 G)
/DR
<<
/Font <</Helv 14 0 R >>
>>
/F 4
/FT /Btn
/Ff 65536
/H /P
/MK
<<
/BC[0.87 0.83 0.55]
/BG[1.00 0.94 0.55]
/CA(PDF Button)
>>
/P 4 0 R
/Rect [300.00 690.00 400.00 710.00]
/Subtype /Widget
/T (Button)
/TU (PDF Button)
/Type /Annot
>>
endobj
8 0 obj
<<
/S /JavaScript
/JS (if \(app.viewerVersion>=5\) {app.alert\("I-PDF 0.1 DEMO", 1\);})
>>
endobj
9 0 obj
<<
/BS <</W 1 /S /S>>
/DA (/Helv 12.00 Tf 0.00 0.00 0.00 rg 0 G)
/DR
<<
/Font <</Helv 12 0 R >>
>>
/F 4
/FT /Tx
/Ff 12582912
/H /P
/MK
<<
/BC[0.00 0.00 0.00]
/BG[1.00 1.00 1.00]
>>
/MaxLen 45
/P 4 0 R
/Rect [200.00 750.00 400.00 770.00]
/Subtype /Widget
/T (Text Field1)
/Type /Annot
>>
endobj
10 0 obj
<<
/BS <</W 1 /S /S>>
/DA (/Helv 12.00 Tf 0.00 0.00 0.00 rg 0 G)
/DR
<<
/Font <</Helv 13 0 R >>
>>
/F 4
/FT /Tx
/Ff 12591104
/H /P
/MK
<<
/BC[0.00 0.00 0.00]
/BG[1.00 1.00 1.00]
>>
/MaxLen 15
/P 4 0 R
/Rect [200.00 720.00 400.00 740.00]
/Subtype /Widget
/T (Text Field2)
/Type /Annot
>>
endobj
11 0 obj
<<
/DA (/Helv 10.00 Tf 0.00 0.00 0.00 rg 0 G)
/DR
<<
/Font <</Helv 15 0 R >>
>>
/F 4
/FT /Ch
/Ff 67239936
/MK <</BG[0.87 0.83 0.55]>>
/Opt [[( )( )] [(AMX) (American Express)] [(CBL) (Carte Blanche)] [(DCL) (Diners club)] [(DSC) (Discover)] [(ENR) (EnRoute)] [(JCB) (JCB)] [(MSC) (Mastercard)] [(VIS) (Visa)]]
/P 4 0 R
/Rect [200.00 650.00 300.00 670.00]
/Subtype /Widget
/T (Choice)
/Type /Annot
/V (VIS)
>>
endobj
4 0 obj
<<
/Parent 2 0 R
/Annots [7 0 R 9 0 R 10 0 R 11 0 R ]
/MediaBox [0 0 595.00 842.00]
/Resources
<<
/ProcSet [/PDF /Text /ImageI /ImageC]
>>
/Contents 5 0 R
/Type /Page
>>
endobj
5 0 obj
<</Length 26>>
stream
q
BT
36 806 Td
ET
Q
0 0 m
endstream
endobj
3 0 obj
<<[/PDF /Text /ImageI /ImageC]>>
endobj
12 0 obj
<<
/BaseFont /Helvetica
/Subtype /Type1
/Encoding /WinAnsiEncoding
/Type /Font
>>
endobj
xref
0 13
0000000000 65535 f
0000000016 00000 n
0000000172 00000 n
0000002016 00000 n
0000001756 00000 n
0000001942 00000 n
0000000081 00000 n
0000000272 00000 n
0000000603 00000 n
0000000709 00000 n
0000001017 00000 n
0000001326 00000 n
0000002064 00000 n
trailer
<<
/Root 1 0 R
/Size 13
>>
startxref
2162
%%EOF

Similar Messages

  • How to create a Document Set in SharePoint 2013 using JavaScript Client Side Object Model (JSOM)?

    Hi,
    The requirement is to create ""Document Sets in Bulk" using JSOM. I am using the following posts:-
    http://blogs.msdn.com/b/mittals/archive/2013/04/03/how-to-create-a-document-set-in-sharepoint-2013-using-javascript-client-side-object-model-jsom.aspx
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/1904cddb-850c-4425-8205-998bfaad07d7/create-document-set-using-ecma-script
    But, when I am executing the code, I am getting error "Cannot read property 'DocumentSet' of undefined "..Please find
    below my code. I am using Content editor web part and attached my JS file with that :-
    <div>
    <label>Enter the DocumentSet Name <input type="text" id="txtGetDocumentSetName" name="DocumentSetname"/> </label> </br>
    <input type="button" id="btncreate" name="bcreateDocumentSet" value="Create Document Set" onclick="javascript:CreateDocumentSet()"/>
    </div>
    <script type="text/javascript" src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js"> </script>
    <script type="text/javascript">
       SP.SOD.executeFunc('sp.js','SP.ClientContext','SP.DocumentSet','SP.DocumentManagement.js',CreateDocumentSet);
    // This function is called on click of the “Create Document Set” button. 
    var ctx;
    var parentFolder;
    var newDocSetName;
    var docsetContentType;
    function CreateDocumentSet() {
        alert("In ClientContext");
        var ctx = SP.ClientContext.get_current(); 
        newDocSetName = $('#txtGetDocumentSetName').val(); 
        var docSetContentTypeID = "0x0120D520";
        alert("docSetContentTypeID:=" + docSetContentTypeID);
        var web = ctx.get_web(); 
        var list = web.get_lists().getByTitle('Current Documents'); 
        ctx.load(list);
        alert("List Loaded !!");
        parentFolder = list.get_rootFolder(); 
        ctx.load(parentFolder);
        docsetContentType = web.get_contentTypes().getById(docSetContentTypeID); 
        ctx.load(docsetContentType);
        alert("docsetContentType Loaded !!");
        ctx.executeQueryAsync(onRequestSuccess, onRequestFail);
    function onRequestSuccess() {       
        alert("In Success");
        SP.DocumentSet.DocumentSet.create(ctx, parentFolder, newDocSetName, docsetContentType.get_id());
        alert('Document Set creation successful');
    // This function runs if the executeQueryAsync call fails.
    function onRequestFail(sender, args) {
        alert("Document Set creation failed" + + args.get_message());
    Please help !!
    Vipul Jain

    Hello,
    I have already tried your solution, however in that case I get the error - "UncaughtSys.ArgumentNullException: Sys.ArgumentNullException:
    Value cannot be null.Parameter name: context"...
    Also, I tried removing SP.SOD.executeFunc
    from my code, but no success :(
    Kindly suggest !!!
    Vipul Jain

  • Display Table contents using HTMLB...Urgent Help Plz...

    Hello All,
    Im working on EP SP14 and SQL Server 2000.
    I have successfully established database connection.
    I want to know <b>how can I display Table contents using TableViewModel in HTMLB</b>.
    Please help.
    Its urgent.
    Awaiting Reply.
    Thanks in advance,
    Uday<b></b>

    See /thread/80270 [original link is broken]
    (please stop crossposting every question into two forums; thanks in advance)

  • How to upload a document with values related to document properties in to document set at same time using Javascript object model

    Hi,
          Problem Description: Need to upload a document with values related to document properties using custom form in to document set using JavaScript Object Model.
        Kindly let me know any solutions.
    Thanks
    Razvi444

    The following code shows how to use REST/Ajax to upload a document to a document set.
    function uploadToDocumentSet(filename, content) {
    appweburl = decodeURIComponent(getQueryStringParameter('SPAppWebUrl'));
    hostweburl = decodeURIComponent(getQueryStringParameter('SPHostUrl'));
    var restSource = appweburl +
    "/_api/SP.AppContextSite(@target)/web/GetFolderByServerRelativeUrl('/restdocuments/testds')/files/add(url='" + filename + "',overwrite=true)?@target='" + hostweburl + "'";
    var dfd = $.Deferred();
    $.ajax(
    'url': restSource,
    'method': 'POST',
    'data': content,
    processData: false,
    timeout:1000000,
    'headers': {
    'accept': 'application/json;odata=verbose',
    'X-RequestDigest': $('#__REQUESTDIGEST').val(),
    "content-length": content.byteLength
    'success': function (data) {
    var d = data;
    dfd.resolve(d);
    'error': function (err,textStatus,errorThrown) {
    dfd.reject(err);
    return dfd;
    Then when this code returns you can use the following to update the metadata of the new document.
    function updateMetadataNoVersion(fileUrl) {
    appweburl = decodeURIComponent(getQueryStringParameter('SPAppWebUrl'));
    hostweburl = decodeURIComponent(getQueryStringParameter('SPHostUrl'));
    var restSource = appweburl +
    "/_api/SP.AppContextSite(@target)/web/GetFolderByServerRelativeUrl('/restdocuments/testds')/files/getbyurl(url='" + fileUrl + "')/listitemallfields/validateupdatelistitem?@target='" + hostweburl + "'";
    var dfd = $.Deferred();
    $.ajax(
    'url': restSource,
    'method': 'POST',
    'data': JSON.stringify({
    'formValues': [
    '__metadata': { 'type': 'SP.ListItemFormUpdateValue' },
    'FieldName': 'Title',
    'FieldValue': 'My Title2'
    'bNewDocumentUpdate': true,
    'checkInComment': ''
    'headers': {
    'accept': 'application/json;odata=verbose',
    'content-type': 'application/json;odata=verbose',
    'X-RequestDigest': $('#__REQUESTDIGEST').val()
    'success': function (data) {
    var d = data;
    dfd.resolve(d);
    'error': function (err) {
    dfd.reject(err);
    return dfd;
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Vistex Set Up table content - DataSource /IRM/LIS_RM_IPBBITM

    Hi Gang,
    Our company is using Vistex, and we have installed the Business Content.  I'm trying to initialize the delta process, but I am return no records.  I am using the programs found in transaction code /IRM/IPBWSPRO to deleted and reload the set up table - still no records!
    I'd like to confirm whether or not the set up tables are being filled.
    Does any one know the technical name of the Vistx set up tables?
    Or how to display the contents of the table?
    Without an error message, it is very difficult to troubleshoot the problem.
    John Hawk

    Hi John,
    Vistex, data sources, are provided as part of the LO Cockpit and you need to do the set up using a program, for filling set up tables and the rest is same as LO Cockpit data sources
    In BW side, I dont think, we have any content delivered for Vistex Modelling. You may have to closely look at the Commission Management module which is delivered and utilise them for your BI Data Model for Billbacks. And theres going to be no issue with most of master data as the ECC ones are still in place for you Billback reports. and make sure that you set the Vistex namespace (Tx, SE06) before you go ahead for BI modelling.
    Filling Setuptable :
    Goto the transaction code /IRM/IPBWSPRO (Here you will fiind the Programs)to deleted and reload the set up table.
    Regards
    Ram.

  • Print PDFs from Dreamweaver using Javascript

    I need to print several PDF'S from a coldfusion application.
    I understand that you can use Javascript if you need to print
    several pdfs in sequence. Do you know of a script that will
    print several documents ?

    When you select print from the menu bar a print
    window opens. Verify that the correct printer is
    selected. Adobe will over ride some defaults and put
    in itself. Let me know if this didn't work.
    Thanks Glynn, but the correct printer is indeed selected. This is a weird one!
    FWIW, here is my CUPS error log:
    ===== Wednesday, June 20, 2007 3:51:51 PM US/Eastern =====
    I [20/Jun/2007:15:52:20 -0400] Adding start banner page "none" to job 10.
    I [20/Jun/2007:15:52:20 -0400] Adding end banner page "none" to job 10.
    I [20/Jun/2007:15:52:20 -0400] Job 10 queued on 'MFC_9420CN' by 'dave'.
    I [20/Jun/2007:15:52:20 -0400] Started filter /usr/libexec/cups/filter/pictwpstops (PID 625) for job 10.
    I [20/Jun/2007:15:52:20 -0400] Started filter /usr/libexec/cups/filter/pstocupsraster (PID 626) for job 10.
    I [20/Jun/2007:15:52:20 -0400] Started filter /Library/Printers/Brother/Filter/rastertobrotherSL4C (PID 627) for job 10.
    I [20/Jun/2007:15:52:20 -0400] Started backend /usr/libexec/cups/backend/usb (PID 628) for job 10.
    E [20/Jun/2007:15:52:22 -0400] [Job 10] pstopdffilter/pstocupsraster failed with err number -31000
    E [20/Jun/2007:15:52:22 -0400] PID 627 stopped with status 1!
    I [20/Jun/2007:15:52:22 -0400] Hint: Try setting the LogLevel to "debug" to find out more.
    E [20/Jun/2007:15:52:22 -0400] PID 625 stopped with status 1!
    I [20/Jun/2007:15:52:22 -0400] Hint: Try setting the LogLevel to "debug" to find out more.
    E [20/Jun/2007:15:52:22 -0400] [Job 10] Opening raster file failed!
    E [20/Jun/2007:15:52:22 -0400] [Job 10] error drawing page 1
    E [20/Jun/2007:15:52:22 -0400] [Job 10] pictwpstops - got an error disposing of document = -9783
    E [20/Jun/2007:15:52:22 -0400] PID 626 stopped with status 1!
    I [20/Jun/2007:15:52:22 -0400] Hint: Try setting the LogLevel to "debug" to find out more.

  • Retrieving and Resetting textEdit Content Using JavaScript

    I need to retrieve the content within a textEdit box using JavaScript, and then append a String to that content, and re-enter that content as the inner content of a textEdit box.  Does anyone know how to do this? 
    I tried using jsObjectNeeded for textEdit, but it is an invalid parameter for that object.  I also tried grabbing the ID in a round-about way in JavaScript using _1texteditor or _1htmlbeditor, but I get an "Object Expected" error everytime.
    Here is the item I am working with, and within my JS method, I need to grab the text inside, append a string to it, and reset that new content as the text within the edit box.
    <hbj:textEdit id="summaryBox"
       text="Add summary here."
       wrapping="SOFT"
       tooltip="Add summary here."
       rows="5"
       cols="70">
    This is the content inside the box.
    </hbj:textEdit>
    Thanks in advance for your help...

    Thank you for your help, guys, but neither suggestion solved my problem and I solved it on my own.  You have to find the parameter ID through a line of Java, like Damian had mentioned about an ID, but I was looking for the value within the textEdit, not the ID. 
    In the JavaScript method, you set a variable to the Java variable, which found the parameter ID.
    Then, using that JS variable, you do:
    var blah = <%=javaParameterId%>;
    var funcName = htmlb_formid+"_getHtmlbElementId";
    func = window[funcName];
    var textEditField = eval(htmlb_formid + "." + blah);
    var wordsWithTexEdit = textEditField.value;
    Thanks anyways...

  • Deleting DB table contents using internal table

    Hi Gurus,
    I have a requirement of deleting DB table contents. Requirement is as follows,
    User will select the DB table description in the seletion screen using drop down list.
    Whichever description he selects,the corresponding table contents should be deleted and we should not hardcode the table name in if or case conditions.
    Is this possible?
    Regards,
    G.Srinivasan

    Hi,
    You can get the Table name from the desciption from table DD02T.
    Use the Key word DELETE to delete the contents of a table from program.
    PARAMETERS : p_ddtext type ddtext.
    select single * from dd02t into table db_tab where DDLANGUAGE = 'EN' and ddtext = p_ddtext.
    DELETE DB_TAB-TABNAME
    FROM ITAB. " Take F1 help on this Key word
    IMPORTANT --> Do not manually delete the contents of a DB table in SAP.
    The individual records only deleted through BDC or any other Acceptable Methods.
    Rest is left to you. Be careful about this activity. Take enough Authourizations/ Permissions or consult your BASIS or other team members.
    Cheerz
    Ram

  • Reading Grid/Table contents using ECATT

    Need to retrive the SAP table/grid column or all columns contents using SECATT, please provide the solution.
    Thanks in ADVANCE.

    hi,
    eCATT Links
    From SAP Help
    http://help.sap.com/saphelp_nw04/helpdata/en/1b/e81c3b84e65e7be10000000a11402f/frameset.htm
    From SAP Service Marketplace
    https://websmp204.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700003012112003E
    THANKS,
    sendil

  • How to set a page parameter using javascript ?

    Hi:
    i'd like to set page parameter with a value taken from a textbox when clicking a button using javascript code.
    i mean, i have a textbox and a button using javascript and i want to take the value from the textbox and when onClick event happens set that value to the page parameter. How can i do this????
    Thanks.
    Best regards. Urko.

    Hi,
    Can you please elaborate your requirement. May be some better ways can be suggested. Also please mention which component you are using.
    Thanks,
    Sharmila

  • How to transfer tabl content using ALE

    Hi All
    I need to to transfer the content of a HR table (T526) using an ALE scenario. However I have not found a way to do this. I stumpled over CONDA2 but not quite sure if this suits the bill. Anybody out there who can help.
    I am not an HR wiz so bear with me if this is dead obvious.
    Hope somebody can help
    Cheers

    Hello Bowie,
    Could you please help in how to use CONDA2 message type in ditributing HR Configuration data like data from following tables..
    T001P     Personnel Area/Subarea
    T500P     Personnel Areas
    T503     Employee Group/Subgroup
    T511     Wage Types
    T512T     Wage Type Texts
    T512Z     Permissibility of Wage Types per Infotype
    T528B     Positions
    T554S     Attendance and Absence Types
    T554T     Attendance and Absence Texts
    Thaks,
    Venkat

  • Set thesecond table content acording to the first table selected

    Hi,
    I have to table. Both table content  will fill from SQL. My Question is How can i fill the second table content from the which value i select from first table. I have written code like this.
    But when i click first element it will display the content in second table when i click next row it should change the content according to that. How can i do that.
    Here is my code.
    wdContext.currentContextElement().setVisiblity(WDVisibility.VISIBLE);
                   int n = wdContext.nodeFirstTable().size();
              int leadSelected = wdContext.nodeFirstTable().getLeadSelection();
                   for (int i=0;i<n;i++)
                        if(leadSelected==i)
                             IFirstTableElement ele=wdContext.nodeFirstTable().getFirstTableElementAt(i);
                        Date datesec=ele.getMyDate();
                        java.sql.Date datesec1=new java.sql.Date(datesec.getTime());
                        wdComponentAPI.getMessageManager().reportSuccess(
                                       "lead selection  " + i +"laed   "+leadSelected);
                        try{
                        CallableStatement cStmt = con.prepareCall("{CALL Usp_TimeSheet_IUSDL1(?,?)}");
                        wdComponentAPI.getMessageManager().reportSuccess(
                                                           "lead selection  " + datesec1.toString());
                        cStmt.setInt(1,id);
                        cStmt.setDate(2,datesec1);
                        cStmt.execute();
                        ResultSet rsDetail=cStmt.getResultSet();
                        IPrivateEntryView.ISecTableElement sel=wdContext.nodeSecTable().createSecTableElement();     
                        while(rsDetail.next())
                             wdComponentAPI.getMessageManager().reportSuccess("rsDetail first");
                             String coun=rsDetail.getString(3);
                             wdComponentAPI.getMessageManager().reportSuccess("Date   "+coun);
                             sel.setCountry(coun);
                             String rdr=rsDetail.getString(5);
                             wdComponentAPI.getMessageManager().reportSuccess("RDR   "+rdr);
                             sel.setBRR(rdr);
                             String      act=rsDetail.getString(6);
                             wdComponentAPI.getMessageManager().reportSuccess("Act   "+act);
                             sel.setActivity(act);
                             float hrs=rsDetail.getFloat(8);
                             sel.setHrsWorked(hrs);
                             String com=rsDetail.getString(10);
                             sel.setComments(com);
                             String sta=rsDetail.getString(15);
                             sel.setStatus(sta);
                             String appcom=rsDetail.getString(18);
                             sel.setAppComments(appcom);
                             wdContext.nodeSecTable().addElement(sel);     
                        rsDetail.close();
                   catch(Exception e)
                        wdComponentAPI.getMessageManager().reportSuccess(e.toString());
    Regards,
    H.V.Swathi

    Hi Swathi,
    For your requirement you can create two table say TableA and TableB.In Which the TableB vivibility is set to blank or none.
    So first the data gets popolated in TableA. Now on click of row from TableA  create a action and pass the value you want to pass and populate the TableB with the required data and make the vivibility of TableB  to visible.
    Again say on click of Row 2 of TableA you need to show the diffrent data in TableB so for that every time you need to invalidate the node first in that method.
    e.g Vn_TableB_Node.inValidate();
    Hope this will help.
    please revert if you need more info.
    Regards
    Narendra

  • How to set JavaBean in JSP using JavaScript function

    Hello,
    When a user clicks on an item, I want to execute a JavaScript function. Within that function, I want to set specific JavaBeans (<jsp:setProperty... />) within my JSP page.
    Can anyone tell me how to do this or where I can find examples on how to set JavaBeans in a JSP page using JavaScript?
    Thanks.
    Pat

    try this:
    your.jsp
    <html>
    <SCRIPT>function buttonClick()
    {document.compform.submit();}
    </SCRIPT>
    <body>
    <form name=compform method=post action='your.jsp'>
    <%
    //write your code which you want to execute once the button is submitted
    String submit;
    submit=request.getParameter("mysubmit");
    if ((submit != null) && (! submit.equals("")))
    %>
    <input type=hidden name=mysubmit value="submit">
    <input type=button value=add onclick='buttonClick()'>
    </form></body></html>

  • Why set up table not used in applications like FI, HR etc

    Hi,
    We all know that we use set up tables for LO Cockpit applications.
    But we dont have for non LO applications like HR , FI...why such a difference is made by SAP...
    One of the fellow suggested that for FI, HR etc, there is huge posting of data and so we dont want to store such a duplicate data
    is this the case?
    or there is some other reason...
    please suggest the same
    Thanking You,
    Tarun Brijwani.

    Hi,
    this question has already been asked a few times. Please search the forums for the answer.
    regards
    Siggi

  • How to set style !important using javascript??

    i can set an items width using js
    page_item.style.width = "400";
    how do i incorporate the "!important" flag in this statement?

    Hi Craig,
    Here's the only blurb I could find on this:
    http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/important.asp
    Notice the "Scripting: N/A" bit at the top.
    I use this site a lot - not because I'm particularly keen on MS/IE but because at the bottom of each entry you get confirmation of whether or not the setting/attribute/etc is standard or not and the pages are kept up to date.
    I have to say that this is only the second time I've come across someone trying to use this. The first time we just decided to leave it. I can see the importance of using it to stop someone overriding styling, but as I mentioned above, it is possible to create an entire script tag using javascript and, therefore, you can override it. Seems silly to me, but there you go!
    It would also be better, in my view, if they had used a better word for this setting - something like java's "final" - as, the first time I saw it I took it to mean "make more bolder" or "highlight it" or somesuch thing.
    Regards
    Andy

Maybe you are looking for