5 Replies Latest reply: Dec 18, 2012 3:13 PM by user9976634 RSS

    create signature/image from XML?

    Gregg M
      Hi everybody,

      We've been asked by a business area if it's feasible to reproduce a user-filled PDF form given the XML data. By that I mean a user electronically fills in a PDF form. The entered value are given to us in the form of XML, and they want us to reproduce the form, including the user-provided data, along with a cover letter, in an output stream. Questions/issues:

      1. Some of these PDF forms are rather complex, so we'd rather not draw the PDF in DM Studio from scratch. I'm unaware of a capability within Documaker to import or convert PDFs to Documaker components (forms/faps, etc), but I'm told the creaters of the PDF form can give us a TIFF, and so I'm thinking of converting the TIFF and importing it as an image (our standard output stream is Xerox metacode, so I'd create a .LOG that I'd then convert to a Xerox image and drop into our image repository as well as our Xerox printers and then just reference the image as an overlay of sorts). Does anybody know of any alternatives to accomplish this task?

      2. One of the things on the PDF form is a user signature. This signature is then passed to us as a field within the XML (it's a convoluted value, upwards of 20,000 bytes). Can Documaker, in batch mode on MVS (although we could port it to Linux if need be), take that XML field and reproduce the signature? I skimmed the DM Studio User Guide as well as the XML Guide documentation and it didn't say anything about signatures, and I don't know what else to look under (as far as documentation).

      Thanks in advance,
      Gregg
        • 1. Re: create signature/image from XML?
          Bryan Burr
          Hi,
          1) Documaker can import and convert PDF files to sections.
          2) Depends on what format that signature really is in.
          -What version of Documaker are you running?
          -What tool or how are you getting the data out of the pdf?
          -DA
          • 2. Re: create signature/image from XML?
            Gregg M
            Hey DA,

            We are running 11.5 patch 2 (working on upgrading to patch 4 in near future).

            In asking, it was explained to me that they "think" the signature is saved as a bitmap, and then converted to Binary format, and that binary value is what is sent in the XML.

            Gregg
            • 3. Re: create signature/image from XML?
              user9976634
              To my knowledge, there is no rule (or DAL) that can take data meant for a bitmap from XML or any extract directly. You can add bitmaps from disk dynamically, but not directly from data being fed in.

              Now, you could take the original PDF (if you have it) and simply turn the whole thing into bitmap pages to add to your transaction document. This is accomplished via the AddMultiPageBitmap rule.
              • 4. Re: create signature/image from XML?
                Gregg M
                Thanks.

                Does anybody know, is there a format of data that CAN be passed in via XML to dynamically generate an image (in this case, signature)? Or is Documaker only able to reference existing images and pull them in?

                Gregg
                • 5. Re: create signature/image from XML?
                  user9976634
                  Perhaps if you will submit a couple examples of the XML you are receiving along with the original PDF (so we can see what the graphic looks like), perhaps someone can offer a suggestion. Depending upon how the bitmap data is stored (compress, compact, RLE, encrypted, etc.) it might be possible to offer some suggestion.