32
Views
3
Comments
Solved
[PDF Viewer Reactive] Attempting to convert saved word doc as binary data field to PDF as binary data field
pdf-viewer-reactive
Reactive icon
Forge asset by Jay Parnau
Application Type
Reactive
Service Studio Version
11.54.46 (Build 63163)

Hello and thank you in advance for any help you can offer.

I have a scenario where a user selects a word document from resources (it's a template).  When they select it, placeholders are substituted with data (using MSWordUtils) and saved in a table as binary data. 

I would like to save it as binary data that would allow the user to view/download it as a PDF.  It seems that the Forge applications that convert Word documents to PDFs work only with saved files and not a binary data field.  If I'm not correct feel free to call me out on this.  If I try to take the binary data saved from the word document and use PDF Viewer Reactive to view to document it does not work (I figured it would not but wanted to at least try)

Any help or guidance would be most helpful,

John 


2019-10-24 21-01-44
Jay Parnau
Staff
Solution

If you are converting it to a PDF, you should then be able to store it as binary and the PDF viewer should render it. Is it possible that the binary is in the incorrect format? If you download the binary does it open as a PDF?

2024-05-16 19-40-17
John Bradley

Thanks for the reply.  That's a good test to see if the binary data is somehow corrupted.  I will try it and see what the result is.


2024-05-16 19-40-17
John Bradley

You were correct - it was no the binary data itself, but the filename being saved in the table.  I gained a better understanding of how this process needs to work, and was able to fix my issue.  Thank you for your help!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.