Answer
Hi Robert,
You can check out my Attachment Gallery Control - it supports viewing PDF files.
Hi, thanks for this. Do I need to configure anything specifically to get the pdf preview to work? I have deployed your solution, added a text field above the notes control, enabled your control for the 3 clients but it doesn't seem to recognise / preview pdf's. Images appear ok..
Hi Robert,
Do you have the problem with previewing PDFs in full screen mode as well? Or it just doesn't show you PDF image placeholder? Also can you tell me the size of that PDF file? I will try to replicate this error on my side and will try to help you.
Hi, no, nothing shows in the placeholder. The pdf is small - 177kb with the words 'lorum ipsum' in it. I have no other notes on the record.
Hi Robert, I tried to replicate this error in 3 different environment, but it worked for me in all of them. Can you maybe inspect browser console to see if there are any errors?
Hi, I have narrowed down the issue.. I am adding attachments (pdf's) to my record using a LogicApp which takes the pdf from an SFTP server, creates the record in D365 then attaches the pdf. If I manually upload the pdf file, it renders ok. Where the LogicApp has created the attachment it doesn't render! I've compared the records, they have that same values in the columns, the one difference I have noticed is in the notes control, the small icon that indicates the file type shows a pdf in the manually uploaded file but a paperclip in the LogicApp uploaded file. Just checked my LogicApp and I'm not setting the MIME Type. What MIME Type is your control looking for? is it application/pdf ?
Hi Robert, you are correct I am retrieving attachments with MIME Type application/pdf.
Customer support service by UserEcho
Hi Robert,
You can check out my Attachment Gallery Control - it supports viewing PDF files.