06-08-2017 12:56 PM
Hello,
I am retrieving documents via the api by document ID and displaying them in adobe. When I retrieve a document that is a unity form, it fails when I try to use the pdfdataprovider, to get the page data. I can use the image data provider to get a stream, then use a third party tool to convert to pdf, however I only get one page, there are three tabs. Is there another way of converting the unity form document to PDF? Below is the code I am using and an image of what I get displayed, there are three tabs, I only see one. if I used the native provider, the document is xml, they don't want to display xml.
Rendition rendition = document.DefaultRenditionOfLatestRevision;
ImageDataProvider iProvider = app.Core.Retrieval.Image;
using (PageData pageData = iProvider.GetDocument(rendition))
{
pageData.Stream.CopyTo(streamReader);
}
SautinSoft.PdfVision v = new SautinSoft.PdfVision();
v.Serial = "XXX";
d.stream = v.ConvertImageStreamToPdfStream(streamReader.ToArray());
Thank you for any help!
Karen
06-09-2017 07:30 AM
Hi! Karen,
You probably need a third party library to convert html into pdf. There are some threads answered by Scott(https://www.onbase.com/community/onbase_product_communities/unity_forms_product_page/f/unity-forms-p...).
Additional links:
https://www.onbase.com/community/onbase_product_communities/unity_forms_product_page/f/unity-forms-p...
https://www.onbase.com/community/onbase_product_communities/unity_forms_product_page/f/unity-forms-p...
https://www.onbase.com/community/onbase_product_communities/unity_forms_product_page/f/unity-forms-p...
Thanks, hope this helps.
Jason
06-09-2017 07:30 AM
Hi! Karen,
You probably need a third party library to convert html into pdf. There are some threads answered by Scott(https://www.onbase.com/community/onbase_product_communities/unity_forms_product_page/f/unity-forms-p...).
Additional links:
https://www.onbase.com/community/onbase_product_communities/unity_forms_product_page/f/unity-forms-p...
https://www.onbase.com/community/onbase_product_communities/unity_forms_product_page/f/unity-forms-p...
https://www.onbase.com/community/onbase_product_communities/unity_forms_product_page/f/unity-forms-p...
Thanks, hope this helps.
Jason
06-09-2017 08:15 AM
06-09-2017 01:57 PM
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.