Open Data Object -  Open File attachment within pdf document

I am trying to build a script which will open file attachments embedded in a pdf document.
I have used the following javascript to list all embedded files within a document so I can retrieve the name
var d = this.dataObjects;
for (var i = 0; i < d.length; i++)
console.println("Data Object[" + i + "]=" + d[i].name);
The console reported:
Data Object[0]=MTP-300-X-1210_A.pdf
Data Object[1]=MTP-300-X-1240_A.pdf
I then used the following script to open the file     
this.openDataObject("MTP-300-X-1210_A.pdf");
Console reports back as follows and does not open the file:
[object Doc]
Can anyone please offer assistance in how to open an embedded pdf attachment within a document?
Many thanks!

Hi George,
I have used the same method app.openDoc to open attachments using a path associated with my computer.  However, as you know, the method does not work if the pdf containing the attachment is located on a different computer.  The app.openDoc method throws an error becuase the path is not valid.
I am trying to get the following code to work with no success:
var cFilePath = "|" + this.path + "|U:photo.pdf"';   // photo.pdf is the attachment
app.openDoc ({cPath: cFilePath});
The debugger throws an error.
However, if I take the content of the variable cFilepath and instert it as an argument within cPath parameter as a string literal, the app.openDoc method returns the docObject.
What's going on here?  shouldn't the variable cFilePath work?  Or do I need to specify a data type for the variable?  Any thoughts would be helpful.  I am using Windows 7, Adobe Acrobat X Standard.

Similar Messages

  • Opening internet linked encrypted files and printing pdf documents

    I can't open an encrypted file that requires an link to a remote server, the system says the computer does not have an internet connection, but it does. I also can't print a page from a non-encrypted pdf file which I can open and display.  The printer doesn't respond, yet it works with everything else.  I've uninstalled and reinstalled Adobe Reader 11.0.10 twice and also installed it again and replaced with Adobe READER 10.1.4.  Neither of these changes make any difference. I've also disconnected the fire wall but to no avail.  I now have the following Adobe programmes installed :-  Adobe X 10.1.4, AIR, Flash Player 10 plugin, Flash Player 16 ActiveX.  Can anybody help?  Do I also need to install Adobe Acrobat and if so is there a free version?

    Maybe that method does not use Adobe Reader, but your operating system's print function?

  • ABAP solution to read data from excel file attached with project document

    i have a project created through tcode cj20n and attach an excel file with it. now my objective is to read the contents of that attach file through abap. can any one please help me in this matter? how can i know the path of that file?

    Hi,
    you can't do it in 30 minutes if you never did before.
    Use[ DOI |http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIOFFI/BCCIOFFI.pdf]
    Regards,
    Clemens

  • I am getting this response when I am trying to open a file: Before viewing PDF documents in this browser you must launch Adobe Reader and accept the End User License Agreement, then Quit and relaunch the browser."  What do I do?

    I am getting this response when I am trying to open a file: Before viewing PDF documents in this browser you must launch Adobe Reader and accept the End User License Agreement, then Quit and relaunch the browser.”  What do I do?  I have opened this up in the past without a problem. 

    Back up all data.
    If Adobe Reader or Acrobat is installed, there should be a setting in its preferences such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected. Otherwise do as follows.
    Triple-click anywhere in the line of text below on this page to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present. The same goes for a plugin called "iGetter," and perhaps others.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • This document cannot be opened as it is not a valid PDF document

    I am trying to get my Amex statement from Amex on my tablet. I have Adobe reader for Andriod and Pdf  to Go. Each time I download and tray to read the document I get this error. Other Pdf files I have downloaded open OK.

    I GOT PROBLEMS TOO...got this error when trying open the pdf files in android devices "The document cannot be opened because it is not a valid PDF document"  ..im using samsung s4..i tried open the same files at windows pc and its can be open fine,the files not contain any passwod btw..seem some files cannot be open at android is this normal or what? got solution of tht?or i just search another pdf viewer?
    example of files : http://www.mediafire.com/download/raz3x0bk1mvnni4/Lawak+Kampus+01%40ih azaliza.blogspot.com.pdf
    this the screenshot

  • Attach a PDF document to Device Location

    Hi all,
    We have a requirement to attach a PDF document to a Device Location. Ideally we are looking for an approch to upload a PDF document which would contain some instructions for the Business Users.  This would help the user to check the PDF document and perform Activties according to the instructions.
    Could you please guide through, if SAP allows for such an option to upload PDF file or any document to a Technical Object.
    It would be appreciated if you suggest few examples as well.
    Regards,
    Sai

    Thanks Rajat,
    I too found that option later. I shall Explore more on that.
    One quick question, services for object works find for Technical Master Data but for some reason its not working on Business Partner. The options in it ate grayed out. Any Idea ?
    Also, Services for object is not available for another user. Is it realted to any profile settings or will be in default to all users ?
    Thanks for you help once again.
    Sai

  • Attaching a PDF document for a Invioce Parking thru FB60 in background

    Dear Friends,
    I am working on a requirement to build an interface for Invoice posting/Parking.
    Transaction used: FB60
    Invoice data will be stored in a staging server, same has to be read and posted in SAP. Till posting part i am clear with the requirement. Invoice data will be in a flat file which i can read and store in my Custome table.
    But customer is asking to attach a PDF document (which is a kind of supporting document not the invoice data) while doing the posting.
    My queries are:
    1. How to fetch the PDF files placed in an external staging server.
    2. How to attach those files while doing the posting/parking as job is executed in background.
    I want to use BAPI BAPI_INCOMINGINVOICE_PARK for parking the Invoice, but where to attach the PDF.
    Or can i do BDC to attach the document?
    Any info on this is highly appreciated and rewarded.
    Thanks,
    Simha

    Change in requirement..
    Hence i am closing this thread.
    Regards,
    Simha

  • Attaching a PDF document for a Invioce Parki thru FB60 in background

    Dear Friends,
    I am working on a requirement to build an interface for Invoice posting/Parking.
    Transaction used: FB60
    Invoice data will be stored in a staging server, same has to be read and posted in SAP. Till posting part i am clear with the requirement. Invoice data will be in a flat file which i can read and store in my Custome table.
    But customer is asking to attach a PDF document (which is a kind of supporting document not the invoice data) while doing the posting.
    My queries are below:
    1. How to fetch the PDF files placed in an external staging server.
    2. How to attach those files while doing the posting/parking as job is executed in background.
    I want to use BAPI BAPI_INCOMINGINVOICE_PARK for parking the Invoice, but where to attach the PDF.
    Any info on this is highly appreciated and rewarded.
    Thanks,
    Simha

    Change in requirement..
    Hence i am closing this thread.
    Regards,
    Simha

  • How to attach a PDF document to work item .---urgent

    Hi EXperts ,
      I am wanted to know how to attach a PDF document to my work item which i will be geneating . Pls let me the Method coding to be done so that I can send the attachment also when the work item is generated ..
    What is need to pass to Workflow container ...
    Regards
    Abhilash

    Ah ok,
    then the only way I know is to get hold of some one with skills in Smart Forms, and alley up with them. Or better yet, use it as an excuse to learn to do it your self
    With a Smart Form, you can parse data into it, create the file, and then use the GOS functionality to attatch it to your BO. All this in back ground!
    Kind regards
    Mikkel

  • Attaching a PDF document to an order from Web

    Hi,
    We have a requirement to attached a PDF document to an order in SAP from a web front end (its a custom web application written in cold fusion). We currently create orders from this web application which talks to SAP via XI. I know that using the "Services For Object" option in SAP GUI we can upload external document. Is there a BAPI that can be used to send the document from WEB to be added as an attachment on the order?
    Any response will be greatly appreciated.
    Thanks,
    Paresh

    Hi Tom,
    ArchiveLink is a service integrated in the SAP Web Application Server for linking archived documents and the application documents entered in the SAP system.
    Linking documents according to content guarantees long term easy access to the documents. From the screen of the application document, you can directly display the stored document that is associated with it. You can also use attributes to search for documents. This replaces time consuming processes such as making copies of originals, searching for procedure-related information, etc.
    There would definitely be content repository which will be connected to SAP through archivelink. Pls confirm the same with Basis.
    You can look at the customizing through
    IMG->SAP Web Application Server -> Basis Services -> ArchiveLink
    Also pls refer to:
    http://help.sap.com/saphelp_47x200/helpdata/en/16/56a539a908455de10000000a114084/frameset.htm
    Pls award if helpful.
    Reg
    Sachin

  • Read the content of a file attached to a document

    Hi,
    I have a requirement to read the content of the file attached to the document and send in the body of the email. The original get stored in the KPRO server. Can anyone suggest how can i read the content of the file stored in the KPRO server. HTTp is used to save the file in KPRO server.
    thanks
    Papiya

    Dear Papiya,
    if I got your problem correctly you are looking for some report to get the originals files from the content server and then send it via e-mail?
    In this case the report DMS_KPRO_READ may be useful for you. You can start this report in transaction SE38. You just need to enter the document data and then all attached originals will be listed with the corresponding PHIO- and LOIO-ID. Further there is also a small grenn download button to get this file on your PC.
    Best regards,
    Christoph
    P.S.: Please reward points for useful information.

  • Convert virtually any CAD file into a PDF document .

    Can Acrobat X Pro Convert virtually any CAD file into a PDF document using templates?
    Earlier Acrobat 9 Pro Extended used to be ?

    In the latest version of Acrobat the grammer was added to allow embedding a swf file. Unfortunately the Designer (the tools for getting the swf in there) lags behind and will be there in a future release. So if you really want this you must do it by hand and it will only work in Acrobat/Reader 10.
    Here is a blog entry that describes how to do it:
    http://blogs.adobe.com/formfeed/2010/12/flash-in-xfa-sample-column-chart.html
    Paul

  • What version of adobe acrobat do I need to combine mutilple pdf files into one PDF document?

    What version of adobe acrobat do I need to combine mutilple pdf files into one PDF document? I am wanting to know if Adobe Acrobat Standard XI can combine multiple PDFs for do I need to stick with Adobe Acrobat Professional XI?

    Acrobat Standard can combine PDF files.

  • How does one copy a PDF file into another PDF document?

    I am trying to copy part of a PDF file into another PDF document. So far, the file will copy but will not paste into another PDF document. Any clues?

    You can't convert Photoshop to editiable InDesign (though there is a plugin from RecoSoft that claims to make editable ID files from PDF: http://www.recosoft.com/products/pdf2id/).
    About the best you can hope for is to leave pixel information in the Photoshop file (where it really belongs) and place that into an ID document, then set any type in ID.
    Peter

  • Links within PDF document open linked PDF documents, but seem to replace original document rather than as additional documents.

    Hello good people of the Adobe Community!  I have a user of Adobe Reader XI that is having the following problem:
    She is viewing, what we will call, the "main document," and this document has many links to other PDF documents.  When she clicks on one of the links, the main document gets replaced by the new document.  She then needs to re-open the main document to view it again.  This happens with every link she clicks.  I worked with the document in Reader XI and am able to open every link as an additional document, thus allowing me to immediately view both the main document and the new document.
    My questions are:
    Is there some setting in her Reader that I do not have turned on/off, which is why she is having this issue and I am not?
    If not, then why is the user experiencing this "replacement" of the main document?
    How do I help her resolve this issue?
    Thank you for your time and attention.
    Ben

    I don't know if there is any way to configure this in the Reader preferences.
    However, it can be decided in the document itself.  I just created a test document (using Acrobat DC) with two links:
    one to open in the same window
    on the open in a new window
    Both links do what I selected:
    one opened in the same Reader window (replacing the original document)
    the other one opened a new Reader window
    When creating the links there was actually a third option: Window set by user preferences.  However, I cannot seem to find such a user preference in Adobe Acrobat Reader.  The default (in my case) seems to be to open in the same Reader window.

Maybe you are looking for

  • WBS elements in Investment profiles

    Hi Experts, Is there any way we can check that to which all WBS element an investment profile is attached? Regards, Vijay

  • Can anyone tell me the difference between these String methods?

    There are methods that can convert a byte[] into string: String(byte[] ascii, int hibyte, int offset, int count) String(byte[] bytes, int offset, int length) String(byte[] bytes) I am now sticking on it. The first one runs great in my project, but it

  • Email Button w/ Variable Subject?

    For feedback, I have been using buttons set up to "Send e-mail to" with an address of [email protected]?subject=SubjectDescription etc. This works fine but it would be of service to students, and considerably easier for me, if I could have the subjec

  • Part Appraisal column in appraisal document

    Hi,    In a template we have one appraise , one appraiser and one role as part appraiser... In R/3 that part appraiser column is coming in the editable mode.. but in standard BSP itself that part appraisal column is coming in the display mode always/

  • Install of bundled product

    Hi everyone-- I have previously been using Photoshop Elements 6 (Windows version) but recently purchased the bundled product that contains Photoshop Elements 11 AND Premier Elements 11.  I just tried to install and realized that each one is installed