Reference: Product versions and details in this article may have changed since publication.
There are requirments to to display PDF documents (e.g. Invoices, Purchase Orders, Incoming Letters) on a OpenText MBPM (formerly Metastorm BPM) form. There are different ways to implement this: using a PDF viewer component like Brava Viewer or TiffServer, the iFrame or the HTML
Today we will share this quick tip to display a PDF using the object tag.
Definition and usuage of the HTML
The
You can also use the
Use the
- Create a OpenText MBPM Server Side Script and add the following method
public static string EmbedPDF(string FileUrl, string FileName)
{
return @"<object width='100%' height='100%' data='" + FileUrl +"' type='application/pdf' standby='Loading...' name='" + FileName + "_Embedded'></object>";
}
2. Create a Metastorm form
3. Add a label control
4. Make the label calculated
5. Call the EmbedPDF method from the Expression Builder
6. At runtime the PDF will be loaded into the area defined as a label
I hope you find this OpenText MBPM/Metastorm BPM Quick Tip useful. Do you have another solution for the same requirement? Feel free to post your approach as a comment.