09-07-2012 03:20 AM
Hello, I am trying to create a solution to generate a PDF file from a form and an image.
The purpose of this form is to create badges.
With Doc composition, I saw that I could add the values of keywords in a template.
I also need to add the photo into the PDF. This photo is a document also store in OnBase.
The process is:
Is it possible to do this with composition doc please?
09-07-2012 08:05 AM
Hello Fabien,
There are a few different ways to accomplish what you need to do.
If you place the image into a Document Composition Fragment, you can then retrieve it and place it onto the Template that is created. If you decide to place multiple Fragments (images in this case) onto a separate template you can select and place a specific Fragment onto the Template based upon a Condition set on a Metadata placeholder (Perhaps a Keyword containing the name of the person who filled out the form if it exists on the form?)
Another option is to place the image into an external database and then retrieve it from there using an External Data Source placeholder with an odbc input. This will require a table to be created in your desired database that supports Blobs for storing images. Feel free to contact your first line of support for more details on setting this up.
The last option is to use XPath to place an image onto your document. This option can be selected via the External Data Source | XPath configuration option and then selecting the "Insert the results as an image" Output Style option. Feel free to contact your first line of support for an explanation on setting this up.
If this doesn't answer your question, please let me know.
Thank you,
Jordan Polaniec
Quality Assurance Associate
Hyland Software, Inc.
09-24-2012 12:31 AM
Hi Jordan,
Thank you very much for your answer!
I will perform research on this 3 solutions
Thanks again
02-14-2013 01:05 PM
The best method of accomplishing this requirement is to use a Unity Script, retrieve the related image(s) as bytes streams, convert the byte stream to base 64 encoded strings, then wrap the base64 string in XML. Send the XML to document composition via the Doc Comp API. You need to have a placeholder that will read the xml as an image.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.