HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › General questions / FAQ › Unable to embed document › Re: Re: Unable to embed document
@PD4ML wrote:
Does the attachment appear in the side bar (“Attachments” tab on the left window side of Acroread)?
Hi there,
I had to rewrite the whole thing and that little icon is now appearing but it is still not working correctly.
If I am displaying contents of a text file and set description=”FileAttachment.txt” then I can open text file attachments by clicking a little icon in generated PDF, great. However, when I try to attach and open a Word Document I am getting the following error message:
“This file does not have a program associated with it for performing this action. Please install…”.
When I update description=”Fileattachment.docx” then I can open Word documents only. This will not work of course as business users can attach any type of file so description=”FileAttachment.attachmenttype” must be dynamically generated to reflect attached file extension.
Is there a way of doing this please?
Thank you in advance.