Skip navigation
Currently Being Moderated

Disassembling documents:

Feb 8, 2010 6:06 AM

Hi,

  I'm trying to disassemble documents. My Assembler input is a map document with ddx:

<PDFsFromBookmarks prefix="stmt">
     <PDF source="doc1.pdf"/>
</PDFsFromBookmarks>
What should be the output give for this service in Assembler process? I tried to give the output a variable
of type Assemblerresult. (error: Cannot create a map entry without a key specified)

What should be the key entry we need to provide? I also tried using a variable of type map in the output
parameter with subtype AssemblerResult. Still I see the same output. I think I'm missing something in doing 
this for the output parameter. 

Please help. I was struggling all the weekend trying different combinations for the output. Unfortunately, 
i could not find any sample that shows disassembling documents.

Thanks,
Chaitanya

 
Replies
  • Currently Being Moderated
    Feb 8, 2010 7:03 AM   in reply to kc_chaitu

    You should be able to use an AssemblerResult object.  Inside that result object is a documents object which is a Map of Documents.  The resulting keys will be based on the prefix attribute.  That is in your case it will be something like stmt.000001.{first bookmark name}

     

    You may try record/playback and have a look at the AssemblerResult immediately after the Invoke DDX is executed

     

    See the attached LCA for an example.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 8, 2010 9:00 AM   in reply to kc_chaitu

    Sorry.  My process was for an ES2 server.  Let me see if I can dig up an

    8.2 example


     
    |
    Mark as:
  • Currently Being Moderated
    Feb 8, 2010 1:55 PM   in reply to kc_chaitu

    Here is a working 8.2 sample

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 30, 2010 10:37 AM   in reply to Hodmi

    Hi,

    I need help to save the result documents I get in the dis-assembly.

     

    I have no problem saving the pdf result when it is a single result, but how is it done when you split a pdf by bookmarks like

     

    <DDX xmlns="http://ns.adobe.com/DDX/1.0/">
      <PDFsFromBookmarks prefix="Animal">
        <PDF source="doc1"/>
      </PDFsFromBookmarks>
    </DDX>

     


    1) Please give an example that can work for a document with a variable number of bookmarks

     

    2) I would like to save each result pdf to the file system to a folder - how can this be done?? I use the "File:///c:/temp/output/xxxx.pdf" to load my PDF source, but how is it done for saving multiple documents?


    Thanks

    Thomas Groenbaek

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 30, 2010 11:47 AM   in reply to tgsoft

    How are you invoking Assembler. You should get a map back with all the documents.

     

    Jasmin

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 30, 2010 12:27 PM   in reply to Jasmin Charbonneau

    Hi,

     

    I found a solution to put the result from the dis-assembly into a list and then looped through the list and save the files to file system.

     

    I works but if you have a better/simpler solution, out there, bring it on

     

    I there is a way to get the filenames from the list = bookmark names that would be great

     

    thanks
    Thomas

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 30, 2010 12:50 PM   in reply to tgsoft

    I'm assuming you have a list documents.


    Can't you use the documentvar.getAttribute("filename")?

     

    Jasmin

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points